by admin
Welcome -- read before posting!
Welcome to the beginner's forum in! 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 Duoas)
Could someone help me with this problem? (1,2)
I have a problem where eight queens are to be placed on an 8x8 chessboard in such a way that no quee...
[24 replies] Last: bump (by keltonfan2)
Summing column and row values.
I was wondering if I could receive some assistance with this problem? I am having an issue in return...
[6 replies] Last: This one worked great it took me a second but realized that I needed t... (by greenead26)
How to setup Ternary statement.....
Im having problems trying to do a ternary statement when my code contains alot of if statements. ...
[no replies]
C++ for a thirteen year old (1,2,3)
Hi! So, I am a thirteen year old, who wishes to try out C++. I entered the world of programming whe...
[59 replies] Last: > this chapter discusses "bitsets" towards the end. When I come to tha... (by JLBorges)
Rotation code isn't working
sf::Vector2f delta; delta.x = sf::Mouse::getPosition(Window).x - getPosition().x; delta.y = sf...
[1 reply] : Rotations in 3D are done with rotation matrix. You have to have 3 Eule... (by alexBB)
by Skanin
Calculator problem.
Hi. I am trying to make my calculator allow the user to input more then 2 numbers, with a choice. S...
[2 replies] Last: Yes, thank you! That fixed it :) I'm making it possible to add 3 numb... (by Skanin)
Integer Square Root
I don't even know how to start this one. Here is the problem: Ask the user for a number between 2...
[4 replies] Last: int num; cin >> num; if(num<2 || num>1000) cout << "range error"; ... (by anup30)
crash when i have big input (C++)
Why the program crashes when i have f.e n=1.000.000? #include <iostream> #include <fstream> ...
[3 replies] Last: Do not use stack allocated arrays for big data. Use C++ features. Lik... (by MiiNiPaa)
How to get the index of an element into a vector most efficiently?
I found binary_search() in STL which will return true if an element equivalent to val is found, and ...
[1 reply] : Do you really need index? Why not use iterators? Also in your code po... (by MiiNiPaa)
c++ same but different
is there any way to make the compiler thinks that '*' and '*' is different?
[2 replies] Last: Hi, Do you mean overloading the * operator to do different things d... (by TheIdeasMan)
sort 2d array
how would you sort int arr = { { 2, 7, 6 }, { 9, 5, 1 }, {4,3,8} }; ?
[9 replies] Last: std::sort(&arr , &arr ); Not the same thing. Try it out. If you ... (by MiiNiPaa)
Function Operators
I have some questions about a homework assignment. If someone could help me answer these questions,...
[9 replies] Last: indeed. that's correct. in c++ you can define what the operators do fo... (by Precious roy)
Comparing numbers using for
Hey guys, how do you compare 5 numbers and print the biggest, only using for?
[1 reply] : you can store it in array. and make a variable temp. in the for loop.... (by Lorence30)
what does the setprecision() function actually do?
I understand that the setprecision() function rounds off floating point numbers but why is the answe...
[7 replies] Last: When cout is in scientific notation mode, which it is by default, setp... (by kevinkjt2000)
by Nis
Pointers inside class
Do you think I added the deconstructor, operator = and copy constructor correctly? #include <i...
[15 replies] Last: Why should I copy s? It's all declared in the same class :/ Think ab... (by Peter87)
Class called Date
I can't get my output to show the correct date, when I put in a date such as 10 10 1977 it shows 1/1...
[2 replies] Last: Hi, Nothing to do with your problem, but you shouldn't have to re-dec... (by TheIdeasMan)
Beginning Vectors/ need help with subtracting choices
Hello all!! So i'm learning c++. Im having an issue with vectors. I have an assignment that requires...
[no replies]
How do you stop the infinite loop? When I test it out by putting in the number 2. It gives me in...
[2 replies] Last: Its in C, pretty similar to C++. Try it. Have Fun :) #include <stdi... (by Subscriber360)
Pages: 123... 55
  Archived months: [jan2015]