Search Results

Showing results 1 to 40 of 105
Search took 0.01 seconds.
Search: Posts Made By: jhdobbins
Forum: C Apr 24th, 2006
Replies: 5
Views: 1,949
Posted By jhdobbins
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
Posted By jhdobbins
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
Posted By jhdobbins
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
Posted By jhdobbins
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
Posted By jhdobbins
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
Posted By jhdobbins
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
Posted By jhdobbins
ty much dragon :)

it is solved!
Forum: C Feb 28th, 2006
Replies: 8
Views: 3,442
Posted By jhdobbins
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
Posted By jhdobbins
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
Posted By jhdobbins
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
Posted By jhdobbins
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
Posted By jhdobbins
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
Posted By jhdobbins
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
Posted By jhdobbins
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
Posted By jhdobbins
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
Posted By jhdobbins
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
Posted By jhdobbins
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
Solved: Write to a file
Views: 3,024
Posted By jhdobbins
This link here covers it pretty well.

http://www.daniweb.com/tutorials/tutorial6542.html
Forum: C++ Aug 11th, 2005
Replies: 2
Views: 2,916
Posted By jhdobbins
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
Posted By jhdobbins
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
Posted By jhdobbins
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
Posted By jhdobbins
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
Posted By jhdobbins
alright... dani i think its a good :)
Forum: C++ Aug 10th, 2005
Replies: 7
Views: 7,400
Posted By jhdobbins
i dont understand? just delete the word typedef?
Forum: C++ Aug 10th, 2005
Replies: 7
Views: 7,400
Posted By jhdobbins
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
Posted By jhdobbins
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
Posted By jhdobbins
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
Posted By jhdobbins
nevermind... got it.
Forum: C++ Aug 9th, 2005
Replies: 7
Views: 7,400
Posted By jhdobbins
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
Posted By jhdobbins
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
Posted By jhdobbins
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
Posted By jhdobbins
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
Posted By jhdobbins
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
Posted By jhdobbins
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
Posted By jhdobbins
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
Posted By jhdobbins
got it working.

thanks dave
Forum: C++ Aug 1st, 2005
Replies: 7
Views: 1,435
Posted By jhdobbins
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
Posted By jhdobbins
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
Posted By jhdobbins
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
Posted By jhdobbins
You have to end a struct with ;

should be

struct llink
{
int elem;
llink* nextelem;
};
Showing results 1 to 40 of 105

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC