ttt
Type: Posts; User: rain_e
ttt
well i spoke to soon! same warning message!!! then when i compile i get a segmenation fault here's my exact code.
#include <stdio.h>
#include <string.h>
int main(void)
{
char...
thank you SOOOOOOOOOOOO much.
thats what i was looking for! i've been looking for a tutorial on this all day!
now i can get on with the hard part of the assignment.
doubly linked lists!!!
i've been using the logic you showed but i think my declarations may be incorrect.
char input[50]; //read from keyboard
then when i try to reference this by input[4] i get an error from...
ok i think i'm getting a little over my head here.
all i want to do is read the a line of text.
i need to determine the first character and place it in its own variable. then i have to...
if i use input +4 it will print everything from position 4 and beyond. is it possible to restrict this to only position 4?
i'm trying to manipulate a sting it think.
i have read a string with gets(input)
then i would like to determine what character is in say postion 5?
i thought this could be done by
...
I'm trying to scan a line. This line will sometimes contain 1 char. or sometimes it will contain 1 char followed by a string.
printf("\nEnter text now");
scanf("%c", &char1);
scanf("%s",...