I'm a C++ programming beginner.
I would like to ask how to sort a set of numbers without using array and any functions.
Thanks.
Posted 02 October 2008 - 09:42 AM
Posted 02 October 2008 - 11:45 AM
This post has been edited by ajwsurfer: 02 October 2008 - 11:46 AM
Posted 02 October 2008 - 05:31 PM
#include <iostream> // enable the usage of cin/cout #include <string> // enable the usage of string using namespace std; int main() { string man1, man2, man3; string woman1, woman2, woman3; string comp1, comp2, comp3; string name; int group; double result; double cin>>group>>name>>result; while ( !cin.eof() ) { while (group == 1 || group == 2 || group == 3) {if (group == 1) { } return 0; }