this line put the first character into oper_char, and the next one into value.
Type: Posts; User: Hermitsky
this line put the first character into oper_char, and the next one into value.
If your code doesn't work properly, then there must be some bugs in your code.
try search "_beginthread()" on MSDN
so far as i know, you can't open the serial port which is already in use.
you need this
system("pause")
it will hold the progress.
LetterGrade should be char not int.
eee.....in c++, you have to convert it first, that's the rule.
and for sure, the memory will be freed.
one reason i don't like MFC:
the codes written in MFC are almost unreadable.
it is really hard for me to find out what's going on by reading these codes.
seq=(char *)ckfree((void *)seq);
could this one help?
this is a sample, can't remember where i got it -_-"
it use _beginthread() function which is included in C run-time libraries. you can get more details on msdn.
#include <windows.h>...
the basic rule is: never against prelude's will.
:D
北京
the first pic is original,
i like the last one most, like an old fashion cartoon. :D
just tell them what's in your mind, good suggestions are always welcome.........
perhaps, it is really too hard for this women to find a guy who dare to marry her.......................
thanks guys .....
Thanks, rockytriton.
one more question: how to set the read time-out ?
i am doing a server/client program with winsock2. once a client starts, it will connect to server and send some info. after server got these info,the connection will be closed,and the server will...
fixed, you'd better read some c books before write the code.
and, don't use goto unless you have to.
//Mini calculator used for multiplication and division
#include <cstdlib>
#include...
#include <fstream>
#include <iostream>
int main()
{
int aa, bb, cc, a, b, c;
aa=1, bb=2, cc=3, a=3, b=1, c=2;
fstream abc;
abc.open ( "example.txt" ,fstream::out);
if you are programming on windows, all you need to do is send some messages to os. you can get all the details on here :)
do some improvement on your algorithms would be helpful.
creates the menu dynamically is only needed when we have to do some change on menu while the program is running.
and use .rc we can handle all the resource freely.
well, i think make a resource file is a better way, we can write everything like menu,dialogbox,controls in it.
resource.h :
#if !defined(resource_H)
#define resource_H
#endif
#define...
as we are programming with C++, it is easy to make an array with variable size .
a dynamic list:
//class to store info of books and basic method
#include<string>
#include<sstream>...
i have edited my last code, try it again.