Thanks. I forgot that. I seem to have if fixed now. Thanks again for the advice and help.
Here is new code:
printf("This program will request and store a string of characters\n");...
Type: Posts; User: kburyanek
Thanks. I forgot that. I seem to have if fixed now. Thanks again for the advice and help.
Here is new code:
printf("This program will request and store a string of characters\n");...
I had tried to see if the S[P]+=QL; <--would change the way the program executed and it did not. I originally had the same (isalpha (S[P])); QL=QL=1;
I do not understand about the isdigit? ...
This program executes but i can not get it to count the letter, numbers, etc,. It does count the string length properly. Any help. Program has to be one main function, in which I got scolded last...
Thanks for all of your help. New program.
#include <stdio.h>
#include <stdlib.h>
#include<time.h>
#define SIZE 6
#define MAX 53
Adak, I changed to the indentions that you have is this is the output that I have now.
LOTTO PICKS
14 14 14 14 14 14
It is sorting but not from lower number to high number. My instructor wants the bubblesort but in his example, the numbers have to be low to high. I do not know how to get it to do that part
I changed and it is not sorting
Can someone please help me with my bubblesort. It is not sorting and also prints 3 times.
#include <stdio.h>
#include <stdlib.h>
#include<time.h>
#define SIZE 6
Problem completed.
Thanks, but I have the program complete. My mind went blank for a minute.
I updated my program and have fixed most problems. I have a problem with the pointer, which I cannot get fixed.
#include <stdio.h>
#include <stdlib.h>
#define SENT 4 //"Quit" menu choice
Can someone please tell what I am doing wrong with this pointer. I keep getting error message undeclared itdentifier. found int expected point to int.
void Gen2Rand (int*r1p, int*r2p)
...
It is telling me illegal type pointer to int in switch expression on this (red) and operands of + have illegal type 'pointer to int' and 'pointer to int'. It does not do this on all of the other...
Thanks but I did go into my book and I had changed that.
For some reason my compiler did not find those error and when I tried to add { } around the below, I got an error.
if (c>=1 && c<SENT) // you probably want to use a pair of {}'s around some of...
I am having a problem with following a flowchart. Here is what I have so far and I keep coming up with pointer and int errors. Any help would be greatful.
#include <stdio.h>
#include...
I fixed it. It was the define. Thanks for all of your help ADAK.
Thank you very much. I just could not get my head on straight with this one, but after seeing this, I know see what the mistakes were. The only thing that does not calculate properly is the
// ...
not sure what you mean by the statement in c loop?
changed the loops to this and now executes this. Do I need to change the if boxnum.
printf ("\n\nThe numbering layout will be:\n");
while (r <= rows)
{
this is what my execute looks like. I cannot seem to get to print 6,7,8,9,etc...on the next row. Any help would be greatful.
How many rows of mailboxes will there be?4
How many columns of...
never mind I figured that part out, the &was not in front of rows, or cols. Also, I do not know why I put the = on the define. I know better than that, even being a beginner. I thank you for your...
can you answer me a question of why in the int cols, int rows,, I get an error message stating possible usage of cols before definition, same thing on rows, possible usage before definition.
When...
i have to go by the documentation that my instructor gave me and he defined the constant
mbxhgt 6
mbxwid 4
My apologies, I forgot to change that part. That is not where I am having my problem, it is when my compiler gets to the unit_height = rows * mbxhgt.
it state that I have a problem, how can I...