Beginners - October 2015 (Page 51)

by rosm
Program
 
I am writing a code for my class that: Your program should be able to read from a file the above data into an arry and sort the array by the student’s name...
[1 reply] : I've tried everything I can think of. Please help. 80-90 are the lin... (by rosm)
Code not outputting error
 
reposted
[6 replies] Last: My checkBoard is a function which checks if the array board will have ... (by helloworld135)
by Andym
array of classes
 
I do not really understand how to implement an array of a class. I have been looking all over and I understand (minimally) about classes. its like a boosted s...
[1 reply] : is the array inside of the class or is the class inside of the array?... (by jlb)
How to get min. and max from a txt file?
 
I'm writing a program that gets the minimum, maximum, and average from a txt file. The issue is I'm stuck on how to get the minimum and maximum from the txt fil...
[3 replies] Last: How would you get the highest and lowest if you were working with a se... (by jlb)
by ct123
Need help asap
 
For my lab, I have to create a menu with options (which I did), but after, the program has to prompt whether the user wants to convert another temperature or qu...
[3 replies] Last: Well the degree symbol was killing your program. I suggest you forget ... (by closed account 48T7M4Gy)
Really need help! Getting an error....and a weird output.
 
I have a completed code below. I'm getting a weird output for my program and then it errors out with a error saying Run-Time Check Failure #2 - Stack around th...
[9 replies] Last: Don't rely on intellinonsense errors compile your code and report the ... (by jlb)
Please someone help me out with this one.compiler is asking for a primary expression before int.i am using DEV-C++ version 5.11
 
int main () { int audience ; int i,N; int index1=0,index2=0; int comp_result; cout<<"Enter the value of N : "; cin >> N; // E...
[5 replies] Last: It looks like that fixed it. They are always something simple. Will th... (by closed account 48T7M4Gy)
What does this line of code mean?
 
In this phrase : " virtual Item* add(Item *item) = 0; " What does it mean to put Item* before the function? class Item { public: // prints data v...
[5 replies] Last: Thanks! (by Lesterberne)
Approximating Pi with Loops help??
 
For my assignment, I need to do this: The value of π can be determined by the series equation: Write a program to approximate the value of π using the fo...
[9 replies] Last: Ok, you have to start somewhere, so that's ok. Check my code and corre... (by kbw)
by Andym
Why isnt this menu allowing me to make another selection?
 
It has been a while since I have worked with menu's and I know that I had this sort of thing working before but I can find my code. Please help me figure out w...
[2 replies] Last: Thanks! As usual, its the little things that I miss. Thanks for your... (by Andym)
Problem with 2d array manipulation
 
I'm having trouble with array manipulation in a problem for a class. I am trying to pull a 2-d array into a function and manipulate it while stepping through t...
[1 reply] : It took a while but I found my own error. If anyone was interested, on... (by carvin160)
Array
 
SCENARIO: ABC bank gives rewards to its customers for shopping online. Create a program that accepts the Name, PIN, and number of points earned for each custome...
[2 replies] Last: #include <iostream> #include <string> using namespace std; int main (... (by enahso12)
Generic Game Functions?
 
I'm working on a bunch of random functions that I figure will be useful for console games. I was wondering if anyone had other ideas? /* Standard Game He...
[4 replies] Last: Thanks, I'll change that in my code. (by HellfireXP)
help me with code PLZ
 
I dont know why am getting mistakes? #include <iostream> //1 #include <cmath> //2 #include <fstream> //3 //4 const long N = 50; //radius r, j nap...
[1 reply] : What is the code supposed to do, and what are the mistakes that are oc... (by closed account E0p9LyTq)
How to add condition to write something for a "cout" ?
 
I need some help for my program which I wanna send to my friends. I need to put a condition to write Y/N to send the 2nd cout I put, can you tell me what code d...
[12 replies] Last: I don't understand what you mean completely but there is a function i... (by Winsu)
Read 2 file in command line.
 
I'm wondering how can I make the following command works in any code. Can anyone give me an example. Command: Can I use argv? Like something below. ...
[5 replies] Last: Oooooohh that is what you meant ^^ Sry for not rly being a help :P (by MokkaTech)
Lap timer help 😭😭
 
I have a project. The problem is make a timer. When the user hit enter key, the program will display a lap. Help anyone 😭 I'm a beginner. I have my timer...
[1 reply] : Please don't make multiple posts. (by closed account 48T7M4Gy)
by Enot02
Reverse string array
 
Don't know how to realize a function or a code which reverse string array. Reversing string array is different from reversing number arrays.
[11 replies] Last: > I inputed "10 9 8 7 6 5 4 3 2 1 0", and output will be:"0 1 2 3 4 5 ... (by JLBorges)
this is a question for function parameters.
 
// pointers as arguments: #include <iostream> using namespace std; void increment_all (int* start, int* stop) { int * current = start; while (current != s...
[2 replies] Last: Thank you for your kind lesson, AbastractionAnon ! for code and posti... (by kevinkim)
How to add two rounded doubles ?
 
I am writing a program to calculate the bills by inputting values. After a bunch of calculations, I will output the calculated Standard gas charge and Fuel cost...
[6 replies] Last: Floating point values and computations are approximate. One way is to ... (by JLBorges)
October 2015 Pages: 1... 4950515253... 57
  Archived months: [sep2015] [nov2015]

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