- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 1
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
9 Posted Topics
Hi. I've been working with linked lists for a bit, but I've been having some trouble with them. My programming book does a good job in helping you make a linked list, but it does a bad job of showing you how to use them. What I am trying to … | |
Re: I was going to reply to this as well, but it appears it's already said what I was going to, but I have one small question thats related to this. A data type that stores 1 byte can have a combination of 2^8-1 combinations, but what is the reason that … | |
Re: If you want to allow the user to choose the size of the array, you can't do this: [CODE]ApplicantsList a[size]; [/CODE] Instead, you need to dynamically allocate memory for an array like this: [CODE]ApplicantsList* a; a = new ApplicantsList[size];[/CODE] When you do this, you can use "a" as an array … | |
I noticed that using a switch statement, the case always has to be a constant character or integer or it won't compile. It's sorta of a bummer as the only alternative is using a bunch of if/else if's. So doing something like this won't work: [CODE]switch(aString) { case "word1": doSomething(); … | |
Hi, I have been working on a little text based interactive fiction game for a decent amount of time, but I just can't seem to figure out how I can cut up strings so that my program can understand simple commands. Is there a simple way to do this? For … | |
Re: Im not very experienced, but for the most part I think I know pointers at least to a point.(no pun intended -.-) Before you learn about what a pointer is, I think it would be important you know what the reference operator (&) does. The reference operator stores the MEMORY … | |
Re: It took me a while, but I finally did it. [code]while (Hell Freezes Over != !true) } ;Number of sins ++ dead babies++ retards euthanized; = number of orphans / 0 { { weee(eeee(eeee(eeee))) } } while (1 == 0) { {const new int[1,000,000,000]} } kittens-- Sad Face Emoticons++ necrocomicon(dead … | |
Re: This is another useful way you could do it. The <string> library has an "at" function which lets you check an individual character of the string. You can then use an if statement inside of a loop to check all the characters of a string. How you use it is … | |
Hi, I have been working on this program for a while, and it is just getting plain frustrating. I'm trying to make a class(called numberType) which can take a number with up to 100 digits using a 100 integer character array and then be able to add that class with … |
The End.