Beginners - August 2013 (Page 3)

Namespace syntax
 
I decided to play around with namespaces today. I made this function to test if "using namespace" wa...
[6 replies] Last: No problem and you could have a collision like that when you "use" the... (by giblit)
std::string and std::cout
 
When including iostream I see a lot of other files being included aswell but I just don't understand...
[8 replies] Last: Edit: I can't seem to find a compiler where it doesn't work. You mi... (by Cubbi)
Do - While Loop for "For" Multiplication Table
 
Hello. I need help regarding displaying a multiplication table for an inputted number. In the first ...
[14 replies] Last: Zenfire: Am I right that the pretest and posttest loops work th... (by IWishIKnew)
by ephekt
variable char problem in switch loop
 
I have to write a sort of blackjack program using a switch loop, I have most of it done but it needs...
[4 replies] Last: Thank you for you help, I certainly will study this. It uses some thin... (by ephekt)
functions and functors
 
Hello everyone, Today I just found out I couldn't use a function in the generate() function (includ...
[3 replies] Last: Thanks, it's working ;) (by Paul Combaldieu)
dangling-else problem
 
(Dangling-else Problem) State the output for each of the following when x is 9 and y is 11 and when ...
[4 replies] Last: a) if ( x < 10 ) { if ( y > 10 ) { cout << "*****" << end... (by vlad from moscow)
account code
 
There seems to be problem when giving total value junk value is stored even when itialised can an...
[3 replies] Last: Thanks iHutch that was the exact problem (by Sharan123)
by GCODE
Subtracting 1 from an entire array (every unit)
 
This may be a rudimentary question, but I could not find an answer for it in the forums. I have writ...
[1 reply] : 1. You can loop through it and do it manually, or, 2. You can use an S... (by LB)
New to c++ from MATLAB
 
Hey guys, I'm new to c++ programming from MATLAB. I'm trying to import a matrix from a .txt file...
[1 reply] : It looks like you had a copy-paste error. Can you edit your post and s... (by LB)
by giblit
Is this a good start? (1,2)
 
Is this a good start for my Integer/Math class? #ifndef INTEGER_H #define INTEGER_H #include <...
[28 replies] Last: *Back to the topic* I decided that I will just work on finishing the ... (by giblit)
Classes / constructor problem
 
Hi, I am trying to learn the classes and constructor. And I have a problem in this code. #incl...
[6 replies] Last: @Rekarth As you want that the array defined in your class would hav... (by vlad from moscow)
Tried for hours to make threads work.
 
Hi. I am about to rip my non-existing hair out and punch a hole in my monitor. I wanted to start ...
[3 replies] Last: I know that but VS2012 always stops working after about 2 days for som... (by Zerpent)
C I/O Question
 
I wrote this code to open a file to write records to it, then pass it in to a function for writting,...
[4 replies] Last: Thank you, I just modified it so it doesn't pass in &e and it worked. ... (by pronesti)
char variables
 
Hello there, I want to ask about how would I go about not making chars case sensitive like when the ...
[6 replies] Last: > I don't usually bother with islower to check a char if all I'm doing... (by JLBorges)
how to open a program with c++
 
So I have designed my own mini game as a present for my brother, and at the end you beat a dragon. I...
[3 replies] Last: system("SlaytheDragon.vbs"); works for me, with a bit of a lag whil... (by andywestken)
by Jeckie
Visual Studio 2010 problem
 
Why I can't compile in Visual Studio 2010? I write simple code like this: #include "Stdafx.h" ...
[1 reply] : Reinstall your Visual Studio or try configure in linker options->"Addi... (by rhobar)
Arrays' simple problem
 
// arrays example #include <iostream> using namespace std; int billy = {16, 2, 77, 40, 12071...
[4 replies] Last: oh i see! it seem i have a hard time grasping c++ concept ^_^'' (by Ladyney)
Noobs question
 
A minute ago i read this tutorial, #include <iostream> using namespace std; int addition...
[10 replies] Last: okay thanks :3 for now on i will try to always use a return statement (by Ladyney)
Which thread library should I use?
 
Hi. I am currently looking at learning how to do multithreading in C++ to break the limit of just kn...
[4 replies] Last: Ok, I will take a look at it :). (by Zerpent)
Functions problem
 
Hello everyone! I have received your help lately with an enumeration type of the same program but no...
[4 replies] Last: Thanks to you guys i have finished the final version of my program:D ... (by fluture)
August 2013 Pages: 12345... 51
  Archived months: [jul2013] [sep2013]

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