Beginners - February 2011 (Page 29)

sorting a linked list
 
few
[4 replies] Last: @NeoSeeker. Sorry you gave up? I saw your thread this morning and was ... (by closed account D80DSL3A)
All headers in one file
 
I'm wondering if it is considered a good practice to make one file, say "include.h", and include there all the necesary header files for the project. Then, in a...
[2 replies] Last: Well I'm thinking about precomiled headers only, and only considering ... (by Hioushi)
Question on Variable Creation
 
I just had a simple question on proper procedure when it comes to creating variables in functions. I'm all about using good practices in my coding. From my m...
[6 replies] Last: What would be the reason to break my code into smaller segments or fu... (by Disch)
Starting over a primary loop from a secondary loop?
 
I am trying to put together a calculator program. So far I've got everything to work except for restarting the program if when the user is prompted to quit and ...
[no replies]
a beginner's problem
 
Hello everyone, I'm new to the forum, to C++ and to programming in general. I'm having a little problem with setting booleans to "true" or "false" as I please....
[4 replies] Last: what a fast and useful reply! thanks everyone! I like this forum alrea... (by misterT0AST)
Debug Assertion Failed: _BLOCK_TYPE_IS_VALID
 
Hey all, trying to get a project working for a class, and I'm running into an odd error. We're using unit testing and my tests appear to be working fine right u...
[4 replies] Last: I just had the derived destructor set the pointer to zero after delet... (by Disch)
stopwatch errors
 
ok so this is my code int main() { string s = s; system("PAUSE"); double time = 0.0; do { system("TITLE Stop Watch!!"); ...
[7 replies] Last: still having trouble... that was a link to the errors. i have tried ma... (by cainen172)
guessing game
 
Hello, i new to C++ and trying to learn some things on my own. I'm trying to construct a random number guessing game. i think i got most of the codeing correct ...
[no replies]
by Janman
Ofstream char problems
 
Hey. I have some problems writing char to a file with ofstream. this is how the code looks. char buffer ; char secondbuffer ; char temp; ifstream in(Fi...
[5 replies] Last: write in binary mode http://www.cplusplus.com/reference/iostream/ostr... (by ne555)
not understanding how cin value is behaving
 
I have what is probably a simple question but I am unable to find the answer here or in any of the other documentation I have been referring to. In short, ...
[2 replies] Last: While finally going back to the "Don't use: system("pause"); " threa... (by rippa829)
Returning a random number from the function
 
Hello guys. Please advice how to get a random number from the function. I have to "throw a coin" one hundred times and count heads and tails amount. I did it l...
[2 replies] Last: Thank you very much, Grey Wolf (by andreychernukha)
User Input To Choose An Operation
 
i'm writing a program that allows the user to choose to find the area of three different geometric shapes by inputting a letter, but i can't figure out what's w...
[5 replies] Last: aha! thanks so much! i was wondering why the code would run, but it wo... (by nekoxandu)
Dereference pointer to int Error message
 
I have two problems. My first problem: #include <iostream> using namespace std; int main(){ char *a; cout<<"U can write every thing in here:"; cin>>*a; ...
[2 replies] Last: ok thnx (by Helegurbann)
Random Number Problem
 
Hi, I'm moderately, (very), new to c++. I've been working on a little text game and I've come across a problem. When I have the player hit a lock at the beginni...
[5 replies] Last: Trying deleting "int dmg = (rand() % 3) + 1", in line 15 and adding it... (by Da0omph)
Calculator H.E.L.P.
 
program crashes when i try to enter the first operation. any help is great. Here's the code: #include <iostream> using namespace std; // so we dont have t...
[5 replies] Last: anonymouscoder6, No, this need not be in curly braces. An IF state... (by cppmatt)
by W Neto
MySql + C++
 
how do I make a interation between C++( or C) and Mysql?... I'm studing mysql with PHP, but I want use it in Desktop applications too... I have seen about mysq...
[2 replies] Last: thanks man! I will use it. I've started studing today, I've downloaded... (by W Neto)
how to clear the values of the variables in win32 console?
 
I'm a beginner in C++, my first project is to make a menu type program using win32 console application. I was wondering if I can clear the variables to repeat t...
[3 replies] Last: You can repeat the programme like this: int main() { do { ... (by Moschops)
by GulHK
finding unequal elements in a vector
 
Hello everyone I have written a small program where I am trying to find similar elements in a struct type of vector based on some conditions. I know how to...
[4 replies] Last: Hello moorecm I have tried some simple '!=' and bool operators and ... (by GulHK)
or execution priority
 
When a logical OR of two boolean variables is checked, is the second value going to be checked, if the first is true? In the following example, is b going to be...
[3 replies] Last: If you don't like that behaviour you could create a Boolean class that... (by ne555)
New to programming... what's next?
 
Hello everyone, I am pretty new to this whole thing, and basically don't know the "path" to becoming a good programmer. I bought the book, "Beginning C+...
[2 replies] Last: I just wanted to say thanks for your detailed response. It is very muc... (by BigPlayChad8)
February 2011 Pages: 1... 2728293031... 43
  Archived months: [jan2011] [mar2011]

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