Beginners - September 2010 (Page 4)

Using functions for a text based RPG
 
Okay so after having asked this in the General C++ forum they told me i should ask it here because of my limited knowledge, (http://cplusplus.com/forum/general/...
[5 replies] Last: And about jumping around in code, you can use the goto(); function bu... (by firedraco)
C++ Different output to console
 
Hello, I am pretty new to c++ but I have had some previous programming experience. My question it how do you output like programs like testDisk do where the who...
[2 replies] Last: Thank you so much. I had been searching for days but got no where. (by kendall15)
question about "return value"
 
switch (sub){ case'Math': case'math': memsbjt = "math'; return 0; can i ommit the break; statement if i use return "any value"; st...
[4 replies] Last: Thanks. (by Analyzer)
forward decleration error
 
this is my header file: #ifndef PLAYER_H #define PLAYER_H /*************** Forward Declerations ****************/ class Turn; class Current; class Wa...
[2 replies] Last: there's no difference between class and struct. The problem is that yo... (by Bazzy)
Question about menus
 
I am looking to start making a simple text-based console game to test out my c++ skills. One thing that I would like to learn off the bat is how to create a ...
[4 replies] Last: I don't think there's much here but I have bookmarked this: http://www... (by MottMan)
how to return return char array from stack
 
Hi everbody! I have a code that reads a txt file with words separated by space and reorders them in alphabetical order. i push each of the words in an array ...
[1 reply] : Pop method in your class allocates the array local to the function. Th... (by naivnomore)
by wasabi
Pseudo-coding an N-iterative loop
 
I am currently needing to create a loop that deals with N iterators. The real purpose is to create a series of names which will then be used to open files with ...
[3 replies] Last: Many thanks naivnomore, that worked like a charm. I had to make a few ... (by wasabi)
Issue with an Input file
 
I can't seem to get my program to read in data from an input file correctly. Here's my code: #include <iostream> #include <iomanip> #include <string> #i...
[2 replies] Last: My compiler's error message looks like this: HW#5(4151) malloc: **... (by suntzu626)
How to display Sprite/image in c++?
 
What are the options to load the image from C++ for a small 2d game?
[8 replies] Last: SFML (from what I've skimmed) is very user friendly (as far as libs go... (by MottMan)
by wtf
include guard problem
 
I just switched from codeblocks to c-free 3.5 as it is the only option available. I had to fix a few errors warnings in order to get code that had previously c...
[13 replies] Last: Notepad++ is a program that extends functionality of Notepad with synt... (by Kyon)
by tonnot
How to compose a string from ascii values
 
I have : int a=47 int b=49 I want to have a string with some line like this (it does not compile) string C=char(a)+"."+char(c); Neither I can do: ...
[2 replies] Last: Thank you very much (by tonnot)
by outsy
program compiling but crashing.
 
Hi, I have a problem with this program, I have no clue what's wrong with it. The program has to create an arrays A[2*n], B and C . The user has to input n and...
[4 replies] Last: Thanks alot, the problem was very small. Thanks for making me learn us... (by outsy)
by Jake94
Random Alphabet
 
Hey guys, I made a program that can choose random numbers, and write them to a text file. I was wondering how you could assign each number to a letter to be ...
[6 replies] Last: Where is the "output bellow"? Here is a "hint": for(char ch = 'a';... (by Fresh Grass)
person
 
I have constructed the person.cpp while the main.cpp and person.h were given to me. My person.cpp is does not produce the exact results i was looking for. Can s...
[6 replies] Last: Ok i got it :D i fixed the code above and now it works :D thank you fo... (by swalton)
by Nay
path for .h files
 
I have downloaded a LEMON (C++) library and want to use it in my dev C program. I dont know hoiw to include it in my program. How to write an include statement ...
[2 replies] Last: You can set up your compiler to have c:\my documents\file and folders... (by Bazzy)
by juvan
Not working as expected
 
Well, I'm done bashing my head with this one because I've literally gone over it 10 times if not more and I can't seem to find anything wrong with it, so firstl...
[1 reply] : You're a) only testing a single point (the top left one) of the object... (by Athar)
Breaks
 
I am writing a programm for school and in the program i want to make it so it will skip lines of programm but then come back to it later does anyone know how th...
[2 replies] Last: Use either functions, loops or (but I highly recommend to not use it) ... (by Kyon)
by tonnot
About my own namespace and the information of my methods
 
I have my own namespace, for example nms I'm using QT creator When I write nms:: QT offers me a list with a lot of methods, but I only have one in 'myfile.h...
[1 reply] : Nope. Almost completely inappropriate. (by helios)
by chi
May I ask what to do since, thanks!
 
This assignment is a C++ Program. The aim is calculate whether a company has profit or loss in a month. In order to achieve this aim, the followings are some ...
[19 replies] Last: L B (327) Sep 28, 2010 at 8:19pm Congratualtions! Thanks!!!... (by chi)
My first program :D
 
*EDIT* okay. I feel stupid. Sorry. Just looking through my post, realized that the problem is probably in "loopcounter++", being directly after the second loo...
[6 replies] Last: Those are classic :P (by MottMan)
September 2010 Pages: 123456... 32
  Archived months: [aug2010] [oct2010]

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