User Profile

Collapse

Profile Sidebar

Collapse
nirJianWu
nirJianWu
Last Activity: Apr 26 '07, 02:55 PM
Joined: Apr 17 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • nirJianWu
    replied to Having difficulty creating and using classes.
    in C
    ur.. I dont understand your requirement very much:(

    will u please show me a more specific example showing your requirement?

    regards.....
    See more | Go to post

    Leave a comment:


  • nirJianWu
    replied to While loop that displays no negative numbers
    in C
    ur, it will print nothing...

    in your code, the code inside while loop will be executed only when i ==0 ....
    See more | Go to post

    Leave a comment:


  • nirJianWu
    replied to While loop that displays no negative numbers
    in C
    I don't understand your requirement very much...

    do you wanna display all the non negative numbers or you just want to display the non negative numbers you received.

    if you wanna display all by using a while loop, just do it as follows..

    int n = 0;
    while(1)
    std::cout<<n++< <std::endl;

    but if you wanna display the non negative numbers you received, using a if-else...
    See more | Go to post

    Leave a comment:


  • nirJianWu
    replied to initialization of static const variables fails
    in C
    hi, I have compiled your code and add a main() function:

    int main(int argc, char** argv)
    {
    std::cout<<s<<s td::endl;
    return 0;
    }

    and the result I get is "Float", so it seems normal on my machine and I think your code is correct ...

    btw, I'm using VS2005...
    See more | Go to post

    Leave a comment:


  • nirJianWu
    replied to Having difficulty creating and using classes.
    in C
    there're some errors just because you forgot to include a header file <string>

    for example, when you compile your code, you'll get a error hint that getline() function does not take one argument, but you do offer it two arguments, with a ifstream myfile and a string line.

    why does compiler consider you just give it only one argument?

    It's because that you declare the variable "line" by...
    See more | Go to post

    Leave a comment:


  • nirJianWu
    replied to Windows.H not found! Help
    in C
    omg...

    I do feel that your "include path" gets something wrong..

    so can you find the "d3d8.h" header file on your local machine?
    See more | Go to post

    Leave a comment:


  • nirJianWu
    replied to Windows.H not found! Help
    in C
    I'm not sure you're using Visual Studio 2005 or just the Visual C++ 2005 Express.

    If you're using the Express edition, then you have to install a platform
    SDK, in which you'll find "windows.h" .

    good luck:)
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...