Beginners - November 2010 (Page 40)

switching the order of a list.
 
First I apologize, I have no code to display as I'm just looking for input on the best way to get started. What I need to do is change the order of a list fr...
[10 replies] Last: :) Proud of myself as this worked: void listDir(int list , int len... (by moriarty)
hi!
 
Hi I'm 10 years old and want to start learning C++. Can you use a Mac or does it have to be a PC? Also what's the best way to get started. I'm mostly interes...
[2 replies] Last: Cool read some and learned that ; means at the end of a command and so... (by magfable1)
by dznguy
count word problem
 
this is my code #include <iostream> #include <string> using namespace std; int countWord(string); int main() { string inputstring; cout << "Enter...
[5 replies] Last: ty for point that out filipe. so i tested it out and found that if th... (by dznguy)
Real life examples of Recursion
 
Hello i am trying to understand recursion better and how it is used in real life. Can anybody give me real life examples of recursion?
[2 replies] Last: Oh ok i see how each one of them works. Thank you so much! (by swalton)
by donmiq
Unexpected Looping
 
So basically, I have this: bool getDouble ( double & value, const string & prompt); int main() { char userSelection; do { cin >> userSelection;...
[no replies]
Creating Class rectangle, length & width, functions area, perimeter, get and set
 
Hi there. I am trying to create a class rectangle. It should have data members length and width of type float (which should default to 1). The class should h...
[7 replies] Last: I will try to clean up the indents. I want to limit the length and wi... (by anthonys1mom)
by firix
string operator overloading
 
Hi, String &operator+=(const String &) How do I write the operator+= code?
[10 replies] Last: The problem was solved (by firix)
by Rave
problem with an exercise.
 
Using only cin, cout and their related commands, write code to receive input from the user and print either real or integer, depending on whether the user ent...
[5 replies] Last: Just read a double and define that it's an integer if it's close to th... (by Athar)
Diamond problem
 
Hello mates!I have a question about the well known problem of diamond inheritance. I have a base class,two derived classes of this base class (let's say d1,...
[1 reply] : If you have virtual inheritance, it doesn't matter what the path is be... (by Disch)
representing cout as a function
 
Please how do i represent this as a function that i can get to call at any time for cout values??? double w; double y = 0; if ( y == 1 ) { ...
[4 replies] Last: @Bazzy, i cannot seem to break through the problem. i dont think i cou... (by frankilische)
find the slope and the constant of an equation of a curve
 
hi there friends. the issue is i finding the slope and the constant. http://cse.yeditepe.edu.tr/~byilmaz/fall2010/cse112/homeworks/cse112HW5.pdf in this h...
[no replies]
Posting projects on the net
 
I've built a simple game in Visual Studio C++ that I'd like to post in my blog (hosted by Wordpress.com). But I'm not sure how to do it, or if I can do it. I id...
[2 replies] Last: C++ is not designed to make client-side software A CGI game would be ... (by Bazzy)
Going to Different Points in Code
 
First off, hello cplusplus.com :) I've been creating a text based C++ game (very basic), and it requires the user to choose different options. if (dir == 1...
[4 replies] Last: i tried to do this, but instead of restarting, the program just displa... (by Armageddon)
by heidiK
compare 2 files
 
Could anyone please help me how to compare 2 files containing lines of string? The two files contain similar data except that one contains data with duplicates ...
[4 replies] Last: can not think of another idea. I think ultimately have to be checked ... (by firix)
3rd question this evening
 
Spank me if you feel I'm spamming noob questions :o This program counts down from 10 to -5. What do I do if I want some space between the numbers and the edg...
[2 replies] Last: Bazzy, thaaaanks :) (by Kakashi333)
Drawstring
 
I used drawstring to create a welcome message on my visual studio program but i want it to disapear when i click on the next button without clearing the backgro...
[no replies]
by firix
String class
 
class String{ struct Srep{ char *s; int sz; int n; Srep(int nsz, const char *p) { n = 1; sz = nsz; s = new char[sz + 1]; strcpy(s, p...
[2 replies] Last: where the error was already pointed out above. error the following:... (by firix)
Problem with repeating question code
 
I begun learning c++ yesterday when I was bored in the afternoon.. I am currently messing around with the following code.. #include <iostream> int m...
[1 reply] : Use a loop, the do - while seems the most appropriate in your case ... (by Bazzy)
Unable to print first element(in reverse)
 
Hello, once again, This is kind of an ultra newbie question, but here it goes: Why can't I print the first element inside my list using this kind of for loop t...
[2 replies] Last: GREAT ! I forgot about the existence of the magical reverse iterato... (by joseplusplus)
Ignoring whitespace?
 
I'm doing exercises from Accelerated C++ , and one exercise consists of making a triangle. I don't want you to tell me how to make the entire triangle, but ple...
[2 replies] Last: Thanks mate :p (by Kakashi333)
November 2010 Pages: 1... 3839404142
  Archived months: [oct2010] [dec2010]

This is an archived page. To post a new message, go to the current page.