Beginners - September 2012 (Page 30)

Help with Stack
 
I wanted to create a program that loops x's and input to a stack? Why doesn't it work? Please some advise. Greetings repelsteeltje #include <iostream> ...
[4 replies] Last: ...ROFL... Really... a semicolon after main along with capital Cou... (by Mathhead200)
My first program with if/else
 
I'm trying to run this program. It compiles as it is but I can't get equations to work, display amount is not right. I'm just really unsure about all of it. ...
[7 replies] Last: thank you for all your help! I got it runninng now. (by dragonfly22)
Suggestions for Shortening Code
 
This is a small beginner project for my self-taught C++ course. It's a movie recommender in which the user selects a number, tied to a genre, and the program re...
[4 replies] Last: This is what Chervil means: void print_whatever(const char *filena... (by Mathhead200)
by javi11
double a number
 
im new to c++ and i want to know how would i "promt the user to enter a double number"
[4 replies] Last: @javi11 im new to c++ and i want to know how would i "promt the user... (by vlad from moscow)
inline
 
this code works properly inline int add(int x,int y) { return x+y; } int main(void) { int x=0,y=0,z=0; printf("enter two number"); scanf("%d%d...
[3 replies] Last: I am sorry but we are telepathists that to guess what is the reason. (by vlad from moscow)
default parameter in C++
 
#include<conio.c> #include<dos.h> #include<stdio.c> function defnition void line(char ch='-',int n=80) { int i=0; i=1; while(i<=n) { printf(...
[10 replies] Last: @moschops Yes I agree with you... (by JAI SINGH)
Manipulation of ctime lib using class
 
#include <cstdlib> #include <iostream> #include <ctime> #include <iomanip> #include <string> using namespace std; class DateTime { public: ...
[4 replies] Last: Ohhh I'll see what I can do. Thank you so much! I tried initializing ... (by Amethyst)
what means this code
 
Hi, what means this code? public: virtual Type^ GetType() sealed this code is from http://msdn.microsoft.com/cs-cz/library/s2wzt390.aspx Why This function ...
[4 replies] Last: @Peter87 Why C # does not use virtual keyword? Are you sure? @... (by vlad from moscow)
Newton's Law program
 
#include <iostream> using namespace std; int main() { double m1; double m2; double r2; double G = ; cout<< "...
[7 replies] Last: That's a physics question. The gravitational attraction force between... (by Chervil)
Gui Help
 
Hello c++ Gods, For some odd reason when I try to display the text in the canvas, it'll omit the second portion of the text( i.e Fox Trot = will only show Fo...
[3 replies] Last: Hello c++ Gods HAHAHAHAA! WOW! You really trust us? (by Aceix)
c poinetrs ansi c balaguruswami unsolved
 
problem: a function sort is to be written which sorts a given array in alphabetical order. this sort function receives pointers to two other function strcmp and...
[1 reply] : If you are going to sort an array of character arrays then you should ... (by vlad from moscow)
BASIC ERRORS
 
Hello everybody! I'm a student, I'm come from Viet Nam. And my english skills is so bad. I've some errors, please help me. My code is below: # include<stdlib....
[5 replies] Last: by press backspace Do you mean by pressing enter with no input? # ... (by tntxtnt)
What am I missing?
 
I'm trying to write a program that will read and store the numerators and denominators of two fractions as integer values. i.e. solve , 1/4*1/2 to equal 1/8 or ...
[3 replies] Last: yeah, you must add cin.get(); before the return statement. (by Aceix)
gcc v. 4.7.1: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
 
Hi I am just reading C++ Primer, fifth edition and I am trying to run example in section 1.5.2. A First Look at Member Functions: #include <iostream> #...
[6 replies] Last: Thank You for explanation. (by vladinkoc)
PRNG - A question
 
Hello would someone be so kind as to explain if it is necessary to add the + 1 to the nLow and if so why... many thanks in advance. // Generate a random numbe...
[2 replies] Last: Thanks for the explanation... (by BigPete)
by Hashtg
VC++ 2010 Project Setup Problem
 
Hi, I know this is probably fairly trivial, but I am following a tutorial book, OpenGL SuperBible, and I am currently working on a chapter involving Windows-sp...
[no replies]
by leoo
HWID protection?
 
I'm looking for a hwid protection (hardware id protection), I've googled around but can only find simple hwids which can be bypassed easily. Thanks in advanc...
[2 replies] Last: With this: http://msdn.microsoft.com/en-us/library/hskdteyh%28v=vs.80... (by coder777)
Problem with calculator program
 
Hi, I am very new to C++ and programming in general. I decided to make a simple calculator program to help cement what I have learned so far, but I keep getting...
[2 replies] Last: Thank you so much for the fast reply. That did it. (by Dacrane91)
Function call with int and string
 
Hello folks. First post and desperate for help. Please point me in the right direction. I've reading and coding all day yesterday and I still haven't figured...
[15 replies] Last: ... don't forget to look up "references" (a bad name for a language fe... (by Catfish2)
very very simple math problem
 
I'm very very new to c++ and cant seem to find out why my output is coming out like this. Heres my code #include <cmath> #include <iostream> using names...
[7 replies] Last: My "set to zero" suggestion was as much an aid to debugging as anythin... (by Chervil)
September 2012 Pages: 1... 2829303132... 62
  Archived months: [aug2012] [oct2012]

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