yes it compiles.
i just re-copied it
#include<stdlib.h>
#include<stdio.h>
struct list_el {
Type: Posts; User: sumdude
yes it compiles.
i just re-copied it
#include<stdlib.h>
#include<stdio.h>
struct list_el {
First off let me say this is not Hw im trying to remember how linked lists work etc for my upcoming fall class: However what im trying to do is traverse a linear linked list thats sorted and when i...
Here is my situation
I have a stack that contain's queues. Assume that we have struct queue and struct stack declared. s points to the struct.
Now the problem is that it keeps printing the...
Question here concerning below. I use fgets to read in an entire line from a file in the format: " text 5 1 2 33 34 52" with the first number telling how many number follows it. However how do i go...
Is this where sscanf comes in?
Why can't this be done
while(action[i]!= " ")
{
action1[i]=action[i];
i++;
}
with i incrimented each time the loop executes.
question. I'm trying to read in a line from a file in the form
January 5 1 4 5 7 14
April 7 4 55 67 54 23 8 99
the above means that the first part is a string and the first number tells how...
ok why is it that the below works with the space in the scanf. In my program without the space it skipped the scanf and continued to loop.
do
{
............
scanf(" %c", &a);
see i had that down and it wasnt working. still trying here though
question. Is it a way to do a char to char compare.
so say that i have
scanf("%c", &a)
scanf("%c",&b)
Code is below
in c i need to have a menu.
pretty much
blah blah blah
then after all that executes you prompt for: Go again (y,n) then repeat the above steps.
I want to do it in a DO function btw. I have...
still cant get this ting to work. now its begining to print out some wierd characters.
ok here is what im getting
Please enter number of flips
2
HTHH
HTHHT
HTHHTTH
HTHHTTHT
why is this happen. Also i did declare in main ..... char sting[50]="HT"
so how can i resolve this problem?
This is what i came up with but it only prints the h's. any help?
Can someone tell me where im going wrong please/
ok will try that out. appreciate the help
ok. well correct me if i am wrong as i am just a begining comp science. student. I was informed that i had to do a double recursive call for this to even work period. I dont know if it makes sense at...
This question concerns a recursive function i have to write. its basically has to take a number in that will represent the the number of times you flip a coin. I need a way to print out all possible...