Search Results

Showing results 1 to 23 of 23
Search took 0.01 seconds.
Search: Posts Made By: bemo55
Forum: C May 3rd, 2009
Replies: 2
Views: 375
Posted By bemo55
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
Posted By bemo55
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
Posted By bemo55
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
Posted By bemo55
p.s. My file has 63 strings.
Forum: C Apr 19th, 2009
Replies: 6
Views: 525
Posted By bemo55
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
Posted By bemo55
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
Posted By bemo55
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
Posted By bemo55
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
Posted By bemo55
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
Posted By bemo55
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
Posted By bemo55
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
Posted By bemo55
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
Posted By bemo55
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
Posted By bemo55
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
Posted By bemo55
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
Posted By bemo55
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
Posted By bemo55
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
Posted By bemo55
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
Posted By bemo55
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
Posted By bemo55
Thanks that was my problem. i hate getting all aggravated because of stupid little errors.
Forum: C Nov 13th, 2008
Replies: 2
Views: 640
Posted By bemo55
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
Solved: help me plz
Views: 395
Posted By bemo55
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
Solved: help me plz
Views: 395
Posted By bemo55
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...
Showing results 1 to 23 of 23

 


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

©2003 - 2009 DaniWeb® LLC