Click here to Skip to main content
15,905,238 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: #include cpp file - how it works? Pin
Richard MacCutchan5-Mar-14 5:31
mveRichard MacCutchan5-Mar-14 5:31 
GeneralRe: #include cpp file - how it works? Pin
leon de boer9-Mar-14 8:51
leon de boer9-Mar-14 8:51 
QuestionCMap class questions [Solved] Pin
econy5-Mar-14 2:14
econy5-Mar-14 2:14 
AnswerRe: CMap class questions Pin
CPallini5-Mar-14 2:47
mveCPallini5-Mar-14 2:47 
GeneralRe: CMap class questions Pin
econy5-Mar-14 3:18
econy5-Mar-14 3:18 
SuggestionRe: CMap class questions Pin
Richard MacCutchan5-Mar-14 3:13
mveRichard MacCutchan5-Mar-14 3:13 
GeneralRe: CMap class questions Pin
econy5-Mar-14 3:44
econy5-Mar-14 3:44 
GeneralRe: CMap class questions Pin
Richard MacCutchan5-Mar-14 4:37
mveRichard MacCutchan5-Mar-14 4:37 
GeneralRe: CMap class questions Pin
econy5-Mar-14 4:07
econy5-Mar-14 4:07 
GeneralRe: CMap class questions Pin
Richard MacCutchan5-Mar-14 4:39
mveRichard MacCutchan5-Mar-14 4:39 
Questionif/else, expression can not be used as a function. C program Pin
cstudent14-Mar-14 20:37
cstudent14-Mar-14 20:37 
AnswerRe: if/else, expression can not be used as a function. C program Pin
Jochen Arndt4-Mar-14 21:12
professionalJochen Arndt4-Mar-14 21:12 
GeneralRe: if/else, expression can not be used as a function. C program Pin
cstudent15-Mar-14 7:14
cstudent15-Mar-14 7:14 
GeneralRe: if/else, expression can not be used as a function. C program Pin
Jochen Arndt5-Mar-14 7:40
professionalJochen Arndt5-Mar-14 7:40 
GeneralRe: if/else, expression can not be used as a function. C program Pin
cstudent15-Mar-14 7:58
cstudent15-Mar-14 7:58 
GeneralRe: if/else, expression can not be used as a function. C program Pin
cstudent15-Mar-14 8:03
cstudent15-Mar-14 8:03 
GeneralRe: if/else, expression can not be used as a function. C program Pin
Trace199524-Mar-14 15:16
Trace199524-Mar-14 15:16 
QuestionSend global Touch event Pin
cedricvictor4-Mar-14 18:42
cedricvictor4-Mar-14 18:42 
QuestionSpeed up a square root c++ prog Pin
Craig McRae4-Mar-14 9:00
Craig McRae4-Mar-14 9:00 
Hello All, Could you help me speed up a program? It's designed to find the square root of a number.
<pre lang="c++">
#include<iostream>

using namespace std;

int main()
{
float a;
float c;
cout << "Square root calculator!" << endl;
cout << "Enter the number you want to square root" << endl;
cin >> a;
cout << "Enter an educated guess" << endl;
cin >> c;
cout << "The squareroot of " << a << " is: " << endl;
do
c = (c + (a/c))/2;

while ( c != a/c );

{ cout << c << endl;
}

return 0;
}
</pre>
My problem is that it get remarkably slow around 55ish. Any advice it appreciated
AnswerRe: Speed up a square root c++ prog Pin
Chris Losinger4-Mar-14 9:56
professionalChris Losinger4-Mar-14 9:56 
AnswerRe: Speed up a square root c++ prog Pin
jeron14-Mar-14 9:58
jeron14-Mar-14 9:58 
AnswerRe: Speed up a square root c++ prog Pin
leon de boer4-Mar-14 13:34
leon de boer4-Mar-14 13:34 
Questionhow to convert word file in to xml using c/c++ Pin
krishnaprasad t3-Mar-14 21:53
krishnaprasad t3-Mar-14 21:53 
AnswerRe: how to convert word file in to xml using c/c++ Pin
Richard MacCutchan3-Mar-14 22:04
mveRichard MacCutchan3-Mar-14 22:04 
GeneralRe: how to convert word file in to xml using c/c++ Pin
krishnaprasad t3-Mar-14 23:58
krishnaprasad t3-Mar-14 23:58 

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.