Beginners - August 2011 (Page 29)

Error: crosses initialization of 'int choice' (1,2)
 
Additionally I recieve the error: jump to case label. (using the code::blocks IDE) Here is the code where I think the error is in, I know it is probably ...
[21 replies] Last: oh, well that's a drag... I've about given up on this failed thing. I'... (by Xhalite)
by Alfie
Need help With output!
 
hello I have a map<string, int> and i need to right it so the list is perfect, same width betwin name and numbers on every line. The code: for(map<...
[1 reply] : Use setw() to set the width of the first column too! Iterate through ... (by webJose)
Vector of Deques
 
I still don't have this set up right. I'm trying to simulate five checkout lines in a grocery store. This is what I did, but it isn't quite right: vecto...
[3 replies] Last: Not really the variable names. I was just using that as a way to make... (by joatmon)
How to make WinApp of WinConsoleApp code?
 
Hi, I've wrote easy windows console app on MS Visual 2008.. this programm consists of easy operators and code.. with if and so on.. it looks like (its not the...
[6 replies] Last: I just had a look for a good tutorial web site, but I couldn't find on... (by andywestken)
User Defined Functions
 
I have watched several YouTube videos on user defined functions however I still don't have a solid understanding of it. When would you create a user defined fun...
[3 replies] Last: YouTube videos are a terrible resource to learn programming from.. p... (by closed account DSLq5Di1)
Point to lie on a circle. Help!
 
Please, would you help me with this program: #include <iostream> #include <cmath> using namespace std; void main() { cout << "x = "; double x; ci...
[3 replies] Last: Thank you! :) (by pluscplus)
Syntax for declaring a function that uses function pointers
 
Hey all, I'm new to c++ and function pointers. I think I have all my function pointers defined correctly, but I can't find out how to declare a function (con...
[6 replies] Last: I am aware that some people like to use void, but I don't get why "voi... (by andywestken)
help - how to find int from keyboard
 
// input >> abcd234. output>> total= 9 #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv ) { char c; c='a'; ...
[2 replies] Last: thank you :P (by orhan kanat)
Problems
 
I'm having problems with this code: if ( choice== 1 ) printf( "--------------------------------------------------------------------------------\n"); ...
[3 replies] Last: Just so you know, if statements without braces ({}) can only handle ... (by closed account zb0S216C)
Vector Iterator Problem
 
Having trouble iterating through a vector in a function: int main() { ... vector<int> customer; vector<int> switch_tolerance; ... } ...
[8 replies] Last: Thanks for all the help! (by joatmon)
User Interface First??
 
Okay gotta question. I'm learning about developing the user interface of a program now. But my question is: When generating the metadata of the entire program, ...
[5 replies] Last: Sorry, for clearance, metadata was referring to the overall brainsto... (by AppDevTrainee)
what does this mean???
 
WHAT DO YOU MEAN BY A LABEL(DEFINATION)AND ITS EXAMPLE..............
[1 reply] : See this piece of documentation by IBM: http://publib.boulder.ibm.com/... (by closed account zb0S216C)
by sf123
Help me understand! pls?
 
Hi! I am not asking for you to build the program but can you explain to me what does this mean? I mean what does it want to have in the C++? Derive the f...
[10 replies] Last: In would of thought add 1 to zero_count is easy to convert to math... (by andywestken)
Card combination problem [updated at 8th floor]
 
#include <iostream> #include <vector> using namespace std; public class Card { public: Card(string value, string suit); string value,suit; };...
[7 replies] Last: thanks guys. now i move on to shuffle function and display all void... (by huhumola)
Input files, delimiters, and strings with spaces
 
I can't find information of using a text file as input. The file contains data types of string with spaces, string with spaces, int, and double. I am using ...
[8 replies] Last: @ andywestken : I think you'd do as much good by contributing an Arti... (by Computergeek01)
Convert int to string...
 
Why doesn't this work..I saw it online: /***** Convert Int to String *****/ std::string convertInt(int number) { stringstream ss;//create a stringstre...
[1 reply] : Ah nevermind..needed the sstream header. Starting to learn how to read... (by businessman332211)
Program run infinite itself while getting data
 
Hi Guys, I'm encountering some problem with program I write here. The program is able compiled without error. But when I try to call "Add Function" and execu...
[1 reply] : I do not think this is the problem, but inside that if statement block... (by kevinkjt2000)
A doubt about friendship
 
I was making a very simple text based RPG. I decided to split the code into various files because that would make managing the code easier (hopefully). Now ...
[2 replies] Last: I had initially intended there to be a single kind of enemy (Named Ene... (by Nisheeth)
Declaring Arrays in Nested Classes
 
Hello there, I am a student, and am pretty new to C++. I recently began developing a cricket simulator game using Dev-C++ (for those who are unaware, cricket i...
[8 replies] Last: Well, a multi-dimensional array would allow you to handle all the team... (by andywestken)
by Baso
Problem with Pointer simulation
 
I have just made a program to simulate the pointers, and I have problem with it Here is the program. #pragma once #include<iostream> using namespace st...
[2 replies] Last: Thank you very much (andywestken), that solved the problem. Thanks... (by Baso)
August 2011 Pages: 1... 2728293031... 39
  Archived months: [jul2011] [sep2011]

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