Forum: C May 3rd, 2009 |
| Replies: 2 Views: 375 Hello. I am trying to do a project with linked lists. It seems that everything is coded correct in my code to create new nodes and move my pointers and such. But for some reason my function that is... |
Forum: C Apr 20th, 2009 |
| Replies: 3 Views: 781 I am trying to store all of the tokens in an array. But after it store racecar in the array i get an access violation,Unhandled exception at 0x6515f8e0 (msvcr90d.dll) in Assignment2.exe: 0xC0000005:... |
Forum: C Apr 19th, 2009 |
| Replies: 6 Views: 525 Nevermind. I got the tokenizing function to work:)..Now ive just got to implement my palindrone function. Thanks for the help guys. |
Forum: C Apr 19th, 2009 |
| Replies: 6 Views: 525 p.s. My file has 63 strings. |
Forum: C Apr 19th, 2009 |
| Replies: 6 Views: 525 I have looked at strtok but I didnt think that it would work with data i am reading in. All the examples i seen were declaring the array as a certain string like
char array1=" your string here"
... |
Forum: C Apr 19th, 2009 |
| Replies: 6 Views: 525 Hello. I was wondering how to read strings from a file word by word and store the words into an array in c. I am having to write a program that tests words to see of they are palindromes from a... |
Forum: C Mar 3rd, 2009 |
| Replies: 12 Views: 766 MY problem was in this block of code
int i;
for(i=0;i<SIZE;++i){
printf("Please enter your first name:\n");
scanf("%s", firstname[i]); |
Forum: C Mar 2nd, 2009 |
| Replies: 12 Views: 766 I have been workiing on getting the names to print at the very end for 3 days now and i just can't figure it out.
#include <stdio.h>
#include <string.h>
#define SIZE 40
#define FCLASS 10... |
Forum: C Feb 28th, 2009 |
| Replies: 12 Views: 766 Here's my full code for this project if it helps.
#include <stdio.h>
#include <string.h>
#define SIZE 40
#define FCLASS 10
#define ECONOMY 30
#define FIRST 40 |
Forum: C Feb 28th, 2009 |
| Replies: 12 Views: 766 Yes i ran it and it printed just a bunch of line with the name in between them
. |
Forum: C Feb 28th, 2009 |
| Replies: 12 Views: 766 So if i were to print an my array of names, say for a roster of passengers on an airplane would this code be correct?
void prFlight(char firstname[][LENGTH], char lastname[][LENGTH], int... |
Forum: C Feb 28th, 2009 |
| Replies: 12 Views: 766 I have a project for school that i am working on, and i cant figure out how to store names in an array. i have it declared as
char firstname[25];
char lastname[25];
but i was told that just... |
Forum: C Feb 18th, 2009 |
| Replies: 5 Views: 427 Okay i changed my code around a little bit. i decided to start off easy and just get it to read in user choice and name and print them out, but i am getting the stupid undeclared identifier error for... |
Forum: C Feb 18th, 2009 |
| Replies: 5 Views: 427 Sorry about the forty. I wasn't clear on my post. My teacher increased the max volume to forty , 10 for first class and 30 for economy. |
Forum: C Feb 17th, 2009 |
| Replies: 5 Views: 427 Hello! I was having trouble with this program i keep getting undeclared identifier errors for my seat array and my seatnumber variable. I was also wondering if i was going about writing this program... |
Forum: C Feb 11th, 2009 |
| Replies: 3 Views: 391 I just learned pointers in my computer science class and i am having a hard time understanding what they are used for. Are they absolutely necessary to use them when passing arrays from functions... |
Forum: C Jan 23rd, 2009 |
| Replies: 4 Views: 325 Its just the end brace for the last if statement. i had to put it there so the if statement would read the printf and the scanf. i tried what you said earlier but it didnt work maybe I did it wrong... |
Forum: C Jan 23rd, 2009 |
| Replies: 4 Views: 325 I am doing an extra assignment for my CSCI class. The assignment asks to create a program that calculates hours for customers in a parking garage. i wrote my program out and now i am trying to break... |
Forum: C Nov 18th, 2008 |
| Replies: 3 Views: 444 Depends on what kind of exam. If it's in a book then find out what chapter and study it! |
Forum: C Nov 14th, 2008 |
| Replies: 2 Views: 640 Thanks that was my problem. i hate getting all aggravated because of stupid little errors. |
Forum: C Nov 13th, 2008 |
| Replies: 2 Views: 640 I have a programming assignment for CSCI180. The assignment is to create a recursive function power(base, exponent) that when invoked returns base ^ exponent. Everything compiles correctly and when i... |
Forum: C Oct 24th, 2008 |
| Replies: 3 Views: 395 Okay I edited my code and now the first part works correctly except the user has to input 1 twice before it prompts the user to enter number to convert and no matter what number the user inputs its... |
Forum: C Oct 24th, 2008 |
| Replies: 3 Views: 395 I am having a problem with this project I am working on. The assignment is to create an application that will give a user the choice of displaying the roman numeral equivalence of a number between 1... |