Beginners - March 2010 (Page 33)

Die rolller game assistance
 
How do I add another Function and make this game loop I want to use a while loop //Nicholas Crowe // Die Roller // Demonstrates generating random numbers ...
[1 reply] : i dont get it if you want to make the game loop just add a while loop ... (by Cshark)
Unordered Array Lists
 
I am looking for some opinions on this. Any help on efficiency and pointers is greatly valued. #ifndef H_arrayListType #define H_arrayListType #inclu...
[8 replies] Last: If you have get functions that just return value do they automaticall... (by Disch)
Functions
 
I'm trying to to make a program that displays other functions that displays other functions. To do that I have to get a function to return strings and ints at t...
[3 replies] Last: Ok thanks! :) (by wander95)
Dealing with Data files - Introduction needed
 
Hello. If you have seen my posts before, I am a beginner programmer in college. We are dealing with data files and the week that we started, I had to have sur...
[2 replies] Last: I always thought of this as the containers section: http://www.cplusp... (by firedraco)
pointer problem
 
i have a program here. it is currently working the only problem is it gives the wrong answer #include <cstdlib> #include <iostream> #include <stdio.h> ...
[4 replies] Last: can you show the revised code, and please use code tags. (by gcampton)
Pointers and Dynamic Arrays
 
I have been working on a homework problem for my C++ class and have been having trouble. The problem asks to create a program with a dynamically allocated array...
[4 replies] Last: Ah, of course! Thank you. (by aaronde)
by b33p
inFile txt saving
 
Hi guys, I have to write a program that asks for the month year and total income for a month and it will find the sales rate with the equation s=7/1.06 i dont k...
[2 replies] Last: #include <iostream> #include <fstream> using namespace std; ... (by Computergeek01)
by Cshark
Whats wrong with this code?(only 28 lines)
 
Im trying to write a program that opens a text file(with stuff already written on it) and then changes all of its characters to uppercase but its not working p...
[2 replies] Last: Thanks everyone for all your help but a friend of mine told me of anot... (by Cshark)
by Wylbur
Compiling Multiple Code Files
 
Hi all; I'm new to building CLR Console apps, so I have a very simple issue that I'm sure that most of you will know how to resolve. So far, I've had a...
[2 replies] Last: Hi Hamsterman; Then there is no other way? What about an objec... (by Wylbur)
by wasabi
while ( a >> b) ?
 
I am debugging a friend's code and don't understand the following statement: while( (istringstream) ss >> (int) numOfElems ) std::cout<< "..numOfElem =...
[2 replies] Last: Btw, you probably shouldn't include the types like that, since as it i... (by firedraco)
by Tomdon
trouble with for loop and ASCII encryption; just about done
 
So I have all this code and just one more thing to figure out. I have to input text. Then text is output as written, in all lower, all upper and then in ASCII...
[3 replies] Last: Indentation please. (by firedraco)
double outputs in while
 
//On-the-fly variable definitions #include <iostream> using namespace std; int main() { { //begin new scope int q = 0; //C requires definitions /...
[7 replies] Last: thaks for your patience and response guys :) (by foobarbaz)
by dh2010
Find text in string...
 
Hi, I want to find a string which should have been added before in a while procedure: CString strLocalText; strLocalText = [22 CHarge/Serie]; CString...
[12 replies] Last: QFT = Quoted For Truth (by Zhuge)
by DBarzo
[stringstream] How to insert elements at beginning
 
Hi, I have a stringstream and I need to add something to the beginning of it. Is possible doing it without using another string? void foo(){ string...
[3 replies] Last: Thanks a lot!! Daniele. (by DBarzo)
Referencing of a value
 
I am new to C++ and have some doubts regarding referencing of values. I am giving an example below int i=10; int &j=i; What is meant by the above stmt? A...
[1 reply] : In this case & has nothing to do with & that returns an address. int& ... (by hamsterman)
ofstream infinite loop
 
i ran into a bit of a problem, and after reading the tutorials on streams, i couldn't figure out how to stop this infinite loop. fout << height << radius_in...
[2 replies] Last: you are writing to the file while you want to read from it! Use opera... (by dionisis)
Manipulating data members?
 
I'm trying to design a class called "Weight" which is made up of a double datatype (for the magnitude of weight) and a char for the unit. I've written out the h...
[7 replies] Last: getunit() should also return a reference to the char or you would end ... (by Warnis)
#include "Matrix.h" gives an error but "matrix.cpp" doesn't?
 
hello, this is my first post so forgive me if i did anything wrong. so i tried to create a simple templated class to store a 2d dynamic array. all the code i...
[6 replies] Last: I've added a link to a previous thread on preinstantiated templates th... (by kbw)
Console RPG problem
 
Hi , i am tring to do a console RPG using Visual C++. Here is my source code #include <iostream> #include <cmath> #include <cstdlib> using namespace st...
[3 replies] Last: No it's not. Those strings are doing nothing, your indentation is all ... (by chrisname)
Using Char For Menu Selection
 
Hi everyone. I'm basically making a "logger" program that takes data input by the user and creates a log of it. The program displays a menu to the user like s...
[8 replies] Last: Thanks guys. The double quotes/single quotes were my initial error. ... (by Kingtrunks)
March 2010 Pages: 1... 31323334
  Archived months: [feb2010] [apr2010]

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