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 five characters to hold the five students’ letter grades, a...
[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 of integers using forward method. Use the C++ “struct” d...
[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 me 12.75 (I'm using 8.50 as my wage). How do I make sundaywa...
[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 a suitable driver program (break the program into 3 files- d...
[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 Definitions in MyFuncLib.cpp 3. Then include the MyFuncLib.h in...
[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 greatest element of an array. for example [4,5,2,25} if the...
[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 the console. In other words, at this stage I just want to be...
[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 commands through CMD using system(), But i was wondering, wha...
[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.cpp name", and it deleted my source code. I'm really just i...
[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 << *object->getName(); is called. Here is my code: http://past...
[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 class with several functions containing the properties of t...
[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 pointers and so this assignment focuses on that. My professor wante...
[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 you explain it??
[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 merge two programs together ?? Can any tell me the solution fo...
[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 changing and there is a lot of bad material out there. Does anyone...
[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. The rank of a team is determined from the percentage as follow...
[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 doesn't work if there's a space. The issue I'm having is tha...
[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 { float x, y; Position(float position_x, float posit...
[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.. When the days hit 30, the month should incrememnt.. When the m...
[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 or later, I sincerely wonder, would I do better by learning...
[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.