answersLogoWhite

0


Best Answer

enum field { name, course, grade }; std::string student[3];

student[name] = "Joe Bloggs";

student[course] = "C++ Programming";

student[grade] = "A+";

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: C plus plus program that display student name course and grade using arrays of strings?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How can you do the same thing as the program below but using strings and arrays in C language?

Program below?!


What are input and out put string?

Input strings are character arrays that are initialised from input devices, such as file streams with read access and the keyboard. Output strings are character arrays sent to output devices such as files with write access, the console (display) and printers.


How do you print my name in c program in vertical manner using arrays?

you need strings to print any character(your name) this is not possible useing array:D


What are Strings in C programming?

Arrays of chars are strings. there is a built in librray, that handles string string.h but the data-type is held as arrays of chars. char[10] c="string"; translate to ['s','t','r','i','n','g',\0] Arrays of chars are strings. there is a built in librray, that handles string string.h but the data-type is held as arrays of chars. char[10] c="string"; translate to ['s','t','r','i','n','g',\0]


What is type string in C?

Nothing, zero-terminated char-arrays are used instead of strings.


Write a program to read your name and reverse it using arrays?

abdulrahman


How do you create a program in visual basic?

arrays programms in visual basic


What are the applications of array?

arrays are used to store the group of data which are of same type. These arrays can be applied in student mark sheet applications,online library applications etc.


Why do you use ampersand symbol for arrays and not for a string?

You don't need to use ampersand for arrays; it's entirely optional even for strings (character arrays). This is because arrays will implicitly convert to a pointer at the slightest provocation. Thus for an array named X, you can either pass the array to a function as X, &X or &X[0], they all refer to the exact same address.


Write a program to find intersection between two arrays?

#include<stdio.h>


How are string stored in c language?

Strings represented by the language character set (e.g., ASCII) are stored as null-terminated arrays of type char. Wide-character strings are stored as null-terminated arrays of type wchar_t. Other types are also available, such as char16 and char32 (for UTF16 and UTF32 encodings, respectively).


How many data types are there in PHP?

The data types are grouped into this categories: Booleans Integers Floating point numbers Strings Arrays Objects