Beginners - December 2015 (Page 17)

by Mays
input of several numbers at once
 
I'm trying to solve an exercise here. First part of it was about feeding a programm 10 numbers and sorting them, which you can see below. However that used a me...
[8 replies] Last: Thanks for explaining! (by Mays)
Grader [Standard Deviation, Mean, Categorizing]
 
I am a beginner to C++ and I am having some issues with my output of my code. Here is the question. -----------------------------------------------------------...
[2 replies] Last: Thanks man! That really helps, but which arguments would I need to cha... (by nvc5221)
Starting C++ for Windows
 
Hi, I've been learning C++ since 3 months ago (using C++ Primer 5th edition) and unfortunately i find it very boring i just wanna learn the basics then jump in...
[7 replies] Last: No no. If it worked in 2010, it'll work in 2015. I meant that some o... (by JayhawkZombie)
Formatting an output into neat columns
 
Hey Everyone! First time posting...still very new to this programming game! :D Anywho, this is a payroll program, and I want it to output into nice neat col...
[3 replies] Last: This worked perfectly. The way you aligned the << made a lot of sense... (by CozyLizard)
c++ letters to numbers, weird error
 
I'm getting a really weird error on my program. when I punch my input, I get "Debug Assertion Failed! [program stuff] line 1685 expression: string subscr...
[6 replies] Last: sorry, y'all, I haven't been near my laptop. thanks for the help! I f... (by scalezors)
Hangman style cout for loop
 
Write your question here. I am trying to make a part of the game hangman, where the user inputs a letter and then a loop check for that letter in a random arra...
[1 reply] : Don't double post http://www.cplusplus.com/forum/general/181115/ (by JayhawkZombie)
code
 
What does this code do fstream file.open("States.txt", fstream::in); i dont understand the :: part or why the code has -, fstream::in-
[1 reply] : http://www.cplusplus.com/reference/fstream/fstream/open/ fstream::in... (by JayhawkZombie)
replacing string
 
Hi, can someone help me ? I've been trying to solve this for 3 days :( I need to replace an upper case abbreviation like LOL to lowercase in the tweet. so t...
[3 replies] Last: Why did it not work before? I'm not sure. I ran the original code unch... (by Chervil)
by mar456
Crashing with wrong input
 
Hi, I'm pretty new to coding, so I started this practice program. It's supposed to be a text-based rpg, very simple, but I seem to be coming up on some errors. ...
[2 replies] Last: What is your program exactly supposed to do? As far as I can tell, yo... (by mpark4656)
Could you help me fix my code (student scores, files,structure) (1,2)
 
Write your question here. I have to make a program in which a teacher is inputing the scores of each student in a file.There are several marks: A 90-100 ...
[21 replies] Last: You already have the logic, but the logic is in the wrong location. Yo... (by jlb)
Error c1075 please help
 
I keep getting the error Error C1075 the left brace '{' was unmatched at the end of the file at line 14. I cant find the error. There is more code but i only p...
[6 replies] Last: Thanks Chervil and everyone who tried to help. I used Chervil modified... (by chang123)
New programmer want to learn C++ need ide and compiler for free (1,2)
 
Write your question here. Ok I am wanting to teach myself C++. I can't afford Visual Studio and am looking for a free alternative to it? I would like and IDE a...
[21 replies] Last: Here is where I butt in and tell you that I prefer Visual Studio. Int... (by JayhawkZombie)
by srah
Using an array in a function.
 
Hello guys! I am almost done with my assigment, but I came with a problem that seems really dificult to me. void Total&Average(string filename) { ifstream ...
[1 reply] : That array is local to that function. It will go out of scope when th... (by JayhawkZombie)
iterator out of bounds
 
this is the code I had before but lost some points due to the out of bounds error for the while loop condition (*it == *(it + 1)). void printCommonWords1(...
[5 replies] Last: yes I did. words.end() returns an iterator so it won't be correct to c... (by backslashV)
Scrabble Bag of tiles not working
 
So i am making a scrabble game and one of the first things i need to do is to create an array of tiles with a class, but the code i have when run will only outp...
[1 reply] : > for (int i = 0; i <= 100; i++) out of bounds. (by ne555)
Moving My Player Sprite (SFML)
 
I have a class for my player functions and variables, a class for handling events, drawing sprites etc. I would like my player sprite to move once the key is...
[6 replies] Last: Thank you for your help, I solved my problem :) (by FighterCoder)
possible to simplify code?
 
It's a chess program and this bit is doing the rook moves. Can I get all this in a single loop rather than one for each direction? for (char i= pos.fi...
[no replies]
String Conversion Algorithm
 
Problem Statements: You are given a string which consist of characters and numbers of unknown length. It is in the following form: "nXnXnX....", where n equa...
[7 replies] Last: I've no idea what the linked page was supposed to be - I get a big 404... (by Chervil)
by r0ry
Tree - dynamic array
 
Hello I have a problem creating dynamic array in struct. This is a school project and I have done it using static array , but was wondering how to do it with dy...
[1 reply] : You either need a constructor, and pass countRes to that constructor, ... (by JayhawkZombie)
Offset Problem - Caesar's Cipher
 
Hi, My code is finally running but not properly, I think it the offset but it might be something else, could someone have a look my piece of code and tell me w...
[1 reply] : In your loop you do something weird: Letter = LetterBeingExamined; ... (by Shadowwolf)
December 2015 Pages: 1... 1516171819... 43
  Archived months: [nov2015] [jan2016]

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