General C++ Programming - November 2013 (Page 26)

Could someone sort of outline the steps that will lead me to making fully functional visual games?
 
Before someone says, "you have to learn the basics," I totally agree. To me there's no other way to learn this language than to start from the bottom. In fact ...
[3 replies] Last: i would say: 1) learn the basics, especially OOP, get comfortable with... (by metulburr)
calling functions/ compute prime numbers
 
Hi everyone! I've been working on this program and I believe my functions on top are working, but in my int main I have a feeling it is wrong. I need to call g...
[3 replies] Last: Okay, thank you so much for your reply! These tips were so helpful. A... (by MikeyBoy)
need help with calculations but calculations and bubble sort doesnt work
 
ok i have correct and update my code and it does work with no errors expect it doesnt do calculations and bubblesort with employees last name // here is the tx...
[3 replies] Last: @coder777: Don't waste your time. People tried to explain this to th... (by MikeyBoy)
Can I have datamember as the object of the same class??????
 
#include<stdio.h> #include<iostream> using namespace std; class student { int marks; student*s; public: ...
[4 replies] Last: Thanks all Its clear for me now Thanks again!!l (by venkatacplpl)
Help on classes with txtfile
 
Hi i am doing some practice problems and i can't seem to figure out how to do this. basically we have a students number of test scores, then the name followed b...
[7 replies] Last: if you just want to output the content of a text file use getline: ht... (by coder777)
change the Nth value in a .txt file
 
Hello I have a .txt file which contains a large amount of ones and zeros (tile map for a game) and basically I just want to know how to change say just the 12t...
[2 replies] Last: ThankYou this works ;) (by Og The Trog)
stoi, stoull not supported by code::blocks?
 
I'm running Code::Blocks with the latest TDM-GCC for C++11 support and I can't run functions like stoi (string to integer) and stoull which are well documented ...
[18 replies] Last: You are putting yourself through purgatory despite receiving the accep... (by LB)
by alali
i have 3 question i want Urgent help
 
Hi all of you, I want help to answer this 3 question today I don't know how can I solve 1-Write a program to find the maximum number between 3 integer num...
[3 replies] Last: Okay, what do you need help with on number three? It seems fairly str... (by Danny Toledo)
Using functions within functions
 
Hello everyone. I'm currently writing a program and a portion of it needs to have a function that computes the result of a formula for two sets of inputs. It th...
[1 reply] : To respond to the topic title, have you ever thought of main as a func... (by LB)
need help with my source code but it wont complie and giving me errors
 
i tring to write a emplpoyee payroll code with functions and read data from the txt. file and also need help with bubble sort that sorts and diaplsys starting f...
[12 replies] Last: ok i have correct and update my code and it does work with no errors e... (by GokuK97)
by OJ007
Why am I exiting my do while loop?
 
I can't figure out why I am breaking out of my do while loop when both my conditions are true. Am I using the do while loop wrong? I've checked my variabes duri...
[1 reply] : You say both choice and playerIsNotDead are true, but the do while sti... (by xismn)
polymorphism
 
Hi guys, I need help when overloading << in a base class (the overloading has to be virtual i guess), would anyone give me a brief example? My teacher didn't ...
[2 replies] Last: Thanks, good explanation really, That helped a lot!!!!! (by jmyrrie)
Need Some Help Finding the Problem!!!!!!!
 
I can't figure out why the function is not returning the integer 1 or 0 ... Can someone please help I've tried everything that I felt I know about programming a...
[2 replies] Last: Thanks @Danny Toledo ... can't believe I missed that!!! Appreciate the... (by scardoso)
by cshu
vowel counter
 
my program runs but its not showing the number of vowels of the word that the user inputs, anyone have a clue of what im doing wrong #include < iostream> ...
[2 replies] Last: so I take out int len = strlen(letters); int ind = 0; what do I ... (by cshu)
Adding two numbers
 
Write your question here. Hello, I am trying to add two numbers that the user puts into arrays ("a" and "b") The problem is with the carryovers - I can't get...
[no replies]
template and -> symbol and operator
 
Hi guys.I have a question. why do we use template and -> symbol and operator ??? is this-> necessary below code.? #include <iostream> #include <conio.h> u...
[no replies]
Noob console programme question
 
Hi all. Could someone please tell me why nGrade comes out as 0 every time? Its as if im not inputting the values into the dynamic arrays in int main. Thank u...
[2 replies] Last: Thanks! Changing those arrays to doubles as well as nGrade worked (by Redcode)
by Jgwman
Text to speech and vice versa question
 
Hi, I was looking for a C++ library for use as stated in the title. I was considering using Voce; however, for the project, I wanted to be able to use a custom ...
[2 replies] Last: Alright, thanks. I think I might try using a speech-to-text app and ha... (by Jgwman)
by Snaksa
More about OOP
 
Hi! I learnt how to work with classes, what is inheritance and what is polymorphism. Now I don't know with what to continue. Can you recommend me a good source ...
[11 replies] Last: This really is a hard topic to discuss because every book has people f... (by BHX)
standard deviation?
 
hi all, im new here; i need help about how to make a standard deviation in C++ using codes ? thanks
[3 replies] Last: Remember that in programming, you must declare things before you use t... (by Duthomhas)
November 2013 Pages: 1... 2425262728... 46
  Archived months: [oct2013] [dec2013]

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