Reputation: 146 Stalwart
- Author w/DIC++
- Active Posts:
- 1,372 (0.68 per day)
- 13-June 08
- Profile Views:
- Last Active:
- Nov 17 2013 07:25 AM
- OS Preference:
- Who Cares
- Favorite Browser:
- Favorite Processor:
- Favorite Gaming Platform:
- Your Car:
- Dream Kudos:
Posts I've Made
Posted 3 Nov 2013Did you read doxygen's documentation?
Taken from their own example:
/** * a public variable. * Details. */ int publicVar;
This also does not work for making the variables show up.
So confused what I'm supposed to do at this point and nothing in the docs about it.
Fixed: By default Doxygen doesn't extract documentation for private or static members. Needed to turn it on.
Posted 1 Nov 2013Your syntax:
Declares a pointer to an array of Char's. C++ has to know the number of rows in an array. It does not care about columns.
If you want a dynamic array of chars, then what you actually want is:
char *arr; arr = new Char; delete arr;
But as Jim mentioned, there are two better solutions: String by itself which is an array of chars or Vector which is a dynamic array of any type that autoresizes.
Posted 1 Nov 2013If It was made in Linux then it will probably never compile on windows. Generally speaking, it will have some linux specific functioning in it. Though there's nothing stopping a linux project from being compiled on windows if it uses cross-platform libraries.
If you really want to use windows but compile it, I would suggest Cygwin, but even that sometimes can have issues. You could always use a Linux Virtual Machine.
Posted 31 Oct 2013
QuoteAnd it should be an integer. scanf with %c will never read 0-9. It doesn't consider those characters whether or not we do.
Wrong! The scanf() format specifer "%c" will retrieve any single character, including the single characters '0','1','2','3',4','5', etc, along with the single characters 'a','b','C','D', etc. Remember a char is a number. A signed char can have a value between zero and 127. But remember that there is a difference between the number 3 and the character '3'.
Nevermind, I wasn't using scanf correctly. Ignore that post.
Posted 31 Oct 2013Another cause for 10022 can be calling connect(or any other function) on a socket that didn't successfully create itself. You don't check to see if socket is in a good state before calling connect nor after. You don't check if it's in a good state before sendto or after either. Have you added a check to your code and tried to get past that?
- Member Title:
- It's That Guy
- 24 years old
- April 2, 1989
- Never, Never Land.
- Programming, Gaming, Hanging Out, Chatting, Blogging, Forum Posting.
- Full Name:
- Years Programming:
- Programming Languages: