Any one have some simple sample codes for Linked-List codes? because from the examples I found from books, they mostly only declare integer data inside the node.
What I concern is, I need an...
Type: Posts; User: ling
Any one have some simple sample codes for Linked-List codes? because from the examples I found from books, they mostly only declare integer data inside the node.
What I concern is, I need an...
# include <iostream.h>
void main(){
char string[80];
cout<<"Enter a string : ";
cin.getline(string,80,'\n');
I was new to C++. I trying to convert a string(example : hello) into ASCII value. I tried to use putchar(0, but it only work for one character.
if I want to declare the char string become char...
hi there,
I'd modified your coding...I hope it is what you want.
***********************code**********************
#include<stdio.h>
# include <stdlib.h>
struct baby{
>Did this work ?
>scanf ("%s", &book_array[i].ISBN);
sorry................ I should take out the '&'.......:D
sorry...I press the "post" button to fast...
the problem actually was in - book_record *search (char isbn[]) function.
It always display the first book record information to me. why??
Thank you salem.
:)
I always facing problem when deal with array......>_<
mm.... I know there is something wrong in my program..but I don't know where is it? Can anyone modify for me?? thank you very much.
...
Thanks knave and pinko_liberal. ^_^
I know how to doing the reverse priting in many ways now.
:)
Hi, Salem, what are the different between using void main() and main() (return 0).....
will it cause any problem???? Thank you.
:confused:
Thanks bigtamscot, now I know how to do printing the string in reverse order without using strrev();
you solved the problem that i tried for one whole night..(how stupid I am..)
I want to print all the characters (including spacing and special characters) in a sring in reverse order. But the program fail to do it. :confused
Can anyone tell me what's wrong in my...