Forum: Java Dec 9th, 2007 |
| Replies: 0 Views: 540 Hello everyone. I have to write a program that needs to use generics. I'm basically just hoping someone can guide me in the right direction here. Lets say I need a program that loads different... |
Forum: C May 23rd, 2007 |
| Replies: 3 Views: 2,191 Meant for it to be C, but thank you very much for looking out :) Thanks Ancient Dragon and thekayshyap, much appreciated! |
Forum: C May 22nd, 2007 |
| Replies: 3 Views: 2,191 One of the questions for my study guide asks to write a function that prompts the user to enter 3 integers, then "return" the integers via it's parameters through call by reference. Does this just... |
Forum: C Apr 8th, 2007 |
| Replies: 7 Views: 4,067 damn, youre right. I was assuming it would take the variable used in the function and store that into the original from main. Hmmm...how to get around this? What I need to do works fine if I throw... |
Forum: C Apr 8th, 2007 |
| Replies: 7 Views: 4,067 Works beautifully, thank you. One last question: How would I go about passing that into a function?
The example you used was person.individual[0].name, suppose I wanted to declare this in a... |
Forum: C Apr 8th, 2007 |
| Replies: 7 Views: 4,067 Hello, I had a question regarding nested structures. Lets say you *have* to use the following structures: (disregard the numbers thrown in, I just tossed random numbers in).
typedef struct... |
Forum: C Mar 20th, 2007 |
| Replies: 1 Views: 793 I'm having some trouble keeping this array in bounds. I have a 10x10 array that I print out on screen. I call a function that changes the center value [5][5] and the values below/to the right/left... |
Forum: C Mar 9th, 2007 |
| Replies: 3 Views: 1,089 Hello.
I'm stuck on a part in my program. Some numbers are adding up properly, others aren't. I assume the problem is that I'm using integers instead of doubles, however, how would you format... |
Forum: C++ Dec 8th, 2006 |
| Replies: 9 Views: 1,229 oh no no, I need the tags themselves, everything in between and outside is ignored. ex:
<html> <title> This is a title </title> </html>
I need <html><title></title></html>
and thank you... |
Forum: C++ Dec 8th, 2006 |
| Replies: 9 Views: 1,229 yes, regardless if it's the best way to do it, it's specified that we must use a queue and a stack. The requirements for the program were along the lines of:
"the tags read in from the file must... |
Forum: C++ Dec 8th, 2006 |
| Replies: 9 Views: 1,229 Sorry, it's in C.
I'm assuming fopen the file, then use fgets or getc to scan through untill "<" is found, from there store everything untill a ">" is found, them pop it in the queue. It sounds... |
Forum: C++ Dec 8th, 2006 |
| Replies: 9 Views: 1,229 Hello. Ok, so for this program I have to read in an html file, gather all html tags ( ie: <html> <font> </i> etc.. ) and add them to a queue in which they will be printed out later. Opening the the... |
Forum: C Nov 5th, 2006 |
| Replies: 2 Views: 1,696 Hello, for the final part of my program I need to count how many letters appear throughout a pretty large input file. Opening the file, storing to an array, etc.. is all taken care of. I'm clueless... |
Forum: C Nov 2nd, 2006 |
| Replies: 1 Views: 1,876 Hello, well, as the title states, I need to take the file input and store it into a string. It seems simple enough, just setup a for loop going through the total number of characters in the file... |
Forum: C++ Dec 5th, 2005 |
| Replies: 2 Views: 3,962 I just had a pretty basic question regarding graphics in C++ using the header graphics.h. How would you take a shape or just regular text and randomly move it around the screen like you would see... |
Forum: C Nov 13th, 2005 |
| Replies: 6 Views: 5,248 ok, thanks alot Ancient Dragon, very helpful, and very much apprechiated :) |
Forum: C Nov 13th, 2005 |
| Replies: 6 Views: 5,248 maybe I should re read the chapter :( I have no problem making the loop run 8 times, prompting for the next number, checking if its a digit and then storing it into an array of 7 integers, however,... |
Forum: C Nov 13th, 2005 |
| Replies: 6 Views: 5,248 ok, thanks. The only part that worries me is the teacher is pretty strict on the code format, if we use different methods than what he wants he will make us change it. The teacher has made errors... |
Forum: C Nov 13th, 2005 |
| Replies: 6 Views: 5,248 Sorry for the rather newbish question. I'm stuck on part of this program, it seems simple enough :-| The user is prompted to enter a phone number in the format of: xxx-xxxx (the hyphen must be... |
Forum: C++ Oct 12th, 2005 |
| Replies: 2 Views: 2,686 Hello, I'm working on a program and I'm close to finishing it, but theres one (or two) parts that I'm unsure of depending on how I set it up. The program has to have a user defined function flip(). ... |