Beginners (Page 94)

by kiri
wtf is a "halving algorithm" ?
 
Maybe I just call it something else :-/. Anyone know what a halving algorithm is and can explain it...
[3 replies] Last: I used yahoo and nothing really came up lol. I should of used google. ... (by kiri)
sort 2d array
 
how would you sort int arr = { { 2, 7, 6 }, { 9, 5, 1 }, {4,3,8} }; ?
[14 replies] Last: arr is illegal. You cannot actually access one-past-the-end elemen... (by MiiNiPaa)
Really confused to whats going on
 
In the code below, the method getLowerLimit outputs the prompt but does not wait for user input. I c...
[10 replies] Last: Even if it was caused by invalid input it doesnt change the fact that ... (by TarikNeaj)
new program
 
I made the program. #include <iostream> #include <fstream> #include <vector> using namespace std...
[1 reply] : In your latter program: Lines 4 and 5. Variable length arrays are not... (by keskiverto)
Return array from functions ?
 
Hi , everyone ! how to return an array from a function ? just like this code ? #include<iostre...
[4 replies] Last: No. Line 5: arr is a local variable. It goes out of scope when f... (by AbstractionAnon)
what does the setprecision() function actually do?
 
I understand that the setprecision() function rounds off floating point numbers but why is the answe...
[8 replies] Last: @kevinkjt2000 Thank you very much! (by hemlock)
crash when i have big input (C++)
 
Why the program crashes when i have f.e n=1.000.000? #include <iostream> #include <fstream> ...
[7 replies] Last: Either turn on C++11 (which you should do as most people use it extens... (by MiiNiPaa)
Rotation code isn't working
 
sf::Vector2f delta; delta.x = sf::Mouse::getPosition(Window).x - getPosition().x; delta.y = sf...
[3 replies] Last: No, that makes it violently rotate. I'm really confused on why this is... (by kong288)
Summing column and row values.
 
I was wondering if I could receive some assistance with this problem? I am having an issue in return...
[7 replies] Last: You're welcome for the semi-competent help. For the 5th row a getColum... (by fun2code)
How to setup Ternary statement.....
 
Im having problems trying to do a ternary statement when my code contains alot of if statements. ...
[1 reply] : Ternary expressions and if statements are two different things. A ... (by AbstractionAnon)
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)
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)
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)
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]
by sivar
How to sorting through a file using C++
 
I need to sort the containig data following by the students average.. please help, I had 2 days wor...
[10 replies] Last: struct method gives you more control, such as Calculating the Average ... (by anup30)
Resetting data type within a for loop
 
This mini program is suppose to produce all the possible words that are only one letter away from th...
[2 replies] Last: Thank you! Got it working! (by amikecallies)
C, C++, VC++/MFC/Win32, COM/DCOM FAQs
 
Hi All, Here are some questions and answers on C, C++, VC++/MFC/Win32, COM/DCOM for self study an...
[no replies]
Pages: 1... 929394
  Archived months: [feb2015]

Cannot post in this page. To post a new message, go to the first page.