Beginners - April 2014 (Page 43)

derivative/ slope issue
 
Hey folks, first of all I want to say thats a great forum, I am a complete beginner in programming and I already found some useful information. Now to my ...
[4 replies] Last: Hi sphstctd, Sorry if I sounded grumpy earlier, but occasionally we g... (by TheIdeasMan)
How to add encapsulation, abstraction, polymorphism, inheritance in my simple pong game?
 
Hello. :) We were required to apply encapsulation, abstraction, polymorphism and inheritance in our pong game (OpenGL). But our professor did NOT teach us at al...
[1 reply] : It's 60 percent of our grade and she expects us to apply these without... (by adriyel)
question about code using set_new_handler
 
Hi, The following code was written based on Chapter 7-Check the return value of new- from Effective C++ (1st edition). #include <iostream> using namespa...
[2 replies] Last: thanks cire. Your hint solved the problem! I guess I have to add abort... (by santiagorf)
ٍٍSet c++ prints word without repetition what is wrong ?
 
I want to take from user number of word and prints word without repetition I know there is syntic wrong but i cant find it plaese help .. ...
[3 replies] Last: thanks (by wazery89)
something wrong with the looping
 
hi guys.. when running these codes, works fine until "Enter how many subjects: "..when i input '1' for example it will ask name of subject, how many credits fo...
[2 replies] Last: that fixed it! thanx! (by kerolz94)
Quick C# Question
 
i know this is not place for C# but still .. i think its quick question .. so if you know, reply please ... im trying to add sound to my program but i have a...
[6 replies] Last: i just copied Sounds folder in Debug and its done .. thanks man (by SrgjanLDTeam)
Stop endless loop by pressing enter.
 
I wondering how to stop a endless loop. The program clears a file then opens it and refreshes it over and over(the file is going to be modified by another prog...
[2 replies] Last: I didn't even know that you can get our of an endless loop in any way ... (by MarciusV)
Senasel
 
What I'm I doing wrong? This simple program I wrote doesn't give me the sum after I input two numbers to add. Any help? #include <iostream> using nam...
[3 replies] Last: Thanks guys. I ended up know what was wrong with my code and I fixed i... (by Senasel)
by jamsiu
Need help! I want to output on multiple lines!
 
I want to write a program to ask for user input like this: Input : ABCDE row: for example, 3 column = row then the output will be like: ABC DEA BCD...
[2 replies] Last: Can I use array instead of pointer? As I am not quite familiar with po... (by jamsiu)
by sky3
List class
 
My problem is when i try to call the get function i have no idea how to get the data from my file. it says that it cant convert fstream to int. int is my functi...
[1 reply] : It would be good to see a sample of the file you're reading from, but ... (by Mats)
Help Needed
 
when i compile the following program it gives an error ISO forbid comparison between pointer and integer can anyone tell me what is the problem ?? #include<ios...
[3 replies] Last: thanks it worked :) (by lonewolf1)
program skipped looping
 
hello, i'm new to this forum and new to C++..need help with this..what will happen is, the program will run but only until "enter how many subjects"..after inpu...
[2 replies] Last: ahh yes....silly me..thank you very much! (by kerolz94)
Prime numbers boolian stack overload.
 
I am trying to write a program to determine all prime numbers below an assigned value and it returns stack overload. The last part of my code is also telling if...
[1 reply] : If you are finding the primes less than 441181 why are you adding ten ... (by giblit)
Help with Array please!
 
Create a program that will accept any number of grades for an exam. The grades will be input as 4 for an A, 3 for a B, 2 for a C, 1 for a D, and 0 for an F. If ...
[10 replies] Last: I know you solved it, but it appears you guys skipped a part of the re... (by BHX)
Looping same statement
 
I want to loop the same statement "Please enter a number other than 5" over and over again unless they enter the number 5, that's when I want to break out of it...
[2 replies] Last: You could simply do. while(x != 5) Another method since you have it... (by giblit)
ofstream
 
So im trying to call the ofstream constructor. When i call it with a string like "this" it works but with the string value command it gives me this error: no...
[1 reply] : std::ofstream is really a std::basic_ofstream<char, std::char_trait... (by giblit)
Factoring nth root numbers
 
I am working on a project where I am passed a nth root. I then have to factor out any squares(or cubes or higher if it were not just a square root). For instanc...
[1 reply] : First ensure that the vector is sorted. Start from the top and count f... (by helios)
Been programming for a month?
 
Hello, I've been learning C++ for about a month now, the most I know is up to the ideas of the "if statement" (testing equations and values for true or false) a...
[2 replies] Last: I've been programming for about a month or so too, I know if statement... (by football52)
Help with do-while loop
 
So i'm working on a program to play a simple blacjack game but I cant get this loop to work correctly so that the player can properly choose to hit or stop whil...
[2 replies] Last: ahhh thanks that helps a lot. (by thelegendpaul)
string.find()
 
okay im trying to use the find function to find a character or word in my string.... #include <iostream> #include <string> #include <cstdlib> using n...
[2 replies] Last: ah okay thank you that fixed the random file problem...yes, im trying ... (by josepho16)
April 2014 Pages: 1... 4142434445... 67
  Archived months: [mar2014] [may2014]

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