sudheesh1995's Profile User Rating: -----

Reputation: -3 Dishonored
Group:
Members
Active Posts:
30 (0.04 per day)
Joined:
15-July 11
Profile Views:
1,040
Last Active:
User is offline Jul 03 2012 11:52 AM
Currently:
Offline

Previous Fields

Country:
LA
OS Preference:
Mac
Favorite Browser:
FireFox
Favorite Processor:
Intel
Favorite Gaming Platform:
XBox
Your Car:
Cadillac
Dream Kudos:
0

Latest Visitors

Icon   sudheesh1995 has not set their status

Posts I've Made

  1. In Topic: write string to file?

    Posted 20 Jul 2011

    why don't you use something like this

    void createtextfile1()
    {
     ofstream fout("Text.txt",ios::app);
     char string[80], yes;
     do
     {	
        cout<<"Enter a line of text? \n"; gets(string);//similar to cin , but coniders the spaces
        fout<<string<<endl;
        cout<<"Add More line[Y/N]? "; cin>>yes;
     }
     while (yes=='Y' || yes=='y');
     fout.close();
    }
    
    

    you could use the above code and put in those other if else conditions.

    Hope it helps
  2. In Topic: problem with -> operator and . operator

    Posted 20 Jul 2011

    Dot operator (.) is binary operator.It is also called the membership operator. On the left hand side of the dot operator (.) is the structure variable name and on the right hand side of dot (.) operator is the data member name of the structure variable.
    Just like pointer to fundamental data type (char / int / float / double) we can also have pointer to derived type like pointer to structure (class) type. A structure (class) type has to be declared first then pointer to that structure (class) type is to be created. One major difference between pointer to a fundamental data type and pointer structure (class) type is the use of dereferencing (indirection) operator. For a pointer to a fundamental type unary star operator (*) is used as dereferencing (indirection) operator but generally for pointer to structure (class) type binary arrow operator (->) is used as dereferencing (indirection) operator. An arrow operator consists of two characters: dash/minus (-) followed by greater than sign (>).
  3. In Topic: Cube root calculator: Issue when trying to calculate result.

    Posted 20 Jul 2011

    why don't you just use

    double cuberoot(double x)
    {
     double a=pow(x,1/3);
     return a;
    }
    
    
  4. In Topic: c++ word guessing game

    Posted 19 Jul 2011

    check your line 150

    int 1=a, 2=b, 3=c, 4=d, 5=e, 6=f;
    
    


    this should be modified as

    int a=1,b=2,c=3,d=4,e=5,f=6;
    
    


    You should always assign a value to a variable eg . a=1;
    but you cannot assign a variable to a number value. 1=a;
    it will be flagged as syntax error
  5. In Topic: Pointer Sorting. Please Help.

    Posted 19 Jul 2011

    what do you mean by unknown numbers ? Giving an example or a screenshot to us might make it clear as to what actually is happening

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Full Name:
Sudheesh
Years Programming:
4
Programming Languages:
C++ , C , Pascal , Visual Basic , C# , Java

Contact Information

E-mail:
Click here to e-mail me

Friends

Comments

Page 1 of 1
  1. Photo

    hulla Icon

    20 Jul 2011 - 07:43
    Hello. Thanks for the reply.
Page 1 of 1