Beginners - October 2013 (Page 10)

Do/while loop works with vectors??
 
Hi everyone, I started with a code to calculate the final grade of the students asking for input information, such as midterm, final, homework, presentations...
[4 replies] Last: I see; with cin.clear() it worked. Thanks a lot ne555. (by Rodderick)
Help needed with this C++ code (distinct occurrence related)
 
Hey there, I am supposed to write a code that counts "how many times each distinct word appears within a string input". The code I come up with was shown below,...
[3 replies] Last: Again, look at your vector after the std::unique() s == s[i-1] woul... (by ne555)
Need a little clarification on the >> operator.
 
In my attempt to gain a less superficial understanding of it, I learned that the >> operator, which is usually presented to newbies with cin>>var; examples, rea...
[3 replies] Last: When I was first learning C I missed a } somewhere, and spent a week a... (by Duthomhas)
Error C2109 array or pointer type
 
I'm trying to code a 20x20 array, filled with zeros. I keep getting an error C2109 saying that my in the loop meant to fill the array must be a pointer-to-obj...
[4 replies] Last: Thank you! (by hseipert)
Help?
 
}This C++ question is related to Temperatures and , i was wondering if anyone you will help me on this. Our task is to : Write a well-documented C program...
[1 reply] : This C++ question is related to Temperatures Your code is in C and n... (by Chriscpp)
Iteration and Interpolation
 
The problem is as follows: Your task is to find the four solutions to the equation sin(x) = exp(-0.4x) in the region from zero to ten radians. This is acc...
[4 replies] Last: Alright that makes more sense now... It's still returning the wrong er... (by dkarayof)
What to do?
 
“There are three freely convertible currencies in the Galaxy, but none of them count. The Altarian Dollar has recently collapsed, the Flainian Pobble Bead is...
[no replies]
by Ediie
Please help!!
 
Hi guys, I need help with an assignment. I'm very new to C++ (in 8th week of learning) and I don't know where to begin with this assignment. source file: vo...
[2 replies] Last: A better code would be like this: While Read a line from the input f... (by Chervil)
Help with my home work please, program that prints stars
 
Hey guys I've been trying to solve this but I couldn't .. Writing a program that prints stars , so I already wrote one using while loop but I did one of the 3...
[19 replies] Last: It works believe me ;D Eyenrique-MacBook-Pro:Help Eyenrique$ ./fig... (by eyenrique)
player gradually slows down
 
my player gradually moves slower and I don't know why. The game starts at regular speed, but slows down after a couple seconds. plz help. I'm fairly new to prog...
[no replies]
by Ratham
Map Insert Not Working (Read Latest)
 
I'm trying to open a file & create a map that contains codon/amino acid information. I'm really bad at maps and am just starting to learn/use them though, so I'...
[11 replies] Last: Since you only do iss >> word; you only extract the first word from ... (by closed account o3hC5Di1)
Inheritance question
 
I dont really know what my problem is called so if you have a better subject name pleas tell me. i think the best way to explain is to show you, the first is...
[5 replies] Last: class menu{ public: virtual void draw(); }; class classic_menu: pu... (by ne555)
need basic if statement help
 
Ok, so I am making a basic number calculator using if statements and I have most of it done, and correctly. I just can't figure out how to add two things: For e...
[6 replies] Last: No problem :) Sometimes, it's hard to see what's right in front of yo... (by MikeyBoy)
by damog
error: expected initializer before ‘sprintf’
 
Hi everyone! I'm starting (again) to write C (in this case C++), but it has been a long time since I do not use it, and besides, C++ is a bit different from C, ...
[2 replies] Last: If you're going to write a long C program (if not for the <iostream> a... (by Albatross)
creation of data file
 
i want to create a simple text file in c++ but i want to take the name of the file from the user.i have come up with the source code below but no creation of te...
[2 replies] Last: @ne555 Thanku for atleast replying. I corrected my code without anyon... (by baka291)
Are there any games written in C++?
 
I have been learning C++ for about 2 months. I am now learning file and ifstream. I'm just curious if there is any game written in C++, I would like to see how...
[8 replies] Last: Thanks Stewbond! It is very informative. It seems I still have a long ... (by athrun200)
Filling a character array with a string.
 
I need to fill an array with a string that is input by a user. I think I need to use a dynamic array, but I'm not even sure about that. Here is the code I hav...
[10 replies] Last: Thank you for the input, I appreciate you not just giving a solution, ... (by visanoven)
by enemy
Double to int
 
Hello! I tried to convert double number m to integer. Problem is, program is automatically converting p also to integer! But I wrote just m to be converted to i...
[5 replies] Last: I think the previous comments probably give the correct answer. My qu... (by Chervil)
Help! simple if and else statement password!
 
I'm trying to make a simple password using if and else statement. My problem is It keeps saying "Access Allowed" even though I put a wrong number. help please. ...
[2 replies] Last: Wow! Thank you very much! I'm trying to figure it out for about 30 min... (by Eren Jager)
Class Operations & Throw Exceptions
 
I am a little hung on on completing this program The assessment asks us Following the information provided below, implement a RockConcert and TicketHolder cl...
[1 reply] : how to go about coding methods RockConcert::sellTicket and, RockConce... (by coder777)
October 2013 Pages: 1... 89101112... 86
  Archived months: [sep2013] [nov2013]

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