General C++ Programming - September 2016 (Page 13)

averages of my arrays are not right and letter grades are not showing up
 
Write a program that uses an array of string objects to hold the five student names, an array of f...
[2 replies] Last: Thank you!! (by dannyboy77)
I am completely lost!!! PLEASE HELP!!!
 
The assignment: Single Linked List (SLL) Design and code your own single liked list to hold a list ...
[1 reply] : Thank you! Here is what I have so far: #include <iostream> using name... (by jlbrown314)
by J3mzz
Multiply variable and double
 
So, when I run this code, it gives me 2.96413e-307, but when I set wage to a fixed double, it gives ...
[2 replies] Last: Thank you so much. lol Sorry, im just learning c++ and rewriting one o... (by J3mzz)
Someone please breifly explain what this assignment is asking for? Im slow
 
Implement a fixed size container class that encapsulates a statically sized array and test it using ...
[3 replies] Last: The first paragraph is just an overview of the assignment. It says you... (by jlb)
How to write a class library in c++ like the one we write for functions
 
For a library of functions, we write 1. Function Declarations in MyFuncLib.h 2. Function Defi...
[3 replies] Last: Thanks mbozzi :), this was really useful. I am now clear of why I was ... (by kapil2905)
by leon13
Need help with Programm to print next largest element in array
 
Hi ! everyone im a begginer c++ programmer and Im trying to make a programm that will print the next...
[3 replies] Last: Its an amazon interview question i found onlinr. So it must be complic... (by leo11313)
Trying to use 2D string array, but having compile errors
 
I am trying to use a 2D array and pass it through to a function that will let me print the array to ...
[1 reply] : Please copy and paste the exact error message and indicate which line ... (by LB)
Optimizer
 
Hey everyone! I am working on an RAM optimizer in C++, And i know that it it possible to execute co...
[2 replies] Last: Look at powershell if your using windows 7 or newer. (by SamuelAdams)
by Frenzy
G++ is deleting my Source Code
 
I normally compile my source code using "g++ name.cpp -o name". Recently, I tried using "g++ -o name...
[3 replies] Last: GCC tutorial http://pages.cs.wisc.edu/~beechung/ref/gcc-intro.html (by closed account E0p9LyTq)
pointer in for auto for vector of poitners causes fatal error
 
As title says i got fatal error from for (auto object : Object::getObjects()) when the std::cout << ...
[5 replies] Last: would need to see `getName()' code. (by ne555)
How to create a class of all constant values
 
Hi everyone, I am dealing with a chemical engineering code. At this stage, I'd like to create a...
[1 reply] : struct molecule{ double rho; //... }; namespace parameters{ ... (by ne555)
by BlairM
Pointers and Palindromes
 
I need help with homework assignment for my Computer Science 2 course. We are learning about pointer...
[3 replies] Last: No. Make first a program that takes one string, determines the length... (by keskiverto)
by bp04
Makefile in Borland C
 
Can we create a make file for multiple files in c programming with using c compiler . If yes, can y...
[2 replies] Last: I assume you mean 'Borland Turbo C++'? That's slightly better than '... (by TwilightSpectre)
by bp04
Merging of two programs
 
Hey, I am using borland c compiler. I want to merge two existing program in one program. Can we me...
[4 replies] Last: Well you can add them in main file as well as header files (I am assum... (by shadder)
by mrpeed
Good Books for a C++ Beginner
 
Hello, can anyone recommend a good book for learning C++. I understand the language is always changi...
[6 replies] Last: I would second what BHX said. SFML is easier, in my opinion, to learn... (by JayhawkZombie)
Can Somebody help me
 
Assume you are trying to rank NFL teams based on the percentage of games they win in a season. Th...
[1 reply] : please do not double post http://www.cplusplus.com/forum/beginner/1970... (by SamuelAdams)
by Frenzy
getline(); only executes once
 
Hello, this is my first time using getline() to read in a string, I normally just use Cin, but that ...
[1 reply] : http://www.cplusplus.com/forum/beginner/197263/ (by closed account 48T7M4Gy)
Returning struct from function is not working for me.
 
Returning struct from my function getPosition is not working. Here is my code: struct Position { ...
[3 replies] Last: getPosition unknown override specifier (by Putarda)
Going out of scope and I don't know how to fix it.. Help me!
 
Okay, so I'm suppose to modify and older program so that it increments the date set by the user.. Wh...
[3 replies] Last: Yes, nextDay is suppose to increase day by 1 and then when the day hit... (by newbcoding)
Learning C++11 / c++03?
 
Hello, I am following a PDF-tutorial 'Jumping into C++ (Alex Allain)', that does not cover C++11...
[2 replies] Last: Thanks man! Appreciate your answer! I'll keep going then =D Oh alright... (by Willo123)
September 2016 Pages: 1... 1112131415... 19
  Archived months: [aug2016] [oct2016]

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