Beginners - January 2016 (Page 5)

How to do the second part of problem?
 
The problem is given in image in following link:- https://i.imgsafe.org/c07c7c9.png #include <iostream> using namespace std; int main() { double fac...
[1 reply] : The second part is "the program should also calculate the monthly pay... (by cire)
C++ random number generator questions
 
I'm making a random number guessing game and I'm done with most of the body of the coding but I'm unsure of what is wrong with the main srand and rand parts. In...
[5 replies] Last: whenever i initialize them to 0 it says DivideByZero error Well, if... (by Chervil)
plot in c++
 
What is the best/easy way to make a plot using c++ code? in the other word:how we can run the c++ code using other program like(python) to make a plot? may an...
[7 replies] Last: I got it now thanks,I made a text file and I plot it in python (by alzetoun1)
save data as text file
 
it is possible to save the output result in c++ as a text file and use this text file to plot it in python for example.And also how we can save output data into...
[2 replies] Last: I solved this now. Thanks (by alzetoun1)
HELP PLEASE ME CREATE A VALID SENTENCES
 
Write your question here. C++ I am required to write a program that recognises valid sentences in a limited language. The elements of the language a...
[5 replies] Last: If you are still stuck on it this is something I whipped something up.... (by rabster)
Enum (New topic) and Array/Function (Review)
 
So this is my first week in CS265 and between refreshing my memory from a previous semester and grasping this new professor and concepts, I can't seem to figure...
[7 replies] Last: Again, change line 4 from: int box ; to mailbox box ; You have... (by xismn)
Looping Menu Problems
 
I'm a noob and trying to study this as i have seen from the book of my professor. Please kindly help me out. This maybe a part where I can't do anything. ^_^ 1...
[1 reply] : For starters, show us what you've done so far. (by integralfx)
Modulus & Increments
 
Just started with c++ and i was hoping someone could tell me how to do these? I'm so confused. The question is "Using the following code, what will x’s be aft...
[1 reply] : The modulus operator returns the remainder of two numbers. int x = 1... (by integralfx)
looping graphics?
 
I can't seem to get it to loop, All i get is the point to be placed but it does not move anywhere. If possible i'd like some guidance. It is suppose to loop by ...
[1 reply] : it does not move anywhere. int alt; - For starters, you haven'... (by integralfx)
by Zarman
Function issues... (not hard to solve hopefully)
 
My book wants me to make a program that takes in 10 golf scores, displays them, and calculate their mean (all in different functions of course). They also want ...
[2 replies] Last: but sets the rest of the values at funky numbers. - That's because... (by integralfx)
by alx119
Some explanation
 
Hi, I started to read Programming Principles and Practice using c++ of Bjarne Stroustrup and I need some explanation because I don't understand something. ...
[4 replies] Last: Thank you very much keskiverto.You've been very helpfully. :P (by alx119)
Ampersand question
 
I'm trying to understand what the ampersand mean when it comes to function arguments/parameters. What does the (int &a, int b) in functiontwo mean? Thanks. ...
[2 replies] Last: Thank you. (by whatusername)
Casting problems
 
I'm trying to do operations using members of struct looping through it. But I always get a casting error. My struct: struct Chromosome { std::st...
[6 replies] Last: Thanks for clarifying everything. (by Leo Alves)
Confuse on str().c_str() and just c_str()
 
I was experimenting on reading file. Then I found something kinda confusing. Why is it that if I pass a converted string stream sample = VShaderStream.str()....
[3 replies] Last: Thanks, You guys are awesome (by skadush)
by ToMMaC
Choose the name of a .txt
 
I want to open a cmd window that questions (In my language, of course) what name of .txt i want to create, for then put information in it. I have this, but it s...
[5 replies] Last: To use a std::string in the constructor you need to be compiling using... (by jlb)
Explain this program...
 
Write your question here. #include<iostream.h> #include<conio.h> class add { int num1,num2,sum; public: add() { cout<<"\n Constructor without parameters"; num...
[9 replies] Last: You do call member function addition() of object c . The code of t... (by keskiverto)
Printing a reverse array!
 
Hey guys, I'm having a little trouble figuring out what exactly to put into my print_reverse_array function, I've tried countless times and it doesn't every wor...
[4 replies] Last: You might also consider using pointer arithmetic a little more directl... (by cire)
What is the mean of this coding?
 
I am solving a problem "Find square root of a number n through Babylonian algorithm" I found following solution coding at http://www.cplusplus.com/. ...
[5 replies] Last: because this line is the only line executed when the else is valid e... (by Moooce)
Program takes input and then...nothing
 
This code should preform the euclidian algorithm. Whether or not the code does what it is supposed to is not the problem. The problem is that I will input a and...
[1 reply] : Whether or not the code does what it is supposed to is not the proble... (by cire)
How to add interface/graphics to C++?
 
I just made a c++ code to play tic tac toe, but the "graphics" I'm using are quite ugly, are there any ways to easily implement some graphics? And how exactly w...
[2 replies] Last: Graphics huh :3 (by GibsRey)
January 2016 Pages: 1... 34567... 29
  Archived months: [dec2015] [feb2016]

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