lol...source code means its code...like this. this is source code.
Code:
// mad Lib Game.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
#include <iostream>
#include <string>
using namespace std;
int main(){
char selection;
string noun, place, sword, verb, noun2, verb2, adj, adj2, num, adj3, adverb, adj4, adj5, num2, motime, adj6, adj7, adj8, noun3, num3, num4;
cout << "Hello. Welcome to Connor's MadLib Game. Would you like to play? (y/n):";
cin >> selection;
if (selection != 'y'){
system("exit");
}
else {
cout << "Enter a Place: ";
cin >> place;
cout << "Enter a Noun: ";
cin >> noun;
cout << "Enter a Silly Word: ";
cin >> sword;
cout << "Enter a Verb: ";
cin >> verb;
cout << "Enter another Noun: ";
cin >> noun2;
cout << "Enter another Verb: ";
cin >> verb2;
cout << "Enter an Adjective: ";
cin >> adj;
cout << "Enter another Adjective: ";
cin >> adj2;
cout << "Enter a Number: ";
cin >> num;
cout << "Enter another Adjective: ";
cin >> adj3;
cout << "Enter an Adverb: ";
cin >> adverb;
cout << "Enter another Adjective: ";
cin >> adj4;
cout << "Enter another Adjective: ";
cin >> adj5;
cout << "Enter another Number: ";
cin >> num2;
cout << "Enter a Measurement of Time: ";
cin >> motime;
cout << "Enter another Adjective: ";
cin >> adj6;
cout << "Enter another Adjective: ";
cin >> adj7;
cout << "Enter another Adjective: ";
cin >> adj8;
cout << "Enter another Noun: ";
cin >> noun3;
cout << "Enter another Number: ";
cin >> num3;
cout << "Enter another Number: ";
cin >> num4;
cout << "Is your " << noun << " making a mess of your " << place << endl << "? Try " << sword << "! It will " << verb << " your whole " << noun2 << " and " << verb2 << " to unbelievable levels! Watch, as we demonstrate, the " << adj << " capabilities of this " << adj2 << " product! Everyone should have at least " << num << " of these!" << endl;
cout << "To order, call the number on your screen. " << adj3 << " phone attendants will " << adverb << " take your request. " << adj4 << " and " << adj5 << " service will be yours! Call within the next " << num2 << " " << motime << ", and you will receive a " << adj6 << ", " << adj7 << ", "<< adj8 << " " << noun3 << " as a bonus, absolutely free for an additional value of " << num3 << " dollars, plus shipping and handling cost of " << num4 << " dollars. Act Now!!" << endl;
}
system ("pause");
return 0;
}
thats simple source code for a C++ program (its a mad lib game).
i am a beginner at c++...i made it.
you compile source code using a compiler, that creates an .EXE file that you run.