ur.. I dont understand your requirement very much:(
will u please show me a more specific example showing your requirement?
regards.....
User Profile
Collapse
-
ur, it will print nothing...
in your code, the code inside while loop will be executed only when i ==0 ....Leave a comment:
-
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...Leave a comment:
-
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...Leave a comment:
-
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...Leave a comment:
-
omg...
I do feel that your "include path" gets something wrong..
so can you find the "d3d8.h" header file on your local machine?Leave a comment:
-
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:)Leave a comment:
No activity results to display
Show More
Leave a comment: