Beginners (Page 52)

by negru
C: Analysis of code
Could someone explain this code: #include <stdio.h> #define MAX 10 int main() { char ar...
[1 reply] : >> It there some other tools for debugging in Code Block? You can cli... (by codekiddy)
by sivar
Delete the content of file?!
Hi every one! I need to delete the content specific text in txt file within C++ I have use the cod...
[4 replies] Last: Hi sivar, following example will show you how to delete an entry from... (by codekiddy)
Help with calendar program!!
Hello, i have been racking my brain to figure out this calendar program for days and i cant find any...
[no replies]
is there a way to read the number from his other side?!!
i wanna know if i could read any int from his both sides like "234" i want to record the inversed ...
[1 reply] : Hi, you can use to_string() function, reverse the order of chars, an... (by codekiddy)
hey guys .
is there anyway to tell C++ to go to cmd to write command there ?
[1 reply] : I did not understand your question completely. If you want to execute ... (by benbalach)
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)
Pages: 1... 5051525354... 105
  Archived months: [jan2015]

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