Beginners - September 2009

Problem with exceptions
 
Hi guys. I am trying to make a simple program to divide two in putted numbers, to try and learn h...
[8 replies] Last: I missed that ! (by anilpanicker)
by Darqam
Itoa (integer & String)
 
Hello, I am aware that there are other subjects on this mater but they all involve "char" and wha...
[3 replies] Last: Thanks allot! (by Darqam)
Stuck while trying to create loop while checking for palindrome.
 
I am writing a program that will check whether or not specific text input is a palindrome or not. I...
[3 replies] Last: I'm sorry, I haven't really messed with header files much. What exa... (by Brinkley15)
Stuck in an infinite do while loop
 
i'm trying to do my third project for c++ and i'm stuck in an infinite loop where the values of v an...
[4 replies] Last: i set a_max and s_max to zero in order to record the largest value for... (by celebratedsummer)
generating random values
 
Hello guys!!! I'm having problems generating random values.. actually i did that with rand() ...
[5 replies] Last: function rand returns an integer in range from 0 to RAND_MAX. to make ... (by hamsterman)
Why is my array mostly zeros?
 
I want to flip my input vertically, but for some reason, my output is mostly zeros. Note: 17 7 in i...
[2 replies] Last: Aha! Thank you very much kind sir. I must admit I am horrid at memory ... (by IamScaredOfTrees)
Get rid of repeated outputs
 
I need to write a program solving all Pythagorean triples where 1<c<500 I have my program written b...
[2 replies] Last: thank you for your time. I actually figured it out a couple of minutes... (by Grizzletor)
by joshky
vector of strings
 
ok, i'm using a vector of strings to store a word list loaded from a file. The program works perfect...
[6 replies] Last: Generally though use of angle brackets in #includes denotes a "system"... (by jsmith)
by wasabi
Dynamic memory, copy constructors, deconstructors and return values
 
I have, over the last few weeks developed a code for my internship that allows for efficient data-ga...
[14 replies] Last: In general, if you need a user-defined copy constructor, you need a u... (by jsmith)
Confused as to indentifying parts of a loop
 
Last <- 0; Current <-1; while (Current < 100) do (print the value assigned to Current; Temp <...
[3 replies] Last: Well I would say the body of the loop is from "while (Current < 100)" ... (by mcleano)
Why is this not acceptable?
 
bool get_player_turn() const { p1_turn ? return true : return false; } Question in the title....
[8 replies] Last: 1. It's not C. 2. p1_turn is bool. (by Chewbob)
by Mazer
need program
 
Hi, I created a "program" on cmd but i want to make interface and something more on that i think ...
[no replies]
passing array from function back to main function
 
hi i am wondering that is it possible to pass an array from a function back to the main function i...
[5 replies] Last: thanks guys now i got it i knew where is my mistakes already its a... (by loveless)
beginner C++ question????
 
In C++, can all operators be redefined for user-defined data types?
[1 reply] : Most, but not all. The Wikipedia article is pretty good http://en.wik... (by Duthomhas)
by wtf
What is the actual RNG that my compiler uses for the rand() function?
 
I have not been able to find the documentation for it. It always begins with this sequence when I d...
[4 replies] Last: Moreover, the RNG that comes in the standard library is underpowered a... (by Duthomhas)
algebra calculator
 
i dont know how to do this but, i need some thing (calculator) where the user types in the whole pro...
[5 replies] Last: It works but y is it so slow??? code: #include <std_lib_fa... (by beginner at programming)
Employee Class. 3 files
 
Ok guys I need some assistance :) --- I am very much stuck on this Employee class, it's for scho...
[7 replies] Last: Would my constructor be: void Employee::setsalary( int salary, string... (by ashley19)
by n1312
Looping technique.
 
Hello I am not sure as to how to approach this problem, The inventor of chess wanted his reward and...
[4 replies] Last: @anilpanicker: I was recently yelled at for posting a solution, you sh... (by turbozedd)
Can't figure out how to get percentage
 
My homework assignment is as follows: write a program that asks the user how many trials they wou...
[4 replies] Last: Oh my... thank you for the help. I really appreciate it :) (by beginnerprog8755)
Getting the two digits from a double digit
 
int double_digit, first_digit, second_digit. I ask the user to enter a value for "double_digit." Use...
[2 replies] Last: Thanks chew, it works... (by foncused)
September 2009 Pages: 123... 23
  Archived months: [aug2009] [oct2009]

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