Beginners - September 2014 (Page 3)

Best compiler for c++ primer plus?
Hi, im learning c++ right now from the book c++ primer plus and I am using dev c++ to practice the examples from the book, but the problem is that I get a lo...
Sep 29, 2014 at 9:10pm
[1 reply] : Dev C++ is fine if you are using latest Orwell version and not outdate... (by MiiNiPaa)
Corrupted Heap, trying to make custom vector
Solved: I did not have a operator= for my customvector, because when I copied the Person (which at than did not have a copy constructor) it copied the vector ad...
Sep 29, 2014 at 7:40pm
[5 replies] Last: Great effort with your custom vector! You may want to check out std:... (by megatron 0)
by Jhub
logical operator problem
At the end of my code (ex. 2) I am trying to have the user input scores and then a -1 to end. The output would then display how many A's B's ect. My output is...
Sep 29, 2014 at 7:25pm
[5 replies] Last: Yes (by MiiNiPaa)
What's wrong with this code?
This is code for determining the type of a triangle. I need help with it- what's wrong? #include <iostream> using namespace std; int main() { cout ...
Sep 29, 2014 at 7:22pm
[5 replies] Last: You can do this without the angles by using the Pythagorean Theorem. ... (by booradley60)
Program compiles but does not run
I made a program that does basic math operations but will not run. When i hit compile it tells me that the build succeeded but it does not run. Any input would ...
Sep 29, 2014 at 7:20pm
[9 replies] Last: Thanks everyone I really appreciate it!! (by Gingerbread)
Design a circuit Help??
Design a circuit to distinguish all prime numbers that less than 16. Show me your circuit and logical history. Use 1 bulb to distinguish the prime number and 1 ...
Sep 29, 2014 at 7:18pm
[3 replies] Last: I'm with cnoeval on this. Design a circuit? You mean with logic gates... (by megatron 0)
C++ SUM - I can not finish it...
Hello, can somebody help me? I need 20(summ)k=0 for 0.1(pow k) / k! in: DEV CPP for faktorial I have: #include <stdio.h> #include <stdlib.h> #include <math...
Sep 29, 2014 at 6:42pm
[no replies]
by cute
C++ reading from .txt file
Hello, I am having trouble with finding the running total in a .txt file. I am asked to add up all the numbers for a specific category (like candy) and displ...
Sep 29, 2014 at 6:08pm
[4 replies] Last: Where is the file located? Is it inside your project or outside ? (by novellof)
How to add an extra 1 to the first and an extra 0 to the last of bitset?
I've written the following code using bitset.I want to add an extra 1 to the first and an extra 0 to the last of the bitset. Example: 000000000001; this will b...
Sep 29, 2014 at 5:20pm
[no replies]
How is my logic wrong for array use?
SO I am trying to break a 3 digit number up into 3 seprate pieces and having them coming out as a string with the use of an array. However I keep getting "unde...
Sep 29, 2014 at 4:47pm
[1 reply] : You declare count1 , count10 and count100 as local variables in f... (by MikeyBoy)
Error with output
Hello everyone, new to the forum. I was trying to complete an assignment but I just can't figure out how to get the output to display in a certain form. Here is...
Sep 29, 2014 at 3:58pm
[3 replies] Last: Post error messages here (by MiiNiPaa)
Separate scores into rows
Hello, what i'm supposed to do is open a file with some scores in it, and then: 1. Find the average 2. Find the minimum and maximum score 3. Display score...
Sep 29, 2014 at 12:23pm
[16 replies] Last: Squished18 Thank you. Kemort Thanks for your help earlier.... (by awkward)
reading from a file and writing to a file
Hi I am trying to read student records from a file to an array of Student objects and I need to write those object to a file. I can read the lines from the fil...
Sep 29, 2014 at 12:20pm
[6 replies] Last: What you new you must delete. It doesn't matter where you dynamically ... (by jlb)
by davez
how to merge and sort array
can anyone please teach me on how to merge and sort arrays i have no problem sorting single array but when it comes to merging and sorting both arrays i dont kn...
Sep 29, 2014 at 12:15pm
[1 reply] : http://www.cplusplus.com/forum/general/96943/ http://mathbits.com/Mat... (by DeathLeap)
Calculator: Chaining Of Operations (1,2)
I want to make a simple calculator which can read an expression and calculate it. Below I've posted the source code of my calculator program. It does the job bu...
Sep 29, 2014 at 11:07am
[25 replies] Last: Wow nicely explained thanks again. I learned a lot from you. (by Fateslayer)
by rida95
im trying to write a c++ program that can do this equation
s= +1-2-3+4+5+6-7-8-9-10+11+12+13+14+15...................n it first started with one + then 2 -- then 3 +++ then 4----
Sep 29, 2014 at 10:56am
[1 reply] : int op_limit = 1; int op_done = 0; bool add = true; int sum = 0; for(... (by MiiNiPaa)
by s1995
VoidFunctions
Question 6c Write a program named question6c.cpp that demonstrates the use of the following functions. A C++ function named getName() prompts the use...
Sep 29, 2014 at 10:30am
[6 replies] Last: Thanks so much!! its working perfectly now.. (by s1995)
help with making a rpg game in C++
how would I make a rpg game in C++?
Sep 29, 2014 at 10:30am
[4 replies] Last: University, I studied in, had 3 month C++ courses which consist in mak... (by MiiNiPaa)
User input with if/else statements and switches
So I need to write a program for my cse 100 class. I will provide all of the instructions, although I only need help with part 4. I will also provide all of the...
Sep 29, 2014 at 8:59am
[1 reply] : What exactly you need help with? I see you already familiar with if st... (by MiiNiPaa)
C++ programming
Hello guys i'm kinda new to programming and i'm trying to do a certain task. I want to use a for loop to read certain data from a txt file and print them to a ...
Sep 29, 2014 at 8:35am
[15 replies] Last: The senseless value of n is usually sign of failed read. Check if file... (by MiiNiPaa)
September 2014 Pages: 12345... 51
  Archived months: [aug2014] [oct2014]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.