Beginners - October 2011 (Page 43)

Program only works sometimes...
 
Hello, this is my first post so here goes! I am working on a program that scrambles the letters of each word of a sentence in the word is 4 or more letters. Bu...
[3 replies] Last: The second part of your message scares me... I have done it using a c... (by jackzuck)
Conditional statement help
 
So i'm having a bit of trouble with long conditional statements containing more than one operator. For example what would be the equivalent of the following con...
[7 replies] Last: Ah right, sorry I hadn't quite understood what you were asking at the ... (by TheMeerkat)
Checking for a char input to be only a letter
 
When asking for a char from the user, how can I check to make sure it is a letter and then re-ask them to input it if needed
[1 reply] : @Shadoninja Here's how I'm doing it, while getting the input if the u... (by whitenite1)
by Gui
Hello
 
Hello, I'm new to this site and wanted to say hi. I'm new to C++ and I'm taking a class right now. I may need some help on occasion. Thx in advance.
[2 replies] Last: welcome ,welcome (by Dinesh subedi)
constructor help!
 
struct BinaryNode { Comparable element; BinaryNode *left; BinaryNode *right; BinaryNode(const comparable & theElement, BinaryNode *lt, BinaryNode *rt) : elemen...
[2 replies] Last: i see! thank you very much!!!!! (by liondancer)
by squik
can someone help me out w a line of code?
 
#include <cstdlib> #include <iostream> #include <cmath> double A; //Amount; double R; // Rate; double T; //Time; double Total; using namespace std; int...
[7 replies] Last: ^ does not mean exponentation in C++. It means something else. You n... (by Disch)
error C2784. getline 3 arguments expected - 2 provided
 
I'm making a quiz program with vectors and I keep running into trouble. I keep getting getline errors in my program. #include <iostream> #include <string>...
[5 replies] Last: I'm using stringstream because I read on this site's tutorial to use t... (by GRex2595)
by Nybble
Reading own process memory
 
BOOL WINAPI ReadProcessMemory( __in HANDLE hProcess, __in LPCVOID lpBaseAddress, __out LPVOID lpBuffer, __in SIZE_T nSize, __out SIZE_T ...
[3 replies] Last: I have this other question: How come when I try to read the memory fr... (by Nybble)
String Class Problems
 
Hi, I'm currently working on making a string class and there are a few parts I'm stuck on. 1. I overloaded my >> operator to take in a string of characters...
[no replies]
Help with sorting elements from lowest to highest
 
hi guys, I need help sorting out the elements from lowest to highest. But, it seems that it sorts it out from highest to lowest. const unsigned a = {...
[4 replies] Last: Perhaps you should have used a different operator? You know, the one t... (by Albatross)
Factorial Operator
 
Hi, I'm having problems figuring out how to add the factorial operator "!" to make n!=n(n-1)(n-2)..etc. Any help is appreciated.
[6 replies] Last: I have the same book. That author is Bjarne Stroustrup so he knows wh... (by nathan10)
Comparing chars to strings
 
I am currently working on a simple hangman program and I need to be able to compare the letter guessed to the letters in the word. For simplicity lets just say...
[3 replies] Last: What code would I need to use to go about checking the string for the ... (by Shadoninja)
C++ project dynamic array of string creation
 
Hey Guys, I am running into a couple of problems with the code below. I need to dynamically create an array of strings which contain the name of classes. Bel...
[2 replies] Last: http://www.cplusplus.com/doc/tutorial/dynamic/ or http://www.fredosa... (by BrokenSilenceDev)
by aasaa
local var
 
hey, #include<iostream> class Counter { private: int val; public: Counter() { val = 0; } int get_val() const { return val; } ...
[3 replies] Last: No, the local variable no longer exists. You are not reading data fro... (by Disch)
by aasaa
local variable
 
Question: I have the Class Point: class Point { private: int x, y; public: ....... Point addition(Poin& p1) { int x1, y1; x1 = this->x + p1.get...
[5 replies] Last: Correct. Returning a reference or pointer to a local object is illegal... (by helios)
[ask] lamport bakery's critical code
 
Dear the Admin and all members. Could you please help me to write this algorithm into a complete code? 1 var choosing: shared array[0..n-1] of boolean; ...
[no replies]
Issue with Fuction
 
solved
[3 replies] Last: Thank you very much! I understood what was wrong. (by Carreter)
Invalid conversion from 'const char' to 'char'....?
 
Hello. I get the error message Invalid conversion from 'const char' to 'char' when I try to run this program. #include <iostream> #include <iomanip> usin...
[2 replies] Last: Oh, thanks. I will try it. Regarding the variable: Yeah it seemed st... (by shooninjo)
by Floeps
Extending templated class, with self referential templated class
 
Hi cplusplus forum, I am trying to translate the following java to c++, I'm still a bit new to C++ so I don't understand all the syntax yet. interface A<K, ...
[2 replies] Last: Thank you, that was it. I've added the code tags in the original post ... (by Floeps)
What looping am i going to use?
 
Hello.. I'ts hard for me to this. I don't know what kind of looping am i going to use. Make and run a program that will ask a password, the program will not ...
[5 replies] Last: do while is pretty much the same as a while with the exception tha... (by Stewbond)
October 2011 Pages: 1... 4142434445... 59
  Archived months: [sep2011] [nov2011]

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