CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: longbodie99

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    7,331

    Re: Number Guessing Game Help

    - must #include <time.h> if want to use time()
    - must #include <string> if want to use string
    - if you define string m then you can not use cin >> m, it only works if you define m as character....
  2. Replies
    12
    Views
    1,292

    Re: To call file

    @laserlight: I'm using visual c++ 2010 express, I was trying to help the thread owner, with those simple problems like this, I just use:


    #include<iostream>
    #include<fstream>
    using namespace...
  3. Replies
    12
    Views
    1,292

    Re: To call file

    You don't need to translate A = baby wear or B =children wear..etc.. so you can avoid many lines of codes and problems with your translation, just use whatever variable which stands for "item code",...
  4. Replies
    10
    Views
    1,594

    Re: Function problem... But i use if else

    You are absolutely right, I totally agreed. Reason I did that b/c, looking at his codes: using "iostream.h", main function with "void main()" and no returned value ...etc..., man, he have no basic...
  5. Replies
    10
    Views
    1,594

    Re: Function problem... But i use if else

    Ok, good to hear that. Next time you have problem like this, my suggestion is that, you only ask the part that you having difficult time with. Why? B/c it is shorter, it is simpler to see and easier...
  6. Replies
    10
    Views
    1,594

    Re: Function problem... But i use if else

    I saw u posted this question in several C++ forums, so I'll help you this time. Hope you be better in tomorrow


    #include<iostream>
    #include<iomanip>
    #include<cstring>

    using namespace std;
    ...
  7. Replies
    10
    Views
    1,594

    Re: Function problem... But i use if else

    There are some issues in your code and the result would not be corrected

    else if ((average<=3.0) &&(average<=3.5))
    {
    cout<<"Good";
    }

    else if ((average<=2.0) &&(average<=3.0))
    {...
Results 1 to 7 of 7





Click Here to Expand Forum to Full Width

Featured