I have just been searching for 'left' and I cannot find anything
Thanks
Type: Posts; User: psppb
I have just been searching for 'left' and I cannot find anything
Thanks
I am unable to get the string seaching function to work. it always says "Nothing found" I am stumped. Any hints ?
Thanks
#include <stdio.h>
#include <string.h>
char tracks[][80] = {
...
I was taken and sent to china for a production issue for four months :(
What is the difference between extern struct and a const struct or any variable for that matter.
Thanks (I'm on sort of a crash course in C for work)
I am learning to program and this program is suppost to work in the book but it will not find anything. I'm stumped
Thanks
#include <stdio.h>
#include <string.h>
char tracks[][80] = {...
Yes, This is exactly my problem :) I apologize but there is a skill to asking good questions on this forum and I have yet to master it. I do appreciate your attempts to figure out what I need very...
Is there a way to reset a char variable?
I have a getchar() statement that I use over and over to dictate which leg of a switch statement I dive into. I need to clear the variable so that time I...
I need the program to stop and make the user input something. the default of zero is making it not prompt any input and running to the end
Thank you!
int choice; char Col_line[100];
printf("How Much? \n");
fgets(Col_line, sizeof(Col_line), stdin);
sscanf(Col_line, "%d", &choice);
...
I am using Bloodshed Dev C++ and writing source files. How do I get a project that is composed of multiple files to compile into one .exe file?
my source file programs are getting very long
Thanks
Hello,
I have several input prompts in my code but the default of zero keeps making the code run right through the prompts. How do I clean out the input and make the user change the value so the...
Yes I go into the function and it runs right through to the main function without stopping or asking for any input
I'm actually not even given an opportunity to enter a char
I added break and it still flew right through
void The_buy( double *my_money_ptr,
int *my_c_units_ptr,
int *my_h_units_ptr,
int *my_r_units_ptr,
...
It was recommended that I try this:
double price = 30000 *rand() % 1;
But that keeps giving me zero every time? Am I missing something?
Thanks
Greetings,
I am having a problem with a function skipping over my switch statement and going right to the default. I have a getchar() statement but it rolls right through. Can anyone tell me why?...
Grumpy,
I understand and am sorry to disgust you. It's from an old game on my calculator. Thank you for your help.
Greetings, Still working on the pointer thing in my silly game. I get a warning : Passing arg 1 of 'Drug_buy' makes integer from pointer without a cast this is in the first call of the function...
I need help getting user input this is the best I can think of:
int drug_choice_selection;
char drug_choice[100];
printf("How Much? \n");
...
float x = (1000 *rand() % 100)/100; Gives me a zero with nothing behind the decimal it compiles but I cannot figure out what is wrong with this
Thanks
Good point perhaps a float then... or double??
Thanks
Bill
I entered 1 and Bang...... Show's over
I cannot find a decent example online about creating a random number that is between 0 and 1 and is positive. So far I've tried
rand() %1 but this hasn't yielded any good results
Thanks
My code compiles fine but whenever I run it I get a popup window that states DW.exe has stopped working, Windows is checking for a solution. What could be causing this? I cannot trouble shoot this...