However, after testing this it appears that the ios_base::open_mode is not stored in the return value of "ostream::flags()". I have been unable to figure out how to get something from an ostream object that tells me the ios_base::open_mode used. Any idea how to extract this information after the file has been opened? Thanks,
Yeah, clearly I get sidetracked easily. Anyway, I ultimately determined that opening a file in binary mode doesn't really do what I thought it did... I was under the impression that doing so would force the shift operator to output data in binary, which it doesn't. Therefore, I decided to implement two methods: one to output the data in binary, and the other to output it in ASCII format. Thanks for the help, though.
I'am really, really sorry, but i can't find what you mean. I have searched the whole last link, the whole forum , but i can't find what i need. Please,please try again.
I need this for my recent project!SOS SOS SOS
If you are doing a project on it, then your starting point should always be the MSDN reference[^], in order to get the basics of what is possible. I appreciate that MSDN is not always that easy to understand but you will at least learn the names of all the clipboard functions.
Firstly, do not repost the question, but edit the original.
As to the error you get the statement long atol(long i); in your structure is not defined anywhere. You cannot declare a method in a structure without implementing it. You should add your own atol() method, or simply call the default library function. Also as I stated earlier your CreateList() function also has a problem.
I know atol()is libiary but if I use like this it also has a problem,why?
Sentences like this are rising to the top of the list of most useless statements. If your program does not work in some way, saying "it has a problem", gives us no information to guess what may be wrong. Please try and explain what happens; do you get a compiler error, does it cause an exception, does it return the wrong result, etc?
However, having looked at the code again I see:
NewNode->lNum = stuList[i].atol(stuList[i].lNum);
OK, so let's correct it
NewNode->lNum = atol(stuList[i].lNum);
The atol() function takes a string of digits as input and returns its value as a long variable. Your statement is trying to pass a long as its input parameter which a) is wrong, and b) makes no sense; the value is already a long.
The other problem with Createlist（） is that it returns the pointer to the last structure in your list rather than the first; you need to keep a copy of the first entry added to the head pointer.
I am extremly new to vc++ 6.0 programming and i need to create a drag drop control that would draw an image or say a shape into my window.Can you people please tell me how should i start and where to start from.Name of class or may be library should help.
Thank you in advance.
Last Visit: 2-Apr-20 15:25 Last Update: 2-Apr-20 15:25