Beginners - September 2012 (Page 34)

by gerfy1
Just learned classes Want to practice
 
I want some practice with classes
[1 reply] : Ok...now create a class, that has variable(private) and functions(publ... (by Aceix)
Multi-character character constant and incorrect output
 
I'm attempting to write a program that will read in some assembly instructions and execute them. Right now I'm trying to put label codes from a text file into a...
[1 reply] : You have a multi-character character constant on line 142. 3 spaces b... (by cire)
If condition woes
 
I have a problem that I've tried to solve several ways, I have a feeling I am missing something small so I am going to try to see if anyone here can point me in...
[5 replies] Last: I agree but part of this challenge is to not use any strings or* STR m... (by ryancb06)
Program closes with cin.get ()
 
I wrote this program to calculate the rain fall average of 3 months. You are asked what month and then amount of rain that fell within that month. For some re...
[4 replies] Last: Could you mark this as solved? std::cin.get() will extract the las... (by DesiredNote)
Converting char array to string
 
I'm having the hardest time attempting to convert a char into a string. Here's a snippet of the code that I'm trying to work with. string Symtablelab ; c...
[2 replies] Last: This must help! but sorry for not using labels in this context... Cod... (by Aceix)
invalid operands of type int and unresolved overload function
 
Hi, I am working on a program that is to do the following: display a menu with 3 options 1) create a geometric sequence, 2) create an arithmetic sequence, and 3...
[2 replies] Last: Thank you so much! That did it :-) (by careyhrdngg)
class explanation
 
Hello, I am reading a book "C++ How to Program(8th edition)",downloaded it from The Pirate Bay. Atm I on third chapter "Introduction to Classes,Objects and St...
[2 replies] Last: thanx a lot m8 :D (by lenc222)
Determine the largest value within an array
 
So i've been doing the pancake glutony beginner exercise. And i've made the part of this code where the user enters the number of pancakes each person has eate...
[5 replies] Last: The solution you are providing is pretty genius, i'd say. I would neve... (by Terje Gundersen)
error. new types may not be defined in a return type. line 15
 
#include <cstdlib> #include <iostream> using namespace std; class abc { public: void Seta(int b); int geta(); //fucntion that acesses ...
[4 replies] Last: int geta(); //doesn't have parameter (by chipp)
by stevez
I'm Almost There, Can Someone Help Me Out, Block Letter Initial Program
 
i got the block letters down, which is SZ, however when i ran the program instead of the letters being together (one after the other) the Z is instead in the ne...
[no replies]
can somebody (PLEASE!!!) explaine this bounded buffer shared-memory solution to me
 
I was given an assignment to define a buffer with 5 memory spaces and so I'm thinking it would by something like this int myBuffer ; but what i was given fo...
[2 replies] Last: Hi Well, int myBuffer ; is just what you want (space for 5 integers... (by andywestken)
by KeithF
Coloured letters in output
 
I wrote (several years ago) a program to play Upwords (see http://en.wikipedia.org/wiki/Upwords) on the PC in Turbo Pascal. The game (an offshoot of Scrabble) a...
[12 replies] Last: If you want to work with operator<< more idiomatically, you can define... (by andywestken)
Help with doubly linked list
 
Hi! I'm having trouble with implementing the remove method of my doubly linked list. Here's my code: #pragma once #include <cassert> template<typename T...
[1 reply] : It looks like you never set the next and prev pointers to NULL (not ze... (by Lowest0ne)
i need help
 
I'm trying to write a code so that I can get used to it and not have so much trouble, but that's not working out so well. I'm just look ing at line 31 (I know t...
[4 replies] Last: WhiteWind, even if you put all the right operators in you still get an... (by Forseth11)
Updating one line, instead of new lines
 
Hey i am trying to get a single long double to update when i add something to it. It works, but not how i want it to work. I am using cout in a while loop to up...
[6 replies] Last: Cool thanks (by Yihawesome)
Easy problem just can't tell whats wrong with my formula
 
can any body tell me why celsius always equates to 0? //-| --------------------------------------------------------------- //-| Assignment ID: HWK2 //-| F...
[3 replies] Last: thanks for the help you guys. rookie mistake. (by byronflds)
Creating a more advanced calculator
 
I have this calculator #include <iostream> using namespace std; int main() { int a; int b; int sum; string userResponse; ...
[6 replies] Last: Thanks Andy :D Very simple and easy to put into my program :) And I'm ... (by DJLad16)
help plzz "file to structure"
 
hi everyone i need some help using a .txt file and allocate the values from the text to a structure : \\content of the file : " FluidMechanics Frank_Whi...
[3 replies] Last: I warn you, I have just missed the Ballmer peak. ref: http://xkcd.c... (by Stewbond)
Query about linkage.
 
Can any body plz tell me what is internal & external linkage?
[1 reply] : If to say shortly then a name has linkage when it denotes the same ent... (by vlad from moscow)
by rarko
Tasks for c + +
 
Write a program in which the sentence is entered from the keyboard, and her words printed in reverse order.
[3 replies] Last: #!perl @w; do { $_ = <STDIN>; $b = !s/([.?!]).*/$1/; unshift( @w,... (by Mathhead200)
September 2012 Pages: 1... 3233343536... 62
  Archived months: [aug2012] [oct2012]

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