-
data structure examples
Anyone have any good URLs where I can go and learn more about data structures? I need to write a program that creates a data structure, accepts user input and stores in the data structure and outputs to screen.
I have been searching on the net and havn't found any good sites.
Thanks,
Jose
-
I like this one. What data structure are you supposed to be using? There are a bunch.
-
I am not sure. I took a C programming class in summer school and the instructor flew through data structures and this semester I am taking a C++ class and am on an assignment where we have to write a program that accept one user input for pizza company name, diameter of pizza, weight of pizza and display on screen.
-
Does not sound like you need to use a data structure in this problem.
Mr. C.
-
I disagree, an array would be a good data structure to use if you aren't allowed to use the string class.
Code:
#include <iostream>
using namespace std;
int main()
{
char company[1024];
cout<< "Enter the name of the pizza company: ";
cin.getline( company, '\n' );
cout<< "You entered " << company <<endl;
return 0;
}