Beginners - June 2012 (Page 38)

Entering a vehicle class gives an error.
 
Hello cplusplus forum, can someone point me in the right direction so the vehicle class accepts the options, such as Bus. When entering a...
[2 replies] Last: so, you should give the users proper instructions, for example: #inc... (by chipp)
by Citis
return from the main
 
I want to see the result of a c programme (the value a of the "return a;" command of the "main" function). How can I do it in the terminal program of a Linux op...
[4 replies] Last: Is there a way to get some other program's Return Value? Like, I have ... (by S G H)
What coding can removes the negative integers from integers??
 
can anyone suggest?
[8 replies] Last: Your code is incorrect because the value of class member item is undef... (by vlad from moscow)
strings with atoi
 
I've been trying to read from a file into a string. Then using atoi add up the ascii values of the characters in the string. The "atoi" has been giving me val...
[4 replies] Last: Thank you guys. I read through the string and added the (int) of the i... (by edithsong)
How do I open a .exe file from a form
 
How do you make a form open a .exe file that is somewhere else in the computer? I know this is a dumb question, but this is my first year programing and I'...
[3 replies] Last: Never mind I figured it out. (by RandomStuff)
by jorz
pointer to a array<unsigned char>^
 
Hi all, c++ I have a buffer array<unsigned char>^ buffer = gcnew array<unsigned char>(11); I keep my data here to send to the serial port I would like...
[4 replies] Last: Thanks codeMonkey, are only array's managed variables or is it prefer... (by jorz)
dynamically allocating space for array of c strings
 
I have 2 classes, class CreateData and class SaveData . CreateData does just that - it creates and uses a linked list with data std::string str_val; . S...
[3 replies] Last: thanks to both of you for your replies! However, one persistent pro... (by atropos)
Trouble with my functions
 
Here's the code I'm working on. I've having problems with the last function; if you run the program the last function prints to screen all zeros. I'm sure my pa...
[4 replies] Last: Wow you guys are fast, thanks for insight. (by codebug)
by XzqtN
Loop Structure
 
Hi, I am quite new to C++ programming and this is my first thread, for an assignment I must code a program to count off 10 9 8 7.....1 blast off, using a loopin...
[6 replies] Last: Sorry had a problem with a storm last night lost power, no I am not ju... (by XzqtN)
by uriel
compiler error: conversion to non-scalar type requested
 
I'm a beginning C++ programmer and try as I might, I cannot figure out the following error. I made a class called Fighter and I have two functions that have sim...
[1 reply] : nevermind, in the function prototype I missed the after enemy. ho... (by uriel)
I have a rather simple problem, because I suck at C++
 
I have no idea what is wrong... Anyone mind reposting on how to fix this because I suck at C++ and want to have 2 things going on at once in my passworded file-...
[3 replies] Last: I wanted the ifstream to work if the else was triggered. Then possi... (by Moschops)
Error C2065 & C2955
 
#include "iterator.h" #include "genlib.h" #include <string> using namespace std; template <typename ElemType> Iterator<ElemType>::Iterator() { sta...
[13 replies] Last: As I said you should all definitions of your class to place into the s... (by vlad from moscow)
by Unknow
another question
 
hi guys i have a question sure everyone know pro evolution soccer 2012 then anyone know what is the program (scripting language)which make it
[6 replies] Last: THANKS (by Unknow)
Help with Hashing
 
Hey guys, Thank you for the many times you guys have helped me. I've spent an hour or so on this. The Hash value is being set to 0 regardless of what value...
[4 replies] Last: Any trouble with strings/special cases? Any string that doesn't loo... (by Moschops)
vector.size() unexpected behavior
 
I am getting some very strange behavior from the vector.size() function. I created a new class and within that class created a vector object as follows. clas...
[12 replies] Last: I changed the structure of the program somewhat and did not run into a... (by vckngs7)
why the output keep saying the queue is full when i inserting the values???where is the error???
 
#include<iostream> using namespace std; #define size 20 class number { private: int array ; int head,tail,count,item; public: number(); ~number(...
[1 reply] : Let consider the function bool number::full() { return bool (count... (by vlad from moscow)
by dkl65
Please help with getline()!
 
Hello! I am working on a simple C++ program to make an MLA work citer. Here is my current code: #include <iostream> #include <string> #define constrain(amt...
[3 replies] Last: You have endls within the loop, so every time it loops it's going to m... (by Lowest0ne)
Converting string to double, but extra numbers are added
 
Hi, I'm trying to convert a string to a double. The string should be in this format: "0.04". However, when I convert from a string to a double using atof, th...
[7 replies] Last: Volatile Pulse, The program that I'm writing reads from a csv file us... (by daven25)
Projects
 
Hello again, so yesterday I did a post asking for some help to learn basics and I actually think Im starting to get a hang on it. Im looking for some easy begi...
[2 replies] Last: A simple thing to start with is an address book. Start with input and ... (by Volatile Pulse)
Moving Files wont work?
 
I have this simple code here, wanting to move this file, eventually im going to make a program that will automatically organize my files. but for some reason...
[2 replies] Last: If you cannot tell apart a function declaration from a function call, ... (by Athar)
June 2012 Pages: 1... 3637383940... 51
  Archived months: [may2012] [jul2012]

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