Seems like you didn't the joke bro. I didn't alter these programs. At all. At. All. That means there are lots of things about subroutines I need to relearn. When I say I had no idea it existed I mean I had no idea that there was a command called using, that there was such things as namespaces, and I didn't know that standard was one of those things.
The IDE, by default, said we were using namespace std. There were lots of things I don't understand about the crazy wacky custom Visual Studio 6 the school uses. It crashed the entire thing completely if you so much as clicked Open instead of clicking on the cpp file.
That was then and this is now.
This is how we declared subroutines.
1 2 3 4 5
|
newroll();
addname();
viewroll();
searchroll();
mainmenu();
|
To me, this said that the program should declare five new functions/subroutines/whathaveyou called newroll, addname, viewroll, searchroll, and mainmenu.
Now do you see what I mean when I say 'everything I know is a lie'? I tried to declare subprograms and you thought I was making a comment describing my program. :(
-----------------
@Zhuge
I forgot nothing, I simply do not know. At all. I'm sorry for wasting your time with my foolishness but I essentially have to relearn half of my stuff from scratch because what I know is errors, makes no sense to real programmers, or is good if I want to make text display on a console application.
And I'm trying to declare functions. I do have an int main(), it's lower down, but I also didn't know you had to call main() an int, which seems silly to me, and my programs work in Code::Blocks without calling it an integer.
Here's a very simple program to show you what I know basically:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
// Quinn Holt
// January 29, 2013
// This program declares an integer, a, and gives it a value of five.
//Afterwards, it displays "My C++ program." before asking for an input for the integer a.
//Then it ends the program.
#include <iostream>
using namespace std;
main()
{
int a=5;
cout << "My C++ program." << endl;
cin >> a;
return 0;
}
|