Results 1 to 13 of 13

Thread: some things from a new bie

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2002
    Posts
    28

    some things from a new bie

    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:
    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
    
    {
    PLZ HELP!

    ***! Why doesnt this stupid tag work?
    Last edited by Chs; Oct 23rd, 2002 at 01:02 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width