Beginners - April 2016 (Page 29)

Executing program without an IDE (1,2)
 
Hello, I have this small project that is consisted by the main.cpp, some other cpp files and their headers. My question is how can a user execute them witho...
[31 replies] Last: So how do I get this "program"? The program is a compiler. Several ... (by Chervil)
Program to display a calendar
 
A program to display a calendar for any given year that the user puts in. I need some help to arrange the days of the week in columns and put each of the days...
[1 reply] : :D #include <iostream> using namespace std; int main() { int Y,n,... (by jam47)
by Zorac
stoi is giving me "abort has been called()" error.
 
So i have been learning how to overload>> after making my own structs. So i am currently trying to add info from a text file into my struct. However one of the ...
[2 replies] Last: Thanks, that worked perfect for me. However i decided to no use else h... (by Zorac)
I need help with a selection sort program
 
I need help on a selection sort program, I can't figure out what's wrong with my code. #include <iostream> #include <cstdlib> #include <ctime> usin...
[9 replies] Last: The best way to diagnose this would be to run it through a debugger. ... (by MikeyBoy)
by Job 04
Memory leak using strings
 
Hi, I need to write a script using c++ to interact with a software package. I am not that experienced with c++ though and run into a problem. When I run the ...
[1 reply] : You will cause a memory leak if you allocate memory using new or ma... (by Moschops)
Outputting Zeroes Problem
 
Working on a problem and I am somewhat lost about the mechanics of what needs to be done. I've fleshed it out the best I can but I can tell from my output it's ...
[6 replies] Last: No, there is no function there, just as I wrote. You are probably con... (by keskiverto)
GPA program
 
hey is there anyone able to help me? I'm to write a program that would use a student id number, name, credit per course and the grade for three courses. I'm to ...
[1 reply] : http://www.cplusplus.com/forum/general/188787/ (by chicofeo)
by slex04
displayData (1,2)
 
Hi I have to write a small program using three functions...input, calculate and display. The program is executing and returning the calculation but after that w...
[28 replies] Last: Thank you guys ..I do understand now that "i" has nothing to do with m... (by slex04)
my program display nan and 0
 
my programing only display nan and 0 after i run it and my ecpected value is the monthly amount of loan and total loan i need some help, i have been stuck on th...
[2 replies] Last: I change the programing a little bit but i have trouble and the progra... (by ChungTong)
Help understanding this program flow
 
I've been looking at code recently to try to get better at reading how it all flows together when I came across this. /* The problem: Add a unit to...
[3 replies] Last: In this context, yes. (by xismn)
Game Lobby error help
 
This is the assignment. Change the Game Lobby program from Chapter 9 (pgs 315-325): Improve the Lobby class by writing a friend function of the Player class...
[no replies]
help with my list for divideAt
 
i think i have some problem with my divideAt fucntion in my header file im pretty sure im doing something wrong if anyone could help please thank and i kept get...
[10 replies] Last: nevermind thank you for the help i figure it out and you help alot (by warrior757)
passing pointers/structures into function
 
Hey guys,I'm having trouble with passing my arrays into functions using structures. Specifically in my choice 1 part Not exactly sure how to go about it been tr...
[1 reply] : int add( Class* ptr ) http://www.tutorialspoint.com/cplusplus/cp... (by integralfx)
by nj1995
Sorting using nodes
 
Hi, I am struggling to figure out how to sort the values in a List class using nodes, any help is appreciated, thanks! #include <iostream> #include <iterato...
[no replies]
Avoid "empty" getters/setters
 
I am writing a Connect four application that is eventually gonna be connected to a Qt GUI. I have read that writing empty getters and setters should be avoided ...
[5 replies] Last: This is something of a toy example, but the principle is sound. Object... (by Moschops)
Using Runge Kutta method to solve a system of ODEs
 
Hello everybody I try to solve a system of ODEs with Visual Studio 2015, and VS shows me result of program but It seems like VS didn't calculate anything. ...
[no replies]
Array/Calculation Help
 
I am having a hard time understanding what exactly is wrong with my code and why my output file isn't correct. I will post the assignment I need to do below an...
[no replies]
Having trouble with two-dimensional arrays.
 
Hello everyone, I'm required to write a code that displays the amount of time a number appears in a two-dimensional array. Here is what I'm currently working wi...
[2 replies] Last: I thought I was doing that in the "if" statement. :( (by aubreytay)
Need Help With Hashing
 
Hey there, so I'm just learning (or trying to) a bit about hashing. I'm attempting to make a hashing function, however I'm confused where I save the data to. I'...
[no replies]
by jcmd
Using bool to show prime numbers
 
So my program is supposed to do this "Write a function name isPrime, which takes an integer as an argument and returns true if the argument is a prime numbe...
[2 replies] Last: would a if else statement in the bool isPrime function solve the probl... (by jcmd)
April 2016 Pages: 1... 2728293031... 43
  Archived months: [mar2016] [may2016]

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