Beginners - October 2017 (Page 17)

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 big picture is that I'm trying to use C++ files within an iOS ...
[1 reply] : You can use objective c++. See: https://en.wikipedia.org/wiki/Objecti... (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 the file named file1 or file2. my main would be something l...
[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 crashed every single time when I run it? Input from the user ...
[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 from its basic functionalities, like opening existing text ...
[no replies]
; issue with comments
 
So my code was working absolutely fine until i added the comments which was required by the teacher for the assignment. Once i added the comments, i get an err...
[5 replies] Last: ensure that codeblocks is following c++11 and not c++98.I used to have... (by closed account 1vf9z8AR)
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 the correct average for the first function, but for my seco...
[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 admit i am a bit confused im sure there are several errors in m...
[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 like i may be missing something. Any advice here?(note: the ...
[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** array. I wrote a little class to handle updates which would...
[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 and not give a price. I know I'm supposed to use an if state...
[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 (Listings header and function declaration )so that the magni...
[4 replies] Last: Thank you! (by Perilun)
FUNCTIONS LOOPS AND FILES (3 IN 1)
 
please help me to get some more practice. i use cpp and i want to have some questions involving only functions,loops and files(all in one).Can you please ...
[1 reply] : You can create your own questions. Real skill is knowing you can code ... (by Ihatov)
remainder
 
Write your question here. double a,b,c,g; cout <<"Enter two whole numbers separated by space: "; cin >> a >> b; c = a / b; g = a % b...
[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 closed account 1vf9z8AR)
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 has "BINGO" written across the top row of this array. I used ...
[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 anonymous namespaces should be recognized by the compilers. Well...
[5 replies] Last: @ Ihatov, Thank you for the correction. Andy (by Handy Andy)
merge files
 
I want to merge two files such that contents of second file are appended to contents of first.The code is behaving very weird. My code logic: create first file...
[3 replies] Last: Your merger function only opens one of the files. But it opens that fi... (by Repeater)
enter between lines in file
 
Like i enter in file like this suyash singh hello and then i can enter between like this suyash newline singh 16 I dont even know how to begin...
[3 replies] Last: Basically read one line at a time. Examine its contents and decide whe... (by Chervil)
How do I fix my computer to add the multiple of a number less than a 100?
 
I am writing a program to add all the multiples of a number less than 100, but I can't seem to figure it out. Can someone give me some guidance as to why it's n...
[3 replies] Last: There are quite a few errors I can spot: 1) It should be using namesp... (by Ihatov)
October 2017 Pages: 1... 1516171819... 33
  Archived months: [sep2017] [nov2017]

This is an archived page. To post a new message, go to the current page.