Beginners

by admin
Welcome -- read before posting!
 
Welcome to the beginner's forum in C++.com! In this forum, users can to talk about any topic relate...
[2 replies] Last: How To Answer Questions in a Helpful Way Be gentle. Problem-relat... (by admin)
Console Closing Down (1,2,3,4,5,6,7)
 
Hi, i am new to C++ and have just written my "Hello World" program. It worked all right but the cons...
[120 replies] Last: It displayed "Hello world" after you pressed Enter. int c is a ... (by Duthomhas)
Cool Play 6 packs 4060mAh battery!!
 
Coolpad Cool Play 6 smartphone has launched packs 5.5-inch FHD display, powered by Octa Core Snapdra...
[no replies]
Why can't my function work the same way as a 1d array?
 
My question is why can't my program work the same way without 100 100 #include <iostream> #in...
[4 replies] Last: chervil your way is really good. But can you exlpain to me why does it... (by stonedviper)
why is this double type number getting rounded?
 
I have the following very simple code: #include <iostream> #include <string> #include <Windo...
[1 reply] : I'm afraid double doesn't have better precision than that. #include ... (by Peter87)
Can someone explain this collision detection code please?
 
Hello, I'm learning about collision detection. Can someone explain the math behind these two simple ...
[2 replies] Last: Thank you so much for your explanation, I understand how all this work... (by MultiMedia)
Requesting code review - Snake Game
 
Hello all. I am a C++ beginner and to practice I made a classic Snake clone using a media library ca...
[6 replies] Last: @Masecla33 I am not worried about logic or algorithm I need to use bu... (by priyeshgeete)
How do I define a global variable that uses elements from a specific function
 
Hey, so just wondering how I would define a global variable using elements from a function? swi...
[3 replies] Last: Thanks guys. Your solutions worked, and it's working now! Thanks for ... (by Animatoms)
Creating a timeline with timers and events (1,2)
 
Hello everyone. I would like to create a timeline, setting a starting time and setting some time ...
[20 replies] Last: Want to thanks JLBorges that helped me to sort out the date/time prob... (by Amiplus)
thread safe random generator?
 
I wrote a random number and string generator, which I intend to use for two purposes. Firstly for ge...
[4 replies] Last: Slow reply as I've been away. Thanks for identifying the non thread-s... (by bluefrog)
I"M A NEWBIE...help me
 
Why is it allways says "WRONG" at the firsttime eventhough i write the correct password...help me:) ...
[10 replies] Last: See also duplicated topic discussed in this thread: http://www.cpluspl... (by Chervil)
What's the use of making instance variable private if we compile the program?
 
Hi. Why use private variables inside a class? If the program compiled so, it isn't the same if they...
[2 replies] Last: If the program compiled so, it isn't the same if they public or priv... (by Moschops)
non-template friend definition inside template error
 
I wanna define a friend function inside the template not outside but the linker cannot get it : v...
[3 replies] Last: Sorry, AhmedEl3agamy, perhaps I didn’t answer your question. I think... (by Enoizat)
tic tac toe
 
so in the midst of creating this tic tac toe game,i have this problem.it goes like this. TURN 1 wh...
[1 reply] : One problem are the braces of the if on line 102. The if body contains... (by coder777)
check if a value is odd and print odd numbers
 
I need to write a function that print the value of a given vector. The value of left is 2 and the ...
[2 replies] Last: vector < int > oddNumbers(int l, int r) This is a function. The func... (by Moschops)
Problem to pass archive to function
 
I'm trying to pass the ifstream archive but it does not compile. And the error messages are too weir...
[2 replies] Last: *If* you can modify your function prototype, perhaps the simplest meth... (by Enoizat)
Advice for Creating an Inventory Control Program
 
Background: I work for a warehouse that interacts with a retail/salvage store. I am a nursing major,...
[2 replies] Last: You're describing a system rather than just a program. In much the sa... (by kbw)
what does the function count() do?
 
This the program: #include <iostream> #include <iomanip> #include <chrono> #include <ctime> #inclu...
[2 replies] Last: Thanks @Peter87 (by puertas12)
Seperating material between header and '.cpp' files.
 
While programming in the past I have always tried to keep my headers and implementation files (if th...
[10 replies] Last: > Can a struct have member-functions too? Yes. In a class declaratio... (by JLBorges)
Why is there a volatile qualifier in the variable "d" in the function "f()"?
 
I am trying to understand the differences between processor time (CPU time) and the real time (Wall ...
[12 replies] Last: > Unfortunately I do not understand the rest of the line: To understa... (by JLBorges)
Pages: 123... 25
  Archived months: [jun2017]