Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
4
Posts with Upvotes
3
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~71.0K People Reached
Favorite Tags

15 Posted Topics

Member Avatar for samaru
Member Avatar for Dani

Hello peeps, Im ben.Thought I would drop a line to say howdy! Im pretty new to C++ and teaching myself.This forum looks like it could be a big help in my learning adventure.So get prepared for some nooby questions. thks in advace for your help.

Member Avatar for jamesjoseph1
0
9K
Member Avatar for Redshift

I remeber my first skateboard was the black Knight(the one with the clay wheels).That was the greatest. Even though you could hit one little pebble while riding it and go end over end.Just to get back up and start all over. I dont think I ever spent more than 1 …

Member Avatar for moderate_rock48
0
577
Member Avatar for lostinthespiral

Try removing optimazation options 0g/ 0i/ 0a. Remove one at a time to see wich one might be the culprit.

Member Avatar for lostinthespiral
0
241
Member Avatar for Archer

[code] #include <iostream> #include <vector> #include <algorithm> #include <functional> using namespace std; int main() { vector<double> v; vector<double>::iterator p; for( int i = 0; i <= 10; ++i ) { cout << "Enter a number: "; double num; cin >> num; v.push_back(num); } cout << "Enter 1 for ascending or …

Member Avatar for Dave Sinkula
0
162
Member Avatar for muaaz
Member Avatar for Asif_NSU

This is just an example, but demonstrates reading in and outputing to( could be file or whatever) the screen. Enter the numbers you want seperated by a space. when you are finished hit enter then crtl + z and enter key again to output to the screen. [code] #include <iostream> …

Member Avatar for Asif_NSU
0
162
Member Avatar for walljoshua

[QUOTE=walljoshua]i dont totally understand your code. [/QUOTE] That might be because your learning in C++ and dave is responding in C.

Member Avatar for big146
0
108
Member Avatar for JoBe

Focus on learning the syntax and what you can and cant do. Then study the STL. Spend more time coding and less time writing algorithms. [code] #include <iostream> #include <list> #include <string> using namespace std; int main() { list<string> names; list<string>::iterator p; string a; for( int i = 0; i …

Member Avatar for Dave Sinkula
0
430
Member Avatar for Narayan

Take a look at this.Maybe It can give you some ideas. [code] #include <vector> #include <iostream> #include <algorithm> #include <boost/shared_ptr.hpp> struct Foo { Foo( int _x ) : x(_x) {} ~Foo() { std::cout << "Destructing a Foo with x=" << x << "\n"; } int x; /* ... */ }; …

Member Avatar for Narue
0
148
Member Avatar for Transworld

You need to loop through...hope this helps. [code] for ( int side1 = 1; side1 < 500; side1++ ) { for ( int side2 = 1; side2 < 500; side2++ ) { for ( int hypt = 1; hypt < 500; hypt++ ) [/code] Post your code so we can …

Member Avatar for Transworld
1
7K
Member Avatar for big buc's fan

Hey there! Funny, I wrote the same thing awhile back when i first started :) I'll post the code so you can take a look at it. Just change the for loop to the desired number of itterations that you want or just use it as a template.This also was …

Member Avatar for big buc's fan
1
177
Member Avatar for lara_

Works for me..you just might want to put [code] cout << name[i]; cout << endl; [/code] so that the name appears on its own line..makes it easier to read.

Member Avatar for Dave Sinkula
0
323
Member Avatar for big146

Im thinking of writing( or attempting to write ) a routing program for delivery trucks. I was wondering what the best way to go about this would be? I would like to use zipcodes, but I would also need that lattitude and longitude to be able route them in some …

Member Avatar for Chainsaw
0
96
Member Avatar for big buc's fan

I think what you want is somethng like this...(by the way I looked at your profile so i know you are not a kid working on homework). [code] #include <iostream> using std::cout; using std::endl; using std::cin; using std::fixed; #include <iomanip> using std::setw; using std::setprecision; #include <cmath> double calculateCharges( double ); …

Member Avatar for frrossk
2
451

The End.