here is my code, can you find any mistakes please??? I cannot chop from the second word.
OUTPUT
Input: hello there
hello there
hello there
hello there
hello there
h
e
l
l
o
t
h
e
r
e
h e l l o => first string
Segmentation fault (core dumped)
=============== =============== =====...
User Profile
Collapse
-
spliting string.
Hi readers, I have got a string
a[ ] = {Name surname ...... };
I want to split the string into 2 the first string will contain the Name and the
second string will contain the rest after the surname, can anyone please
suggest how to do this.
thx -
well, my strings will be stored in a 2d array.
the ROWS represent the lines of text inputed or read by a file pointer and most of my strings will be stored in WORDS.
does this make it easier to search matching strings.
str[ROWS][WORDS]Leave a comment:
-
String searching algorithms in C
Can anyone give me insights on how to use a fast algorithm which can search an entire array of strings and print out the exactly matched words which matched with the input. -
yes, I have done this with two different DVD's. I also tried this on another computer. The installation just exits after saying kdcom.dll is either missing or corruptedLeave a comment:
-
Windows installation error
Hi i am currently trying to cleanly install windows operating system in by computer by booting, but, during the startup of the installation, it says, kdcom.dll is either missing or corrupted. I checked my windows files, but the kdcom debugger is not missing.
Does anyone have any insights in solving this problem. -
yes I have all ready tried the same sort of swap with array2 but, somehow it prints the first element for all the elements for array1.
eg:
array1[]= 1, 3, 4, 5, 5, 7, 7, 8
array2[]= 56, 56, 56, 56, 56, 56, 56, 56
and the compiler complains invalid operands for the struct data function.Leave a comment:
-
-
How to sort a table of arrays
Hi readers, I can sort a single array, using the bubble sort method, but I can't sort, the elements of another array.
eg
array1[]={4, 3, 7, 5, 1, 5, 8, 7}
array2[]=[23, 67, 98, 56, 56, 67, 77, 78]
If i sort array1[] i get
my array1 = 1, 3, 4, 5, 5, 7, 7, 8
but my
array2 = 23, 67, 98, 56, 56, 67, 77, 78
how do i swap the elements of array2 so it prints corresponding... -
ok i did it on paper, but i think i have a problem typing the right commands.
and buy the way i can use long integer to input and processes longer numbers.
i prefer to use basic operators while writing this program, cant use string, arrays or functions.Leave a comment:
-
i am talking about doing this in C complier. i cant use any strings etc. its just integers.Leave a comment:
-
How to format output to look like barcode
hey readers, can you please tell me how to write a c program which looks something like this.
./task.c
part 1Enter barcode (input): 9300605048577
part 2 prints:- Barcode is 930-060504-857-7
i know how to do part 1 but i need help with part 2. how can i make the inputed barcode print like shown above in part 2.
thx
No activity results to display
Show More
Leave a comment: