General C++ Programming (Page 6)

by jafa
How do I validate letter grade is valid?
 
Hello, Part of my assignment is to validate that the entered grade is either A, B, C, D or F. What...
[2 replies] Last: Thanks JLBorges so much!!! (by jafa)
Quadratic Equation Code
 
I'm trying to create a code which will solve a quadratic equation ax^2+bx+c=0 where the user inputs ...
[3 replies] Last: basically,you don't need a class to do this. as jonnin said,you can de... (by Syrian Lucianos)
String & File input
 
So i'm new to C++ programming, and have a project in where the user inputs a sentence, and based on ...
[11 replies] Last: #include <iostream> #include <string> #include <fstream> #include <ss... (by fireblz5)
Storing information from a txt file
 
So I am supposed to make a mad lib game that randomly fills the empty spaces with the type of word t...
[no replies]
Recording the frequency from an ngram
 
I am tasked with recording the frequency of the ngrams in the argument map<string,long> reference. B...
[1 reply] : Stop ignoring the return value for generate_ngrams and see http://en... (by cire)
<< operator error syntax near cin "endl"
 
#include<iostream> #include <string> #include<iomanip> using namespace std; int main() { /...
[1 reply] : Cin loads data into variables, endl is used when you want to print a n... (by TheHardew)
PPP2 Chapter 12 12.7 Images
 
I'm trying out the GUI code in Chapter 12 Section 12.7 and I was wondering if there was a way to get...
[no replies]
Storing creatures in a fighting simulator?
 
Hi! I'd like to make a pokemon fighting simulator, where you have an image and every pixel is one...
[no replies]
Map to String
 
So I am given the function where I am given a map that has a string key and a long value, and it is ...
[2 replies] Last: Thank you! That helped me and I was able to come up with this to get t... (by PirateCat)
Can you complete this 'class" example
 
Hi all! I found in my book a "class" example, not complete, that I am unable to complete since I kno...
[2 replies] Last: Thank you, Cubbi, for your reply. There must be hundreds of creators o... (by sylvain)
Help me find my mistakes PLEASE!
 
Hi guys! Really need some help with my school project! I needed to create a program to compute fed...
[2 replies] Last: #include <iostream> #include <iomanip> using namespace std; int mai... (by kemort)
Converting compound literal array to C++ compliant form.
 
I have some C code I'm adapting to compile under C++. Currently, it compiles as is only in Clang, bu...
[10 replies] Last: I get that the char* could cause issues if the lifetime has to exist ... (by mbozzi)
not initialized
 
As seen in the image below I am initialising a variable for a class http://puu.sh/uOv5E/7f5ce0e517....
[5 replies] Last: Sorry gunnerfunner :( (by RvBVakama)
I have this project assignment to do and i have no idea about it
 
This is the link with an image.It us the second image actually about the frequency table https://w...
[no replies]
Help picking 20 random numbers without repeats
 
this is my code... I am using vs 2012. I need to pick 20 random numbers from a generator without rep...
[8 replies] Last: Oh that makes sense... I knew i had the correct things i just put them... (by iosgaming700)
Project Inquiry
 
I have this school project to work on, but i have no idea on how to start it, any input or help woul...
[4 replies] Last: You may only use those concepts covered through strings in lecture. ... (by mbozzi)
Arrays
 
This is generic question but is there a way to get the index of an array based on the value? I know ...
[5 replies] Last: Thank you for your help! I know that this might not be idea structure ... (by venivediveci)
I/O problem
 
Hello. I am trying to program a neural network, and to do this, i need to retrieve information from ...
[5 replies] Last: Done! Thanks a bunch. (by vastatio)
by ramhue
char arrays and char*
 
what is a char* ? is it a pointer to a char array? how do I store input from a user into a char arra...
[5 replies] Last: We can't store a string (a sequence of characters) in a pointer; an ar... (by JLBorges)
by ramhue
Class function definition
 
I know this my sound bad but I was given a header file for a class named patient. The setter functio...
[1 reply] : // set the first name return *this ; // return reference to the pati... (by JLBorges)
Pages: 1... 45678... 32
  Archived months: [jan2017]

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