Click here to Skip to main content
15,904,416 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Taskbar Pin
Moak28-Mar-10 23:52
Moak28-Mar-10 23:52 
GeneralRe: Taskbar Pin
Cvaji29-Mar-10 0:04
Cvaji29-Mar-10 0:04 
GeneralRe: Taskbar Pin
Maximilien29-Mar-10 0:17
Maximilien29-Mar-10 0:17 
GeneralRe: Taskbar Pin
kk.tvm29-Mar-10 0:49
kk.tvm29-Mar-10 0:49 
GeneralRe: Taskbar Pin
Moak29-Mar-10 1:07
Moak29-Mar-10 1:07 
GeneralRe: Taskbar Pin
Cvaji29-Mar-10 1:50
Cvaji29-Mar-10 1:50 
GeneralRe: Taskbar Pin
Moak29-Mar-10 2:07
Moak29-Mar-10 2:07 
GeneralRe: Taskbar Pin
Cvaji29-Mar-10 2:22
Cvaji29-Mar-10 2:22 
AnswerRe: Taskbar Pin
Cool_Dev29-Mar-10 0:49
Cool_Dev29-Mar-10 0:49 
QuestionRuntime Error Pin
shiv@nand28-Mar-10 23:09
shiv@nand28-Mar-10 23:09 
Questionerror LNK1112: module machine type 'x64' conflicts with target machine type 'X86' [modified](Any Ideas Guys) Pin
002comp28-Mar-10 22:57
002comp28-Mar-10 22:57 
AnswerRe: error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' [modified](Any Ideas Guys) Pin
Chris Losinger29-Mar-10 1:54
professionalChris Losinger29-Mar-10 1:54 
GeneralRe: error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' [modified](Any Ideas Guys) Pin
002comp29-Mar-10 19:23
002comp29-Mar-10 19:23 
GeneralRe: error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' [modified](Any Ideas Guys) Pin
Chris Losinger30-Mar-10 1:03
professionalChris Losinger30-Mar-10 1:03 
GeneralRe: error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' [modified](Any Ideas Guys) Pin
002comp30-Mar-10 2:52
002comp30-Mar-10 2:52 
GeneralRe: error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' [modified](Any Ideas Guys) Pin
Chris Losinger30-Mar-10 3:24
professionalChris Losinger30-Mar-10 3:24 
Questionchanges in taskbar Pin
Cvaji28-Mar-10 20:50
Cvaji28-Mar-10 20:50 
GeneralRe: changes in taskbar Pin
Code-o-mat28-Mar-10 22:01
Code-o-mat28-Mar-10 22:01 
GeneralRe: changes in taskbar Pin
Cvaji28-Mar-10 23:35
Cvaji28-Mar-10 23:35 
GeneralRe: changes in taskbar Pin
Code-o-mat28-Mar-10 23:40
Code-o-mat28-Mar-10 23:40 
GeneralRe: changes in taskbar Pin
Cvaji29-Mar-10 0:01
Cvaji29-Mar-10 0:01 
QuestionBeginners Guide / Visual C++ 2008 Express Edition written by Herb Schildt Pin
painterdave28-Mar-10 19:54
painterdave28-Mar-10 19:54 
I hope someone has seen this tutorial ?
This is from the quiz at the end of the first chapter.

question 13)

The moon’s gravity is about 17 percent that of Earth’s. Write a program that displays a table that shows Earth pounds and their equivalent moon weight. Have the table run from 1 to 100 pounds. Output a newline every 25 pounds.

I think I'm close , here's what I have so far.

// This project the For Loop, the If statement, and code blocks
//to display a program that converts Metrics into Feet

#include <iostream>
using namespace std;

int main()
{
int temp;
double e; // holds the wieght on earth
double m; // holds the conversion to moon wieght
int counter;
int d;




counter = 0; // counter is initially set at 0

for(d= 1.0; e <= 100; e++) {
m = e / 17.; // convert to meters
cout << e << "earth is" << m << " moon.\n";
cin >> temp;


counter++; //encrement the counter with each loop iteration

// every tenth line, print a blank line
if ( counter == 100 ) {
cout << " \n "; // output a blank line
counter = 0; // reset the counter



}
}
cin >> temp;
return 0;
}

painterdave

aka. FlashDave

painterdave22@wildblue.net
AnswerRe: Beginners Guide / Visual C++ 2008 Express Edition written by Herb Schildt Pin
CPallini28-Mar-10 20:51
mveCPallini28-Mar-10 20:51 
GeneralRe: Beginners Guide / Visual C++ 2008 Express Edition written by Herb Schildt Pin
painterdave30-Mar-10 19:39
painterdave30-Mar-10 19:39 
GeneralRe: Beginners Guide / Visual C++ 2008 Express Edition written by Herb Schildt Pin
CPallini30-Mar-10 20:44
mveCPallini30-Mar-10 20:44 

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.