Beginners - October 2012 (Page 72)

by Ch1156
Really weird problem
 
Ok so i have a program that has you enter numbers and you get a score, i am testing it along the way...
[2 replies] Last: Every time you use the >> operator the program is waiting for you to h... (by Lowest0ne)
by kassik
returning a 2d array from a function
 
Hi every body I am very beginner and I am trying to write a simple code. I want to call a function d...
[1 reply] : > I want to call a function doing a few works in a 2d array and then r... (by JLBorges)
variable of template class
 
Have template <int n> class TCombGenerate { ... viod generate(); ... }; Want declare va...
[5 replies] Last: Oh sorry. I didn't pay attention to that the template argument was not... (by Peter87)
by Owain
dynamic_cast, static_cast and reintrepret_cast
 
Hello. My problem is not with what these operators do, but why they exist. I cant really think of a ...
[13 replies] Last: AFAIK the only time they perform a reinterpret_cast is when doing a s... (by clanmjc)
help pleaseee!
 
i am working on a program for a project where we are given a txt file containing a country, its num...
[5 replies] Last: You are welcome & thank you (by vichu8888)
by Aceix
Meaning of stack, buffer and heap.
 
As the question states, can I know what the heap, buffer and stack are? and what do they do? And wh...
[11 replies] Last: Thank you very much. Problem solved. Aceix. (by Aceix)
c++ help
 
Ok I have been given an assignment in which I must write a program which asks for the number of stud...
[3 replies] Last: thank you. and sorry about that, I'm new to this website. (by jlmckelvey91)
is it codeblocks that doesnt like string? cant debug my code untill i know its not a compiler bug
 
So i finished studying buckys awsome youtube classes, ive understood the entire dev hq tutorial as...
[3 replies] Last: It's not a compiler bug. That's generally the last place to look for p... (by Chervil)
Nightmare working with array
 
Hello everyone, I am new to C++ and I am taking an online class in programming C++ and I am complet...
[2 replies] Last: Thank you for your reply. I noticed the change with total. If you ta... (by geowalsh3)
C++ prime number program
 
I've been at this for a while and i can't find an answer, i need the program to display prime when a...
[1 reply] : I hate giving this answer, but please - search it here or in google. I... (by tath)
If its not nth power of 2, break
 
Hello why doesnt the line with pow(k, 2) work: if its not nth power of 2, break... it doesnt break?...
[2 replies] Last: 1. make sure you have inserted math header file 2. pow doesnt work fo... (by vichu8888)
by den213
Random numbers, Display the highest, second highest, and the lowest number.
 
#include <iostream> #include <time.h> using namespace std; int main() { const int num = 10; int r...
[2 replies] Last: it still displays the duplicate. ex set. 15 12 15 13 8 6 4 5 9 10 it... (by den213)
Help with If Statements
 
#include <iostream> using namespace std; int computeTax (float income,int percent); int mai...
[3 replies] Last: thank you guys very much! all of it helped and hopefully ill avoid it ... (by mckizzlealmond)
template curiosity
 
Just for curiosity: Is there a way to avoid this rarely annoying case? template<typename T> in...
[1 reply] : Perhaps the simplest way is to use two type parameters for the templat... (by JLBorges)
Read and write to a text file
 
read from data.txt file and write to results.txt in c drive. here is the data.txt file (didn't pr...
[4 replies] Last: i can't specifically extract the numbers from data.txt instead of cre... (by s123456)
Getting program to exit with user input
 
I have to exit the program when the user inputs e, but for some reason it continues. I am just not s...
[1 reply] : case 'E': cout << "E - Exit Program" << endl << endl; ... (by TheJJJunk)
How to check a string for digits
 
I need to check a string and make sure it only has digits. I know how to check certain positions ins...
[3 replies] Last: oh well i tried. (by Aramil of Elixia)
ad hoc scanner issues, unable to determine the problem
 
So far i have this code that is suppose to be an ad hoc scanner, im not sure where exactly the prob...
[1 reply] : In checkForDecimal: I don't think you want to do the x--. In checkFor... (by histrungalot)
While & do while loop
 
I've been trying to figure out what is going on within these two loops? Assuming all variables were ...
[1 reply] : What is the question? If you just want to know the values for the vari... (by maeriden)
Returning Errors
 
Hello everyone I am new to writing code and when I try to compile my code I keep getting back multip...
[2 replies] Last: Ok, thank you maeriden for the tips and the help! (by twitticus)
October 2012 Pages: 1... 7071727374... 84
  Archived months: [sep2012] [nov2012]

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