Beginners - July 2011 (Page 34)

Breaker??
 
when i runned my program i run into somekind of error. it compiled program, but when runned i started to getl oads and laods of errors. Can somone help me to fi...
[19 replies] Last: hat was the problem, in output_formatted_string() i didnt clear hte st... (by vastrolorde)
by opie
making this a function
 
any suggestions as to how i move this around and make this into a function??? I need help!!! #include<cmath> #include <iostream> using std::cout; ...
[5 replies] Last: I tried this.And this is running: #include <iostream> using namespac... (by Helegurbann)
by DouDou
Correct Syntax for push_back with 2D vector
 
Hello, I am sorry for the dumb question but what is the correct syntax for push_back with a 2D vector to an element for either dimensions. Thanks vector<...
[1 reply] : vector< vector<int> > my2DVector; my2DVector.push_back( vector<int>(... (by hamsterman)
Flow of program
 
I am a beginner.. and I am doing one data base project. I have to get a data from database and display it to the user. I use Sql to retrieve data from the Datab...
[2 replies] Last: Hi , I am working on the existing project. which displays table to t... (by Umar Dafedar)
Multiple Main () Method
 
Hi. I want to ask can we have multiple main() method in one project. Because I want to create multiple main() method for different projects in 1 solution. Be...
[6 replies] Last: Oh, I see. I get it now. Thanks a lot for the help...^^ (by Pratiwi)
Quadratic
 
I was able to get this working at one point but now I don't know whats wrong with it. It will compile but it gives an -1.#nd(or something close) as an answer fo...
[5 replies] Last: I got it. Thanks. (by monkeybutt)
Problem using vector
 
Im working on this program which is supposed to let you write in som players and then print them out on the screen but the problem is I can't seem to figure out...
[2 replies] Last: You might consider creating a class called Players, where vector<Playe... (by kempofighter)
C++ Arrays Highest, Lowest, and Mean
 
Can anyone find out the problem with this coding? #include <iostream> using namespace std; void printGrades(int *a, int len) { if(len == 0) cout << "\...
[2 replies] Last: Thanks for the help, got the error to end and the loop to stop. Just n... (by Goshzilla)
confused with pointers
 
Hi all I am not an expert regarding pointers in C/C++ language and right now I have a program to understand with many complex variable structures. The progr...
[2 replies] Last: pDatObj can either point to a block of allocated resources (of type ... (by closed account zb0S216C)
scanning music gallery
 
i am just a beginner..and i read someone suggesting some other one to build up a software that can scan the music gallery and rename the names of songs as wish....
[8 replies] Last: The right way would be std::rename and std::remove: http://www.cpluspl... (by Athar)
:S I Don't Know What to do!
 
Hi Guys. I m trying to write a program and i need to learn how can i make something always work? i want a++; always work and when it come to 36 it should back t...
[1 reply] : ... http://www.cplusplus.com/forum/beginner/1/ http://www.catb.org/~e... (by Athar)
function problem
 
the program i have written should return "m" when i input 2 but it doesnot , plz show me the error #include<iostream> using namespace std; void area (int a )...
[2 replies] Last: thanks loads it worked (by sapna21)
exit a program
 
how do i exit a program if the user presses some key(as decided by me,say delete)at any moment of time
[3 replies] Last: Nope, technically something is ALWAYS checking the keyboard for input ... (by Computergeek01)
Execute code on computer shutdown
 
Hi, how can I make program to execute code when I will turn my PC off or hybernate him?
[2 replies] Last: Also if you're not dead set on using C++ to accomplish your task then:... (by Computergeek01)
Class wihtin a class passed to a function in the primary class? Help!
 
Hey, need some help with passing my 2nd class to a function in the first class. (Can't write all mt code cus it's HUGE! I'll just summarize!) //***Classe...
[10 replies] Last: Your Wonderful, thank u! :) & I appricate the link! I'll defo read mor... (by JesusAlex)
diagonal lines...
 
hi, im new in c++ and im trying to make a z line, the outpout should be like this ******** * * * * * * ******** here's my code...
[2 replies] Last: This forum sometimes cuts off consecutive spaces, I don't know why. I... (by Ashishduh)
translating to C++
 
Hi i have a question about translating worded equations to c++ If there is something like add 13 to the value of m and store the result in h is it h=13...
[1 reply] : The variable being assigned to is always on the left. So it would be:... (by Ashishduh)
How do you write a foolproof error response?
 
My little brother, to whom I show my little programs regularly, always laughs at the fact that all he needs to do to crash them is type letters into the variabl...
[9 replies] Last: Using stringstream s is the preferred method (and is easier then the... (by Mathhead200)
uppercase
 
i am not able to identify the error in this program...i am trying to make first letter of each word capital.. #include<iostream> #include<conio.h> #include<...
[1 reply] : There are a couple of errors. Firstly, uppercase should return a value... (by Nisheeth)
by tonnot
Stupid question I want a char to store values 0 to 255 not characters
 
I have a value wich max value is dificcult to value more than 100, so a char is the right type. But when I use it inside a vector it is not used as numeric but...
[3 replies] Last: Unfortunately that's not enough to help us to work out what has gone w... (by Galik)
July 2011 Pages: 1... 3233343536... 54
  Archived months: [jun2011] [aug2011]

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