Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
c++ Array
10-12-2013, 03:04 PM, (This post was last modified: 10-26-2013, 02:04 PM by ionutvmi.)
Post: #1
c++ Array
Code:
//Array
//add me on fb: [email protected]

#include<iostream>
#include<string>

using namespace std;

int main()
{
    int input,records,go,i,view,wat,x;
    string id[255];
    string name[255];
    int age[255];
    string section[255];
    


main:
    cout<<"[1]Input Records\n";
    cout<<"[2]View Record\n";
    cout<<"[3]Exit\n";
    cin>>i;
    

    switch(i)
    
case 1:
    {
    cout<<"Number of Records: \n";
    cin>>records;
    for (x=0; x<records; x++)
    {
        cout<<"StudentID: \n"<<endl;
        cin>>id[x];

        cout<<"Name: \n"<<endl;
        cin>>name[x];

        cout<<"Age: \n"<<endl;
        cin>>age[x];

        cout<<"Section: \n"<<endl;
        cin>>section[x];
        
    }

    system("cls");
    cout<<"[1]Go to Main\n";
    cin>>go;
    switch(go)
    case 1:
    {
    goto main;
    }

    }
    switch(i)

    case 2:
        {
            cout<<"View Records\n";
            cout<<"Student ID";
            cin>>wat;
            x= wat-1;

            cout<<"Studet Name: \n"<<name[x]<<endl;
            cout<<"Age: \n"<<age[x]<<endl;
            cout<<"Section: \n"<<section[x]<<endl;

        }











    return 0;
}
Reply
[-] The following 1 user Likes Silvereight's post:
  • DjPsAllScript
12-09-2016, 09:06 AM,
Post: #2
RE: c++ Array
Essentially, in the event that you could get your program and make a line, emphasizing one occasion after another down this line, this line would be your string. 3d animation videos. By having various strings, you'd have the capacity to leave scope and execute your capacities and execute your principle code in the meantime.
Reply
01-11-2017, 02:58 PM,
Post: #3
RE: c++ Array
I hate C++ because it's really hard language I provide cheap assignment writing service
I fail in C++ Subject 2 time i never understand C language now i'm trying to focus on it and doing research could you help me ?[/size]
Reply
05-18-2018, 11:14 AM,
Post: #4
RE: c++ Array
It’s amazing to visit this web page and reading the views of all colleagues about this piece of writing. Very useful info specifically the ultimate phase I maintain such info much. I was looking for this certain information for a long time. Good and Excelent work. Thanks
http://kaleerein.net/
Reply
05-18-2018, 05:51 PM,
Post: #5
RE: c++ Array
I really Like Your Blog. It's layout is also good here is a quality of articles. I read some posts from your blog I am Interested in these articles. Today I got my favourite blog. Many Thanks for sharing these articles. Thanks
http://yehrishtakyakehlata.com/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)