Click here to Skip to main content
15,887,135 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: Beginners Guide / Visual C++ 2008 Express Edition written by Herb Schildt Pin
Richard MacCutchan28-Mar-10 23:18
mveRichard MacCutchan28-Mar-10 23:18 
AnswerRe: Beginners Guide / Visual C++ 2008 Express Edition written by Herb Schildt Pin
David Crow29-Mar-10 2:56
David Crow29-Mar-10 2:56 
AnswerRe: Beginners Guide / Visual C++ 2008 Express Edition written by Herb Schildt Pin
Tim Craig29-Mar-10 13:40
Tim Craig29-Mar-10 13:40 
Questionbuffer problems with CFile Pin
Krauze28-Mar-10 19:36
Krauze28-Mar-10 19:36 
AnswerRe: buffer problems with CFile Pin
hanq_3891013028-Mar-10 19:55
hanq_3891013028-Mar-10 19:55 
AnswerRe: buffer problems with CFile Pin
Iain Clarke, Warrior Programmer28-Mar-10 20:26
Iain Clarke, Warrior Programmer28-Mar-10 20:26 
AnswerRe: buffer problems with CFile Pin
Krauze29-Mar-10 3:53
Krauze29-Mar-10 3:53 
QuestionRe: buffer problems with CFile Pin
David Crow29-Mar-10 4:30
David Crow29-Mar-10 4:30 
AnswerRe: buffer problems with CFile Pin
Vaclav_29-Mar-10 5:38
Vaclav_29-Mar-10 5:38 
GeneralRe: buffer problems with CFile Pin
Krauze29-Mar-10 18:20
Krauze29-Mar-10 18:20 
QuestionHow to add command buttons to listbox? Pin
space03528-Mar-10 16:32
space03528-Mar-10 16:32 
AnswerRe: How to add command buttons to listbox? Pin
Adam Roderick J28-Mar-10 17:37
Adam Roderick J28-Mar-10 17:37 
GeneralRe: How to add command buttons to listbox? Pin
space0359-Apr-10 22:37
space0359-Apr-10 22:37 
QuestionPseudo Code for B Spline implementation Pin
Chidori-chan28-Mar-10 15:35
Chidori-chan28-Mar-10 15:35 

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.