Beginners - October 2015 (Page 10)

If it’s a letter, prints out where it is in the alphabet
 
Hi so im trying to write a program where one inputs a character and the output tells you where the letter stands in the alphabet and also the write suffix for t...
[1 reply] : This might help: #include <iostream> #include <cctype> int main () { ... (by ats15)
Question: diff. between ++i and i++
 
Hello all, I'm currently really confused about this code: i = 1; cout << ++i << " " << i++; output: 3 1 (should be 2 1)? cout << i++ << " " << +...
[4 replies] Last: ohh i see! I got it now :) Thank you all very much for the clarificat... (by NewProgramma)
String Variable has value?
 
Hello, is it possible for a string variable to have a value like the number 1? Or like the code below? string food = {"Burger","Fries","Pasta"}; Burge...
[2 replies] Last: Oh ok, thank you for your reply, I'll keep it in mind :) (by RandomGeek)
by b1477
Password Verifier
 
Hello, The only error I am getting is when the password entered is longer than 6 characters. I have tried a few things here and there but i cant seem to crack ...
[3 replies] Last: Sorry for the late response everyone, Ive been slammed with work and o... (by b1477)
Having trouble opening file c++
 
Hi guys, I wrote this program to open a file. However now, when build and run, i don't get any errors. But the file wont open. i have created a folder with the ...
[6 replies] Last: Try opening a file with a unique file name for output using the ofstre... (by jlb)
Having trouble finding the error in my code (ft. while loops)
 
#include <iostream> #include <fstream> #include <string> using namespace std; int main () { char name; int gradeOne, gradesTwo, gradesThree, gradeAverage; ...
[2 replies] Last: In function 'int main()': 27:9: error: 'gradeTwo' was not declared i... (by closed account 48T7M4Gy)
by ottob
Segmentation fault (core dumped)
 
I am getting the error Segmentation fault (core dumped) when I run my code. It compiles and I can enter the information but when it displays the info, it doesn'...
[6 replies] Last: I changed NUM_HOUR to a const int NUM_HOUR = 0; and I did the same fo... (by cire)
Reading in Mixed data from a file using double for loops?
 
Hello, First time posting and I'm already asking something from you guys wow not a good first impression. My homework requires me to read in data and do...
[1 reply] : Outer loop for each driver. A nested loop inside the outer loop for e... (by cire)
Help with displaying 1000 random numbers
 
Hey i need some help displaying 1000 random numbers between 1 - 100. the code i have here displays the same random number 1000 when i need 1000 different number...
[2 replies] Last: Hey i figured it out here is the code thanks for your help #includ... (by Ko2S2shot)
by Matiss
I am asking for help with a task :)
 
Compile a program that prints the screen arithmetic progressions first N members and calculate the amount if the progression of the first member is -10 , but th...
[5 replies] Last: You should use a variable unrelated to the calculation of the arithmet... (by cire)
Need some help
 
So I am supposed to write a code that does the following below. I am in a beginners C++ course and am looking for help in terms of starting. I do not want anyon...
[3 replies] Last: If you don't know know how to solve the problem on paper, then your ne... (by SamuelAdams)
by Chubby
enmu to normal
 
Thank you for helping:
[4 replies] Last: enum {DIGIT,LETTER, IDENT, INT_LIT, ERROR, SPACE, STOP, PLUS_CODE}; ... (by Chubby)
by afj978
Sorting CSV (excel) with C++
 
I am just getting into working with C++ and want to write a program that can use an excel file (or .csv) file to sort data. The csv is just a general example. ...
[no replies]
Need help with a class problem(event)
 
So I wrote two classes, the first class will eat food or buy food and store it inside a fridge. The second class creates a vector of these fridges and it can ru...
[4 replies] Last: I appreciate the help, but my problem is I have to do it with those fu... (by helloworld135)
For loop not outputting table to file
 
I'm currently writing a mortgage calculator for a class project, but I'm having an issue with outputting it to a file. I need to output monthly payments in a ta...
[5 replies] Last: Show me what you expect the output to be in this case please. (by closed account 48T7M4Gy)
Using Input from a Document to find averages and show string output
 
I'm a beginner with programming and was given the following assignment: The input file contains the names, locations, current enrollments, and current tuitio...
[1 reply] : Please help. I feel like the more I try to fix it the worse I'm making... (by jdrouillard505)
Help with understanding Fraction class code
 
So this is just my assignment. Were given this code to start out with, i'm just trying to understand what does it exactly do and what its passing in as the para...
[2 replies] Last: Ok cool, thanks. Yeah that helps a lot! (by nyaonyao)
by new1
using class variables outside the class.
 
i'm trying to find the way for how i can do this ? is that am i forgot any simple thing. I have a class with private member as list and i populated the list in ...
[4 replies] Last: Want to maintain my list as globally.. Here my list changing in differ... (by new1)
by king H
Looping
 
Hello guys, please assist me as to how I can get my code to prompt the user to enter the correct integer(choice) and actually allow him to select the correct ch...
[no replies]
October 2015 Pages: 1... 89101112... 57
  Archived months: [sep2015] [nov2015]

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