Beginners (Page 8)

2 integers on the same line
i want to know how to enter 2 numbers(the inputs) on the same line and separated by space like this ...
[6 replies] Last: yes.Your second method is best as one is clear that he/she is enterin... (by suyashsing234)
by ericM
making a random generator global
I have to generate a set of random numbers supported by different distributions. I wish to use the...
[6 replies] Last: Thanks a million. (by ericM)
How to interact with C++ build within Xcode from Objective-C
I've never tried this before so any and all comments or suggestions will be very appreciated. The bi...
[1 reply] : You can use objective c++. See: (by coder777)
i++ question
May I know why i is not 2 but 1? Thank you. i=1; i=i++; cout<<i<<endl;
[1 reply] : Assuming that i is a scalar like int In C++17, after i = i++ ; ... (by JLBorges)
write two different files using same function
I cant understand how to create a function named 'write(filename)' which lets the user write into th...
[1 reply] : A function that takes a parameter for the file name may look like this... (by coder777)
Why my C program is keep crashing
Hello Everyone, here is my assigment for my university but I dont get why I am getting my program cr...
[2 replies] Last: Depending on your compiler and its settings, there may be warning mess... (by Chervil)
How to make my text editor better?
Hello, I'm a beginner in C++ programming and currently writing a text editor/-viewer, which works...
[no replies]
can not input anything
it takes more than a day and i still do not know why i can not input #include<iostream> #inc...
[1 reply] : Line 37 if(a==0||a==224) Remove the semicolon. (by Chervil)
; issue with comments
So my code was working absolutely fine until i added the comments which was required by the teacher ...
[5 replies] Last: ensure that codeblocks is following c++11 and not c++98.I used to have... (by suyashsing234)
Help getting the right output for a function
Hello, I am having trouble getting the right output for one of my functions. I am able to compute...
[1 reply] : Seems to me that you're making a program that simulates a hot plate. ... (by nubforce)
by Joello
"Lowest score drop" C++ problem
Hey guys i will just type out the problem from my textbook and then post code below that, I will adm...
[3 replies] Last: I feel like an idiot everytime i post on here.. thanks again boys! Als... (by Joello)
converting while loop to a for loop
Hey guys, so just doing some practice questions and came across this one in particular where i feel ...
[4 replies] Last: Thank you very much for the explanation! (by Falkner92)
Should dynamically allocated arrays be null terminated
I have just had a nightmare debugging a call to Postgresql's PQexecparams() which requires a char** ...
[5 replies] Last: @Duthomhas, thanks for the clarification, this is pretty much the info... (by timh1970)
Input validator
I'm trying to make it so that when the user enters anything below 0 mins it'll say that its invalid ...
[2 replies] Last: Hello Ryoka117, Some suggestions for you to consider. Lines 6 - 8 wo... (by Handy Andy)
Problem with exercise
Hello, i have a problem with an exercise: Modify the Vector class header and implementation files ...
[4 replies] Last: Thank you! (by Perilun)
please help me to get some more practice. i use cpp and i want to have some questions involvin...
[1 reply] : You can create your own questions. Real skill is knowing you can code ... (by Ihatov)
Write your question here. double a,b,c,g; cout <<"Enter two whole numbers separated by ...
[4 replies] Last: another.Also there is no point of having a remainder for decimal divi... (by Ihatov)
space between 2 numbers
Write your question here.
[2 replies] Last: cout<<2<<"\t"<<3; (by suyashsing234)
fill array with random numbers without repetition in the column
Hello, I am generating bingo cards for each player. The bingo card is represented by an array and ha...
[4 replies] Last: Regarding the shuffle, I don't think that is the direction I am suppo... (by keskiverto)
Anonymous namespaces - working or what?
I wrote a little test snippet to clarify some things for myself. Everywhere I looked, it says anony...
[5 replies] Last: @ Ihatov, Thank you for the correction. Andy (by Handy Andy)
Pages: 1... 678910... 44
  Archived months: [aug2017]

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