General C++ Programming - December 2016 (Page 7)

by bodx
please Help Mayday
 
I need to design a function that adds, substract, multiply and divide using c++. no idea on how to go about it....pleasssssss help.
[3 replies] Last: Thank you sir...gracias. (by bodx)
Please!! need help in outputing the even numbers of myvector into a file
 
Hi guys, I am new c++ learner, I have stuck in copying the even values of myvector into a outfile stream, the program prints the required result on screen but...
[5 replies] Last: I guess now the second point I can acknowledge is <algorithm> function... (by closed account 48T7M4Gy)
Reading txt files in Xcode
 
I have a program that needs to be able to have a file name inputted and from that input open a txt file to be read from. But I can't seem to get it to open them...
[4 replies] Last: change the working directory about halfway down the form - tick custom... (by closed account 48T7M4Gy)
by bodx
Please Help! Mayday open Exams
 
Design a function to act as calculator for performing: addition, subtraction, multiplication and division. no idea...helppp brothers and sisters.
[10 replies] Last: http://www.cplusplus.com/forum/general/204709/ (by closed account 48T7M4Gy)
Source file
 
Hey guys i need some help i created this program on HP computer but i forgot to create a source file i moved my program to my mac and have no access to another ...
[3 replies] Last: If you want to compile it, you can do that online now. Try http://ww... (by SamuelAdams)
Less_result<T>
 
Consider the following function template predicates: /// the result of evaluating type T's less than operator Less_result<T> /// indicates if th...
[1 reply] : Assuming that the less than operator is const-correct: #include <uti... (by JLBorges)
Referencing an Array in Parameter
 
Hello, I am trying to reference an array in my parameters for my draw functions below however, after looking at other forms I still can't seem to get it right. ...
[8 replies] Last: Turns out I had to pull from my array. Thank you for the help. :) (by raboki898)
wont read input file, what's wrong? (1,2)
 
I'm trying to input a file into an array. I'm not looking for the entire code or anything as this is a homework assignment and I want to figure it out myself. I...
[39 replies] Last: Do I need to create another struct for the average? (by elliott21)
Legal drinking age
 
My program is crashing when I type in the the character that registers for the else condition. The if, and the else if work perfectly fine. Any ideas? Appreciat...
[6 replies] Last: Is there any reason to convert it though? One reason might be to mak... (by cire)
dynamic allocated array
 
hey can someone one help me do this i need to write a dynamic allocated array using pointer operations. NO array subscripting. i need to fill array using rando...
[5 replies] Last: another dynamic allocated "array" with one element larger than "data" ... (by waqarmalek)
random number generator without duplicate
 
I'm trying to generate random number without repeating same number... #include<iostream> #include<string> #include<ctime> #include<random> using name...
[8 replies] Last: Note: the std::random_shuffle has already been deprecated , because i... (by keskiverto)
Qt Help
 
I am new to Qt. While learning Qt GUI programming I'm also playing around with it. With the code below, I want to display the number that the user has entered i...
[3 replies] Last: QT says it's simple. I'll take your word for it if they've got it wron... (by closed account 48T7M4Gy)
Error LNK2019, at my wits end
 
Hi everyone, I've been attempting to solve this error for about an hour now and I haven't made any progress. The printout is as follows: 1>LevelOrderIterator....
[4 replies] Last: http://www.cplusplus.com/forum/general/113904/ (by ne555)
Unable to Call Function (1,2,3)
 
Hello I cant see to call one of my functions and i am not sure why if anyone could help figure it out that would be appreciated #include <iostream> #includ...
[51 replies] Last: @OP So extract the offending function, make up some test data instead ... (by closed account 48T7M4Gy)
Help me to do assignment pls
 
I was given an assignment but I don't know much about c programming. please i will like to know more that's the reason I have decided to join this forum. A n...
[5 replies] Last: Wow, what a traumatic expence it must be, you've been working on this ... (by closed account 48T7M4Gy)
by agulbs
How would i change this to be an if-else statment?
 
int endBr; endBr = right ? right->intValue : beginBr + 1;
[1 reply] : int endBr; if (right) endBr = right->intValue; else endBr = ... (by Ganado)
Find the index of searching element in an array.
 
How can we find the index of the searching element in an array? I want to know a built-in function for that. Is there any?
[3 replies] Last: std::find returns an iterator, which can convert to an index of an a... (by Chervil)
by spsam4
Loop over folders
 
In my problem I have set of folders called Job1, Job2, Job3,......Jobn. In every Job folder there's another set of sub folders called Run1, Run2, .....Runm. Evr...
[6 replies] Last: Thanks a lot... (by spsam4)
Polynomial
 
Polynomial. I kinda have function which creates basic polynomial. But I need to form polynomial (𝑥 − 𝑎0 )(𝑥 − 𝑎1 ) … (𝑥 − 𝑎𝑛 )where...
[12 replies] Last: ok thanks, I will try my best , if I will not be able to do this code ... (by WilliamMorris)
Question about Classes
 
So I am making a Multiplayer Game with Classes, I have my Class player. And I want to call the instances Player.PLAYERNAME. Like for example a Player is called ...
[5 replies] Last: That is actually perfect. Thanks alot @doug4. (by Dracer0185)
December 2016 Pages: 1... 56789... 18
  Archived months: [nov2016] [jan2017]

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