Programming Forums
User Name Password Register
 

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

Showing results 1 to 17 of 17
Search took 0.01 seconds.
Search: Posts Made By: Blighttdm
Forum: C Nov 18th, 2005, 6:15 PM
Replies: 12
Views: 517
Posted By Blighttdm
Ok, so that's how those work. Gawd I'm such a...

Ok, so that's how those work.

Gawd I'm such a n00b at this.

Ok, so I appended the program so it includes fgets and the decrementer.

When I enter say 'diary', I get:
Please enter a noun(up to 28...
Forum: C Nov 18th, 2005, 5:22 PM
Replies: 12
Views: 517
Posted By Blighttdm
Firstly thanks, Second, I just want to understand...

Firstly thanks,
Second, I just want to understand how these corrections work.
fgets(input,sizeof(input),stdin);
I know gets is used for strings but why use it in a single string?
Also stdin, I have...
Forum: C Nov 18th, 2005, 4:53 PM
Replies: 12
Views: 517
Posted By Blighttdm
So how whould I go about fixing this because I'm...

So how whould I go about fixing this because I'm lost.
Forum: C Nov 18th, 2005, 5:51 AM
Replies: 12
Views: 517
Posted By Blighttdm
So, why is it not appending any words I enter?

So, why is it not appending any words I enter?
Forum: C Nov 17th, 2005, 10:31 PM
Replies: 12
Views: 517
Posted By Blighttdm
Well here it is, I was just following the...

Well here it is, I was just following the guidelines and not posting the whole thing. Hope it helps.
/*********************************
*********************************/

#include <stdio.h>
#include...
Forum: C Nov 17th, 2005, 10:10 PM
Replies: 12
Views: 517
Posted By Blighttdm
String error in if statement

The Problem:
As I try to compile a small C program I get the following error messages:
ghp11.c:25: error: syntax error before '{' token
ghp11.c: At top level:
ghp11.c:30: error: syntax error before...
Forum: C Nov 3rd, 2005, 3:13 PM
Replies: 5
Views: 279
Posted By Blighttdm
:smack self in face: Duh! I forgot that arrays...

:smack self in face:

Duh! I forgot that arrays 0th element is already a pointer constant. Thanks!
Forum: C Nov 3rd, 2005, 11:18 AM
Replies: 5
Views: 279
Posted By Blighttdm
Changing Array notation with pointer notation

Problem: I'm trying to replace some of my array notation with pointer notation
Example:
&x[i] to *(x+i)

Code:

void get_score (float x[])
//declares input function
{
int i=0; ...
Forum: C Oct 21st, 2005, 8:52 PM
Replies: 20
Views: 612
Posted By Blighttdm
Thanks, I forgot that I needed to reset. :p...

Thanks, I forgot that I needed to reset. :p

Right now we are just testing arrays, but adding a character test could easily be done.
Once again, thanks to all that helped.
Blight
Forum: C Oct 21st, 2005, 8:00 PM
Replies: 20
Views: 612
Posted By Blighttdm
My problem lies in the saving and printing of the...

My problem lies in the saving and printing of the input.
I already noticed my own error and changed the %ld to %f, but thanks for posting it.
Forum: C Oct 21st, 2005, 7:50 PM
Replies: 20
Views: 612
Posted By Blighttdm
Thanks, I didn't realize what I had typed in on...

Thanks, I didn't realize what I had typed in on both accounts.

And as far as my posting is concerned, I posted because it was the same error message but slightly different that the original poster....
Forum: C Oct 21st, 2005, 7:33 PM
Replies: 20
Views: 612
Posted By Blighttdm
Well anyways, I have one problem now that it...

Well anyways, I have one problem now that it runs.
#include <stdio.h>
#define size 10

int main(void)
{
float sluggo[size];
int i=0,j=0,k=0;

printf("\nWelcome to Sluggo, the program that...
Forum: C Oct 21st, 2005, 6:54 PM
Replies: 20
Views: 612
Posted By Blighttdm
Sorry...I do try to read the manuals but c'mon,...

Sorry...I do try to read the manuals but c'mon, I'm looking for help.

Anyways it fixed the error, I just have to fix the saving...because it didn't save any input.
Forum: C Oct 21st, 2005, 5:53 PM
Replies: 20
Views: 612
Posted By Blighttdm
Bumping this for my own problem. As per the...

Bumping this for my own problem.
As per the original post I'm having the same error...I have no idea why.
The entire program:

#include <stdio.h>
#define size 10

int main(void)
{
float...
Forum: C Oct 14th, 2005, 7:24 PM
Replies: 5
Views: 325
Posted By Blighttdm
Thanks so much, I see what went wrong with it....

Thanks so much, I see what went wrong with it. dumb mistakes on my part
Forum: C Oct 14th, 2005, 4:22 PM
Replies: 5
Views: 325
Posted By Blighttdm
Prototype: void calculate...

Prototype:
void calculate (int,int*,int*,int*,int*,int*);


Declaration:
calculate(cash_input,&fifties,&twenties,&tens,&fives,&ones);

Cash input is a variable I saved in main that was created in...
Forum: C Oct 14th, 2005, 4:09 PM
Replies: 5
Views: 325
Posted By Blighttdm
pointer number alteration

Purpose: To take whole dollar ammounts inputed by the user and break it down into the least ammount of bills.
Error: The tens denomination either adds or subtracts from itself. Ex.$77 is put in, the...
Showing results 1 to 17 of 17

 
Forum Jump



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

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