Forum: C Apr 24th, 2006 |
| Replies: 5 Views: 1,949 Alright... first off I hate fgets with a passion :)
Anyway, I am wanting to read a file into a 2 dimensional array and then randomly select one of those lines to output...
What am I missing... |
Forum: C++ Apr 24th, 2006 |
| Replies: 9 Views: 2,363 thanks for the help guys... ill get to reading..
and it was for unix (sorry i didnt specify) |
Forum: C++ Apr 23rd, 2006 |
| Replies: 9 Views: 2,363 Alright.. I have to rewrite a program. The thing is, I have to rewrite it using parent and children... With processes (pipes) or threads...
How do you create the parents and children with either... |
Forum: C++ Apr 18th, 2006 |
| Replies: 6 Views: 4,240 Yeah i know how to use rand() and the only thing about reading it in to figure out the size.... if i know its 50 lines... can't i just set that part of the array to 50 and for rand() just do the... |
Forum: C++ Apr 18th, 2006 |
| Replies: 6 Views: 4,240 i appreciate the reply.
Yes, i was gonna use the rand() function like you suggested. But for the fgets.... Reading the whole file first using them, then re-reading the file? I dont understand... |
Forum: C++ Apr 17th, 2006 |
| Replies: 6 Views: 4,240 Okay, thanks ahead of time for looking at this.
First off the program is in C, not C++.
I am trying to read in from a text file... a certain question.... but i fairly suck at programming in... |
Forum: C Feb 28th, 2006 |
| Replies: 8 Views: 3,442 ty much dragon :)
it is solved! |
Forum: C Feb 28th, 2006 |
| Replies: 8 Views: 3,442 Alright, I throw the gatchar(); in there, but then if I hit y or n it gives me invalid choice and there is no exiting the loop...
?? |
Forum: C Feb 28th, 2006 |
| Replies: 8 Views: 3,442 I must be missing something here. I am having trouble when I try to get an input. The numbers work fine, but once you get the correct answer, the area:
void tryanother() {
char... |
Forum: Assembly Dec 8th, 2005 |
| Replies: 0 Views: 3,584 can someone help with this issue? Anytime an operation is performed, the output is random characters and/or numbers...
.MODEL TINY
.CODE
ORG 100H
START: JMP BEGIN
; DEFINED VARIABLES |
Forum: C Oct 5th, 2005 |
| Replies: 7 Views: 2,264 Dont use them... i did once in a program and lost beaucoups of points... so i dont recommend it. |
Forum: Computer Science Oct 5th, 2005 |
| Replies: 2 Views: 2,134 i dont think you can pick up matlab fast...
ive been using it for 3 years now... and i still suck at it.
Im sorry for this information.
and as for reference... the only things i have are 2... |
Forum: Community Introductions Sep 26th, 2005 |
| Replies: 317 Views: 127,615 Name: Josh
Nickname: I plead the 5th
Height: 6'2
Weight: 175
Hair: Dark Brown
Eyes: different colors and kind of a swirl (brown, green, yellow, sometimes a hint of blue)
Location: West... |
Forum: C++ Aug 13th, 2005 |
| Replies: 3 Views: 1,293 2 minutes isnt enough time for someone to type... "try it yourself then post code... dont expect it to just be written for you" |
Forum: C++ Aug 12th, 2005 |
| Replies: 2 Views: 1,479 i still got a seg fault but it was good enough to turn it in. |
Forum: C++ Aug 11th, 2005 |
| Replies: 2 Views: 1,479 kinda like the last program.. just does different things..
anyway, im getting a seg fault i dont understand one bit
its off of the menu function.
when you input an invalid number like 8 - it... |
Forum: C++ Aug 11th, 2005 |
| Replies: 2 Views: 2,916 so i got that worked out but now...
more one quick question about this...
say i use:
void binaryTree::information(info & person) {
ifstream file;
... |
Forum: C Aug 11th, 2005 |
| Replies: 6 Views: 3,024 This link here covers it pretty well.
http://www.daniweb.com/tutorials/tutorial6542.html |
Forum: C++ Aug 11th, 2005 |
| Replies: 2 Views: 2,916 alright say i have a data file i want to open up and extract the data into a binary tree...
i do this to open the file:
binaryTree::information() {
ifstream file;... |
Forum: C++ Aug 11th, 2005 |
| Replies: 7 Views: 3,835 i just wanted to say i loved the line..
/*Whee! Now, trans->blar[2] is equal to head->next->next->blar[2]!
OMGEUREKAPWNZED!*/
thank you for that Drowzee :) |
Forum: C++ Aug 11th, 2005 |
| Replies: 0 Views: 1,000 for example when i now search for a specific city and none match the function will tell you but if there is a match the program just dies, also when i try the retrieve all function, the program dies... |
Forum: C++ Aug 11th, 2005 |
| Replies: 7 Views: 7,400 sorry dave, i still dont know what you were asking me to remove. so for everyone else out there... my program is seg faulting. and a debugger isnt helping so i am wondering you anyone can pick up... |
Forum: C++ Aug 10th, 2005 |
| Replies: 13 Views: 1,988 alright... dani i think its a good :) |
Forum: C++ Aug 10th, 2005 |
| Replies: 7 Views: 7,400 i dont understand? just delete the word typedef? |
Forum: C++ Aug 10th, 2005 |
| Replies: 7 Views: 7,400 Thanks narue.. I already did some other things by the time i saw this post. But I have more problems with it. And my code looks alot different tahn before. I changed the majority of everything to... |
Forum: C++ Aug 10th, 2005 |
| Replies: 12 Views: 4,425 try changing the
int main (void) ...
to int main () {
should read like this
int main () { |
Forum: C++ Aug 9th, 2005 |
| Replies: 7 Views: 7,400 alright my insert function is:
bool binaryTree::insert(dataNode*& tree, int &flightNumber) {
if (tree == NULL) {
tree = new dataNode;
tree -> left = NULL;
tree -> right = NULL;... |
Forum: C++ Aug 9th, 2005 |
| Replies: 7 Views: 7,400 |
Forum: C++ Aug 9th, 2005 |
| Replies: 7 Views: 7,400 what all do i have to do to make this work... this is my class and functions... and the errors are at the bottom...
do i have to overload operators or is there a much easier way? thanks.
and... |
Forum: C Aug 8th, 2005 |
| Replies: 4 Views: 3,311 so i get the job if i do this and you dont??
sounds like you better learn it before you get a job in it. |
Forum: C++ Aug 6th, 2005 |
| Replies: 2 Views: 1,508 actually i use dev-c++ on windows but i know how it acts when i get a seg fault.. i also use g++ on linux to compile after my windows version is working correctly just to double check (not always... |
Forum: C++ Aug 5th, 2005 |
| Replies: 2 Views: 1,508 Here is my entire code. I am getting a segmentation fault ( I love pointers for this reason!!!!) off of one of my head pointers i believe.
Can anyone help me find/ fix this? please, and thank... |
Forum: C++ Aug 5th, 2005 |
| Replies: 11 Views: 28,827 Narue knows her stuff. She is very helpful. And I understand why she gets aggravated. The guy had 40 posts and..AND there is a thread at the top of the lists about code tags... so she has the... |
Forum: C++ Aug 2nd, 2005 |
| Replies: 7 Views: 10,834 im pretty sure that no one will just write the program for you and if you are trying then post more code... im pretty sure that bit you posted wont accomplish what you are asking for |
Forum: C++ Aug 2nd, 2005 |
| Replies: 2 Views: 1,968 ive used -1 for when i do a queue.
ill start the first element at 0 and the back of it at -1 then step them through. either that or start one of them at whatever i define max with.
i think ive... |
Forum: C++ Aug 1st, 2005 |
| Replies: 4 Views: 1,234 got it working.
thanks dave |
Forum: C++ Aug 1st, 2005 |
| Replies: 7 Views: 1,435 hardly any variable you use is not defined...
also use [code] tags for formatting... its very hard to read without them.
and why on every function do you have (void) as a variable or variable... |
Forum: C++ Aug 1st, 2005 |
| Replies: 4 Views: 1,234 alright here is some more of the code...
and the reason why i did
if (point = edges[x].from) {
was for the fact of... how do you know what point is unless you run a comparision.. the only... |
Forum: C++ Aug 1st, 2005 |
| Replies: 4 Views: 1,234 Here is a chunk of my program... without the class and header file...
I am wanting to take that little graph thats in the middle of the code and have the user input a starting point and an ending... |
Forum: C++ Aug 1st, 2005 |
| Replies: 7 Views: 1,435 You have to end a struct with ;
should be
struct llink
{
int elem;
llink* nextelem;
}; |