Hi all..
i am doing myC++ assignment and i got problem in adding, deleting, and modify records.
It should be some problem, but i dunno what's wrong. can somebody give me some tips for doing this ?
THanks

elements of an array are not called "records". A record is something you play on a phonograph machine, history of your activities in prison, or a complete collection of data in a file.

I'm not 100% adept with c/c++ - but...

as you've posted no code - i'll hazard a guess:

- You need to create the type


struct my_record
{
/* your data types


*/
};

- Then make a variable of it


struct my_rec my_var[100]

/* obviously determine how many you want in an array */

Then again i'm not 100% sure what the problem is... so post some code or an insight to the problem!

Hey guys.. i need ur help again
this is my code:

cout<<"Please insert a new video ID:"<<endl;
    cin>>videoNum;
    cout<<"Please insert a new video Name:"<<endl;
    cin>>videoName;
    cout<<"The new Video ID:"<<videoNum<<endl;
    cout<<"The new Video Name:"<<videoName<<endl;

<< moderator edit: added [code][/code] tags >>

when i input the videoName such as "white chicks"...
the output will be White only.
can somebody tell me why?

the data type for videoName is char videoName[30];

Thanks for ur help guys..
cheers!

This article has been dead for over six months. Start a new discussion instead.