Reputation: 0 Apprentice
- Active Posts:
- 21 (0.03 per day)
- 14-December 11
- Profile Views:
- Last Active:
- Feb 21 2013 01:43 AM
- OS Preference:
- Favorite Browser:
- Favorite Processor:
- Favorite Gaming Platform:
- Your Car:
- Dream Kudos:
Posts I've Made
Posted 18 Jul 2012BUMP!!!
Posted 18 Jul 2012Yes this is for linux. also hia no2 Im going to join the irc channel right now
Posted 17 Jul 2012In a C program exit() is fine. However in a C++ program you should avoid exit() as it doesn't properly call class destructors. Have your functions return values that can indicate whether the function succeeded to the calling function and have the calling function take appropriate action.
Also don't forget to find the indentation style. This is very important. Your code as presented is very hard to read, making troubleshooting difficult.
Do you have any preferences for which indentation style to use
Posted 17 Jul 2012If this is indeed your current code you should have quite a few errors and warnings when you compile your code.
When I compiled your code I got about 20 errors and about 10 warnings.
You also need to find an indentation style you like and use it consistently. This will make your programs much easier to read and troubleshoot. Next stop using goto, learn to use some of the other looping constructs, such as the while, do/while and for loops and proper if/else statements. The use of goto's is a very bad practice and you should stop using this statement now.
Thanks very much Jim I have changed all the chars to string other than the ones needed for the sockets and also i stoped using goto; just a question tho: Can i use the exit; function or is that as bad as goto?
Posted 16 Jul 2012Try to compile IrcBot.cpp. Notice the errors. Fix the errors (or temporarily remove the methods that cause the errors). Now compile both main.cpp and IrcBot.cpp and link them together.
Thanks but how do you mean link them together?
also I am sorry i dont know alot ofthis stuff im just starting to learn c++ again and didnt really cover alot of this sort of stuff.
- Member Title:
- New D.I.C Head
- 16 years old
- March 14, 1997
- Australia, Brisbane.
The Mentalist - favourite tv series so far ;)
I like to learn programming in general its just interesting.
- Full Name:
- Jake Noel Martin
- Programming Languages:
css - 1/10 - just started learning css :)
php - 0/10 - haven't started just yet but should be quite soon.
c++ - 4/10 - I was learning c++ a while back but not counting that for when i started programming cuz it was very on and off