i finally got my book! now i can basic-basic-basic c++!
some question
1. whats the diff betwen char and char* ?
2. how to conv a char* to a char
the task:
PLZ HELP!Code:#include <iostream> using namespace std; int main() { time_t tempchar; tempchar = time(NULL); char* timetemp timetemp=ctime(&tempchar); // whats that '&' sybol doing anyway? char timestr // nows the error timestr=timetemp // how to do? i know there are diff of types... cout << timestr {
***! Why doesnt this stupid tag work?




Reply With Quote