Beginners (Page 28)

Pineapple
 
#include <string> #include <iostream> #include <cmath> #include <fstream> #include <vector> /...
[1 reply] : No tienes una pregunta. Edit: I see you're just a troll or a really s... (by Ganado)
homework problem someone plz solve..fun with geometry
 
A rectangle is represented with two coordinates.The first coordinate (a,b) represents the top-left p...
[4 replies] Last: Figuring the intersection of two rectangles can be a pain. Here's an e... (by dhayden)
c++ output explanation
 
#include<iostream> using namespace std; int main() { int n,k; int j = 8; for (int i = 0; i <...
[4 replies] Last: thank bro for the help (by sahil9620)
infile -> outfile does nothing
 
I'm trying to ignore some lines in temp.txt and copy the rest to temp2.txt. when the line has two ...
[3 replies] Last: @cire Thank you, this works as I need it to. What is the difference b... (by smoothstone)
Random Numbers
 
Hi there. I am currently writing a basic fruit machine in C++. At the moment it's a simple text b...
[2 replies] Last: alternately you can roll 15 results at once ahead of time and store th... (by jonnin)
by dubley
outputting values from class
 
Hello, in this program, when I output total_val I get 0, when it should be 500 and 21. I can get the...
[8 replies] Last: Hi, I got it working in the style of the original program. Thank you v... (by dubley)
by KNery
Function that reads text file using fstream parameter passed by reference
 
Homework assignment Separate existing code into functions first function must be{ "A function ...
[2 replies] Last: A function named readInput that returns a string containing the messa... (by Hengry)
How to set default values through a function?
 
hi! I want to check if values have been set from the command line and if not set them to a defau...
[2 replies] Last: Hello Rdanutalexandru, In addition to what jonnin said remember at it... (by Handy Andy)
Homework help with integers.
 
Hi! my professor gave us this assignment without really instructing us on how it's done. I have a sm...
[2 replies] Last: Hello marygamess, Welcome to the forum. And if you are unfamiliar wi... (by Handy Andy)
Need help.
 
I was told to make a 2 dimensional array program that get its highest/maximum number. When I try to...
[7 replies] Last: [quote=Newbie992]Can you explain what does this line do? In this ins... (by lastchance)
Why do I have to pass by reference?
 
Hi! Currently I'm reading a book on algorithms and recursion and so far I think I'm getting bett...
[3 replies] Last: Thank you and about the *some-- I forgot to remove it when pasting it ... (by stonedviper)
by ebba
How to make this better (HW)
 
I'm working on this assignment. Part one was to create a program that could do basic calculations wi...
[1 reply] : Hello ebba, In your third bit of code that combines the two programs ... (by Handy Andy)
how to change this to if...else statement c++
 
cashRegister counter; dispenserType candy(500, 50); dispenserType chips(100, 65); disp...
[2 replies] Last: thnx (by closed account 3p4G8vqX)
URGENT HELP NEEDED Pt2!!!
 
Hi so this is another part to the "URGENT HELP NEEDED!" post I made yesterday. I figured out how to ...
[2 replies] Last: I appreciate the clarification fiji885, however how would this look li... (by nakul27)
Printing sparse matrix
 
Hello all, currently working on a project which requires me to print a grid of numbers. The data tha...
[1 reply] : shouldn't oneItem have a value field? youll want to sort your array o... (by jonnin)
by exru
What the best way to store data in Model?
 
Hi all! I'm a php developer with 7 yeas experience. I know a little c++\qt, but i need some help. I...
[2 replies] Last: Shouldn't actually the model be responsible to get and set values in t... (by Thomas1965)
by Vinz24
convert number to words using irritation
 
How to convert numbers to word using irritation? Here's the source code that convert num to words bu...
[6 replies] Last: #include <iostream> #include <string> using namespace std; const str... (by lastchance)
by Joe C
Help with Factorial
 
I'm trying to do the following exercise from Programming: Principles and Practices Using C++ 2Ed. ...
[2 replies] Last: Thanks for the reply. I was out of town (and away from my computer) f... (by Joe C)
by jly
Birthday Paradox loop question
 
Hello everyone, I'm trying to understand this loop that simulates the number of trials in the birthd...
[3 replies] Last: I honestly have not studied the problem and its solutions. I simply s... (by jonnin)
Need help. Thanks
 
Okay so I was told to make a program to enter how many students then calculating its average using f...
[2 replies] Last: Thanks Repeater I made it to cout<<"The average of the class is "<<c_... (by Newbie992)
Pages: 1... 2627282930... 42
  Archived months: [dec2017]

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