Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 10 of 10
Search took 0.01 seconds.
Search: Posts Made By: mmmm_strawberries
Forum: C++ Apr 3rd, 2005, 3:31 PM
Replies: 8
Views: 347
Posted By mmmm_strawberries
Ok new question. Disregard previous questions....

Ok new question. Disregard previous questions. How do I get it to print the last 10 words of the file? And it won't even give me the first 10 words of files 2-5. It only works for words_emancip.txt
Forum: C++ Apr 3rd, 2005, 3:19 PM
Replies: 8
Views: 347
Posted By mmmm_strawberries
Here's my professor's sample output. Select a...

Here's my professor's sample output.


Select a file by number from this list:
1 - words_emancip.txt
2 - words_flatland.txt
3 - words_macbeth.txt
4 - words_prince.txt
5 - words_purloin.txt
Your...
Forum: C++ Apr 3rd, 2005, 3:17 PM
Replies: 8
Views: 347
Posted By mmmm_strawberries
Thanks, that is a lot cleaner looking. But what I...

Thanks, that is a lot cleaner looking. But what I need to ultimately do is store all of the words. Well here's the instructions:


1) Prompt the user to select a text file to read. The file selected...
Forum: C++ Apr 3rd, 2005, 1:48 PM
Replies: 8
Views: 347
Posted By mmmm_strawberries
Ok I thought maybe I messed up by putting token =...

Ok I thought maybe I messed up by putting token = strtok(Buffer, delimiters); so I changed it to strcpy( token, strtok(Buffer, delimiters) but that crashed it. I like strcpy better. Is my syntax...
Forum: C++ Apr 3rd, 2005, 12:56 PM
Replies: 8
Views: 347
Posted By mmmm_strawberries
Yeah, but I think I'm going about this all wrong....

Yeah, but I think I'm going about this all wrong. Right now it's just reading then printing the first 10 words. But I need to store them. But every time I use something like temp[a] = strtok( Buffer,...
Forum: C++ Apr 2nd, 2005, 12:12 PM
Replies: 8
Views: 347
Posted By mmmm_strawberries
Help with sorting and counting?

Well, so far I have this program reading the first 10 words of a file. But what I need it to do is read all of the words, sort the words, count the words, and print the first and last 10 words of the...
Forum: C Mar 31st, 2005, 1:58 PM
Replies: 8
Views: 354
Posted By mmmm_strawberries
I need a good tutorial for structures

Well the title it self explanatory. Anyone know of a good tutorial for structures in the C language?
Forum: C++ Mar 4th, 2005, 1:54 PM
Replies: 3
Views: 139
Posted By mmmm_strawberries
Sorting arrays

Howdy everyone.

I need some help in sorting an array, the example in my textbook is just not up to par.

Could someone write a simple short program in C (not C++) that sorts the elements of an...
Forum: C++ Feb 27th, 2005, 4:32 PM
Replies: 3
Views: 245
Posted By mmmm_strawberries
Oh oops. I'm sorry. I'm using Microsoft Visual...

Oh oops. I'm sorry. I'm using Microsoft Visual C++. But the file is a .c.
Forum: C++ Feb 27th, 2005, 4:24 PM
Replies: 3
Views: 245
Posted By mmmm_strawberries
C programming problem

I have an assignment due in my Intro to Programming class. I have it all except for one part is wrong. The program is supposed to add fractions. The problem lies with 1/11. My teacher put up his EXE...
Showing results 1 to 10 of 10

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:46 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC