Click here to Skip to main content
15,920,956 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question2D Arrays Pin
livin lie6-Nov-08 11:47
livin lie6-Nov-08 11:47 
AnswerRe: 2D Arrays Pin
Saurabh.Garg6-Nov-08 15:16
Saurabh.Garg6-Nov-08 15:16 
QuestionRe: 2D Arrays Pin
David Crow6-Nov-08 16:45
David Crow6-Nov-08 16:45 
AnswerRe: 2D Arrays Pin
livin lie7-Nov-08 6:21
livin lie7-Nov-08 6:21 
QuestionTutorial Object Array Pin
Reagan Conservative6-Nov-08 9:02
Reagan Conservative6-Nov-08 9:02 
AnswerRe: Tutorial Object Array Pin
sashoalm6-Nov-08 10:18
sashoalm6-Nov-08 10:18 
GeneralRe: Tutorial Object Array Pin
Reagan Conservative6-Nov-08 11:22
Reagan Conservative6-Nov-08 11:22 
QuestionI need help with my program, new c++ programmer Pin
OverdoS6-Nov-08 7:56
OverdoS6-Nov-08 7:56 
Hi, I'm new to this forum. I'm taking C++ programming in school and it is very difficult for me. My homework is to create a c++ program that implements functions to display the following data. I dont know whats wrong or how to fix it please help.
I don't even know if I wrote the code properly. Any help is appreciated Sniff | :^)

#include <iostream>
#include <process.h>
#include "stdafx.h"
using namespace std;
/***************************************************************************/
// FUNTIONS
/***************************************************************************/
void Greeting();
void My_personal_info();
void My_favorite_movie();
void My_favorite_move();
void My_favorite_trip();
void My_favorite_book();
void My_favorite_sports();
void pause();
void clrscr();

//MAIN
int _tmain(int argc, _TCHAR* argv[])
{
// greeting the user
Greeting();

pause();
clrscr();

My_personal_info();

pause();
clrscr();

My_favorite_movie();
pause();
clrscr();

My_favorite_trip();
pause();
clrscr();

My_favorite_book();
pause();
clrscr();

My_favorite_sports();
pause();
clrscr();

return 0;
}

void Greeting()
{
cout << "Welcome to my program!!" << endl;

return;
}

void My_personal_info()
{
cout << "First Name: Jon" << endl;
cout << "Last Name: Berry" << endl;
cout << "Age: 17" << endl;

return;
}

void My_favorite_movie()
{
cout << "Movie Title: " << endl;
cout << "Movie Rating: " << endl;
cout << "Year Released: " << endl;

return;
}

void My_favorite_trip
{
cout << "City and County: " << endl;
cout << "Persons Traveled With: " << endl;
cout << "Year Traveled: " << endl;

return;
}

void My_favorite_book
{
cout << "Book Title: " << endl;
cout << "Book Author: " << endl;
cout << "Book Type: " << endl;

return;
}

void My_favorite_sports
{
cout << "Name of Sports: " << endl;
cout << "To Watch or To Play: " << endl;

return;
}

void pause()
{
char dummy;

cout << endl << "Press Enter to Continue. . ."
cin.get(dummy);

return;
}

void clrscr()
{
system("cls");
return;
}
QuestionRe: I need help with my program, new c++ programmer Pin
David Crow6-Nov-08 8:17
David Crow6-Nov-08 8:17 
AnswerRe: I need help with my program, new c++ programmer Pin
CPallini6-Nov-08 10:30
mveCPallini6-Nov-08 10:30 
AnswerRe: I need help with my program, new c++ programmer Pin
led mike6-Nov-08 8:52
led mike6-Nov-08 8:52 
QuestionShellExecute/Browser problem Pin
Leslie Sanford6-Nov-08 6:19
Leslie Sanford6-Nov-08 6:19 
AnswerRe: ShellExecute/Browser problem Pin
Renjith Ramachandran6-Nov-08 7:51
Renjith Ramachandran6-Nov-08 7:51 
AnswerRe: ShellExecute/Browser problem Pin
Bram van Kampen6-Nov-08 15:16
Bram van Kampen6-Nov-08 15:16 
QuestionAdvice needed for a tool for c++ code analysis Pin
Renjith Ramachandran6-Nov-08 5:23
Renjith Ramachandran6-Nov-08 5:23 
AnswerRe: Advice needed for a tool for c++ code analysis Pin
David Crow6-Nov-08 7:22
David Crow6-Nov-08 7:22 
QuestionRe: Advice needed for a tool for c++ code analysis Pin
sashoalm6-Nov-08 8:04
sashoalm6-Nov-08 8:04 
AnswerRe: Advice needed for a tool for c++ code analysis Pin
David Crow6-Nov-08 8:09
David Crow6-Nov-08 8:09 
GeneralRe: Advice needed for a tool for c++ code analysis Pin
sashoalm6-Nov-08 10:12
sashoalm6-Nov-08 10:12 
AnswerRe: Advice needed for a tool for c++ code analysis Pin
BonshatS6-Nov-08 8:19
BonshatS6-Nov-08 8:19 
GeneralRe: Advice needed for a tool for c++ code analysis Pin
Renjith Ramachandran6-Nov-08 9:15
Renjith Ramachandran6-Nov-08 9:15 
QuestionHelp with selecting Visual Studio option Pin
Geurt Bloem6-Nov-08 3:58
Geurt Bloem6-Nov-08 3:58 
QuestionRe: Help with selecting Visual Studio option Pin
David Crow6-Nov-08 5:05
David Crow6-Nov-08 5:05 
AnswerRe: Help with selecting Visual Studio option Pin
Joe Woodbury6-Nov-08 12:47
professionalJoe Woodbury6-Nov-08 12:47 
AnswerRe: Help with selecting Visual Studio option Pin
Saurabh.Garg6-Nov-08 15:24
Saurabh.Garg6-Nov-08 15:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.