Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by MatthiasE

  1. MatthiasE

    Some help with string and char* please

    Cool...thank you.
  2. MatthiasE

    Linked list and overloaded assignment operator

    Right...and I mean to copy the data, not just a pointer to it, through the overloaded assignment operator, i.e.creating a whole new linked list with the exact same contents as list 1.
  3. MatthiasE

    Linked list and overloaded assignment operator

    I am trying to overload the Assignment and Copy operators for a simple linked list class. It seems I can only copy the pointers, when I delete the original list, my program has errors. Here's the code: #include <iostream> using namespace std; struct link { int data; link* next; }...
  4. MatthiasE

    Some help with string and char* please

    Thank you...that works.
  5. MatthiasE

    Some help with string and char* please

    Why does the following code not work? It compiles just fine, but s doesn't seem to take. I want to copy the string str to char* s. string str; char* s=" "; cout<<"\nEnter String: "; cin>>str; int len = str.size(); for(int j=0; j<len; j++) { if(str[j] >= '0' && str[j] <= '9' ||...

Part and Inventory Search

Back
Top