Beginners - February 2010 (Page 23)

recursive function that reverses a string!
 
This is what I have so far: #include <iostream> #include <string> using namespace std; string reverse(string& str); int main() { string theStr...
[5 replies] Last: Oh, ok perfect thank you so much! (by kyleg033)
looping question
 
How would i keep track of money spent? and items bought when i loop and how do i say i want multiple items meaning if i want to purchase more than one teeshirt ...
[1 reply] : case 'D':; Does that compile and execute correctly with the super... (by kempofighter)
Error "Floating point exception".
 
I am working on an exercise from my textbook, Staring Out With C++: Early Objects . (I am not asking for you to solve.) The exercise calls for calculating and ...
[2 replies] Last: You're right. I changed the functions to void functions so they would ... (by aaronde)
my copy from a "class" tutorial giving weird results
 
solved #include <iostream> using namespace std; class Rectangle { private: int x; int y; public: void set_values(...
[3 replies] Last: No problem. ^_^ (by firedraco)
pthread Mutexes
 
hey guys, i am trying to print "begin" then 11, i've been trying many different ways but I still get race condition, can anyone help? thanks. #include <pthr...
[4 replies] Last: ok thanks a lot Helios. You mean do par thread1: do print "... (by newNode)
adding problems
 
Hello everyone!! I have just run into a problem that is probably easy to fix, but I just can't figure out what the answer is. My problem is in my getData fun...
[2 replies] Last: Thanks for the help! (by ohsnap1319)
cin.ignore() question?
 
I have read many different programming books over the last couple of years, then stop programming. I just pick up a class in college on programming and I been r...
[11 replies] Last: Using that method, you need to press ENTER at most one time. If y... (by Duthomhas)
by laydee
Login System Fail to Execute.
 
hi there, i have created a unix-like login system by using c++ and it works fine for the first execution but when i close and execute it again. it gives me erro...
[1 reply] : Please use code tags so your code is readable A unix like login and y... (by gcampton)
header file problem...
 
my code includes this function void read(set<string> &mySet); but when i put this line in the header file, i get the following errors: error: variable ...
[4 replies] Last: void read( std::set< std::string > &mySet); ? (by closed account z05DSL3A)
by MWH
invalid operands of typs ‘double’ & ‘double’ to binary ‘operator^’
 
#include<iostream> #include<iomanip> #include<cmath> using namespace std; int main() { int A,B,C,t,theta; float pi=22/7; theta=140.0; t=theta/180.0*pi...
[4 replies] Last: heh. I intentionally didn't mention pow() because it's so often abu... (by Disch)
Can't get passing through command line to work..
 
I read about some advanced technique called..."Command Line Arguments" it seemed pretty straightforward but I wanted to do a test to see what all it looked like...
[3 replies] Last: np, I had to explain this to a guy today in my semester 2 class, he st... (by gcampton)
OOP
 
Hi, I have just started in OOP and I need help in certain area # include "header.h" class Person { private: char *fname ; char *lname ; float s...
[8 replies] Last: There was just a thread about this: http://www.cplusplus.com/forum/ge... (by moorecm)
by g0rd0n
Can't solve error!
 
Hello, I've recently started creating a program that will allow the user to choose and play 3 different mini-games. Yet when I compile my program and choose my ...
[2 replies] Last: Thanks, I want to create the game using seperate functions so I can re... (by g0rd0n)
Trouble understanding the char-type variable
 
I've been kind of bridging the gap from PHP/Javascript website design to C++, and found a weirdness about the char variable type. This is what I don't unders...
[3 replies] Last: yes (by Denis)
by Solour
scanf, -Wall warning
 
Hi there, using the following code: char word ; // scanf("%254s", &word); scanf("%s", &word); // word ='\0'; I get a warning: grammar.c:480: ...
[3 replies] Last: you have to pass to scanf pointer. (by Denis)
by seyidi
CString convert in Date
 
Hello Guys , I have a CString and it is like ......27.12.1999 and I would like to convert date in this String in a DAte form, because I need 27.12.1999 for so...
[6 replies] Last: first use STL algorithm methods like rfind, find, compare... after ... (by olredixsis)
Using setw and setfill
 
For a homework problem, I am supposed to code a program, outputting the title with a line of asterisks under it, like this: Area of a circle program by ...
[1 reply] : Well, letters have its own length.. for example the length of lett... (by olredixsis)
Calling a function
 
Okay this is going to be going back to the basics, but its a question about the best way of doing something. I need to call a function in another class. Is the ...
[4 replies] Last: In the class all the assignments are supposed to use headers on things... (by cbouwkamp)
by hayksk
Becoming programmer after 40 years. (1,2,3,4,5)
 
Hello. I am 43 years old and want to become a software programmer. I have serious intentions related to this matter, though no programming experience. I have k...
[95 replies] Last: The reason that I asked the question is that there are programmers and... (by PanGalactic)
Reading variables from other app.
 
Hello, forum. I am really curious about how they do to get and manipulate the variables from a running application, as for creating a cheat for example. Few...
[1 reply] : Use a debugger. If you want to write your own program to read specifi... (by PanGalactic)
February 2010 Pages: 1... 2122232425... 32
  Archived months: [jan2010] [mar2010]

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