Showing results 1 to 5 of 5
Search took 0.01 seconds.
Posts Made By: crunchycrisp
Forum: C Oct 29th, 2007
Replies: 12
Views: 2,736
Posted By crunchycrisp
Re: multiple choice test

#include <stdio.h>
#include <string.h>
#include <ctype.h>
#define INFILE "questions.txt"

int main(int argc, char *argv[]) {
FILE *fin,*fout;
fin = fopen(INFILE, "r");

if ( fin == NULL )
Forum: C Oct 29th, 2007
Replies: 12
Views: 2,736
Posted By crunchycrisp
Re: multiple choice test

for some reason my program now only prints once character before prompting for a user response, though it was working before. im not too sure why...


#include <stdio.h>
#include...
Forum: C Oct 29th, 2007
Replies: 12
Views: 2,736
Posted By crunchycrisp
Re: multiple choice test

after fiddling around with the code, ive progressed to :

#include <stdio.h>
#include <string.h>
#include <ctype.h>
#define INFILE "questions.txt"



int choose( char *list)
Forum: C Oct 27th, 2007
Replies: 12
Views: 2,736
Posted By crunchycrisp
Re: multiple choice test

how do i get it to read until the end of question d? what i mean is, i try a loop until '\n' but that only would display one line. is there something that represents '\n\n'?
i also tried using
if...
Forum: C Oct 27th, 2007
Replies: 12
Views: 2,736
Posted By crunchycrisp
multiple choice test

For an assignment that im working on, we needed to accomplish the following:
Asks the user for their name, accepts and stores the answer as a string.
Opens a text file: questions.txt for...
Showing results 1 to 5 of 5

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 11:15 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC