CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22
  1. #16
    Join Date
    Feb 2004
    Posts
    22
    Thanks to Paul McKenzie and everyone

    I got it work now,and i found out why is my program had error run time.I asked my professor today abour run time error,but she was kind of explaining out of my question.Note that she never explain us about this in class....Well, i guess i need to learn how to debug with Dev C++ and VC C++ by myself...If anyone know where can i find tutorial online that will really helpfull...thanks alot ...and have a good weekend

  2. #17
    Join Date
    Nov 2003
    Location
    Vienna, Austria
    Posts
    212
    BTW, on kas' first post, you can have as much whitespace between the :: operator and its two operands as you want. You can have none, one on each side, one on one side, have the :: on its own line, C++ doesn't care.

    And to get the forum to display my_string::print properly you need to check the "Disable smilies" box below the input area.
    All the buzzt
    CornedBee

  3. #18
    Join Date
    Feb 2004
    Location
    du ngoan tai thap Eifel, gan National Park
    Posts
    4
    Originally posted by tinhnho
    Well, i guess i need to learn how to debug with Dev C++ and VC C++ by myself...If anyone know where can i find tutorial online that will really helpfull...thanks alot ...and have a good weekend
    "debug tutorial" <---in your search engine, a lot of links for you then.
    Look out these, not knows if you liked them,
    I 100% new to programming and all of stuff like this, they boring, right ? I think that so.
    http://www.cs.iit.edu/~resource/supp...html#questions
    http://www.cygnus.com/gdb/
    http://libcwd.sourceforge.net/tutorial/tut1.html


  4. #19
    Join Date
    Feb 2004
    Location
    du ngoan tai thap Eifel, gan National Park
    Posts
    4
    Sierous, my teacher told me that, debug is not difficulty at all, first (he told me) I shoudl study ASM (assembler) to know machine language stuff a bit, debuggin also kind of art but not someting spicial much, you can leant from internet (a lot a lot, very a lot) or serch for free books on net.
    Helped ? Satisfied ?

  5. #20
    Join Date
    Jul 2003
    Location
    Maryland
    Posts
    762
    Originally posted by CornedBee
    BTW, on kas' first post, you can have as much whitespace between the :: operator and its two operands as you want. You can have none, one on each side, one on one side, have the :: on its own line, C++ doesn't care.
    I thought that was the case after I posted that but I figured I'd leave it just incase. Meh :(

  6. #21
    Join Date
    Jun 2003
    Location
    Armenia, Yerevan
    Posts
    720
    Bad strrev()
    Code:
    void mystring::strrev()
    {
    	char c;
    	size_t half=len/2, i=0;
    	for( ; i<half; ++i)
    	{
    		c=s[i];
    		s[i]=s[len-i-1];
    		s[len-i-1]=c;
    	}
    }

  7. #22
    Join Date
    Nov 2003
    Location
    Vienna, Austria
    Posts
    212
    Why bad? Looks flawless.
    All the buzzt
    CornedBee

Page 2 of 2 FirstFirst 12

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

Featured