Beginners - June 2011 (Page 18)

Declaring an Array of Strings
 
This is a really newbie question, but I can't figure out what is going wrong. I'm just trying to use a simple string array. I've boiled do the code to show wh...
[4 replies] Last: Just wait until you have to find an error because of something like th... (by Ikaron)
writing onto a file in c++
 
Hi, I could not get the coorect values printd in the file. unsigned char m_Image ; unsigned int m_ImageSize; BOOL s(INT8U); s(INT8U l) { l = someth...
[no replies]
by bob123
array of structures
 
All - I have two 2d structures (simplified version is below) and I need some advice. struct example{ int example_number; string exam...
[2 replies] Last: So, what you want is a better way of doing the following, correct? ... (by shacktar)
by Thyde
For loops within for loops, within for loops..
 
I've started working on a simple text based game, not even with any intention to finish it, just to see how far I can get. I have the player choose their Gende...
[8 replies] Last: for(; player.name!="null"&&change!="changed";) {... (by MottMan)
looking for sources
 
I'm using gcc version 4.4.5 on a Ubuntu 10.10 (Maverick-Meerkat) System. Now i'm searching for the source codes of the gcc. I found a file printf.c in /usr/shar...
[2 replies] Last: I'm running 11.04 but I assume that the layout is roughly similar: /u... (by esotera)
by Bezi
Linking to GSL from visual studio
 
I have installed GSL-1.14 from: http://wiki.rglab.org/index.php?title=Public:Installation_of_GSL_from_Windows_binary But I have problem in linking to it. Basic...
[5 replies] Last: I don't see anything obviously wrong with the code. I am sure the er... (by helios)
Understanding const
 
Given these example variations of the use of const: Class::Constructor(const type* argument) //constant pointer to a constant value ...
[6 replies] Last: Well when your working with user defined data types const takes on t... (by Mathhead200)
While Loop Choice
 
I am doing a basic Do-While loop choice program, in which I want to ask the user to decide whether to run the program again or not..I know what I am doing, but ...
[7 replies] Last: I'm pretty new myself but this is what I was using... #include <ios... (by deapee)
Accessing pointer member of a class with an object
 
class A { int *p; int a; A() { p=&a; a=10; } }; void main() { A obj; //How do i access the pointer p inside the class using the object??? }
[3 replies] Last: They don't seem backward to me... EDIT: Oh, I see what you meant, but... (by LB)
by Luke95
Splitting a deck (1,2)
 
Hey there, im trying just for fun to make a small program that is basically a deck of cards split into 4 randomly. 52 cards, no colors, just 4 suits. Im only 2 ...
[25 replies] Last: Firstly, you never tell it to print anything, so what do you expect it... (by LB)
ASCII to character
 
Hi, I wanna create program that will convert number from ASCII table to character, I've created simple program but instead of characters it's returning "pict...
[2 replies] Last: ah, lol, thanks :D (by mekkatorqu)
memory use in recursive tree algorithm
 
I've got a code where I need to create a map with key values as double (value of the f-test between two clusters, I need to calculate the residual sum of square...
[3 replies] Last: Thanks for the input. You are right, if begin is same with end this wo... (by skarakulak)
i want solve this problems ?? (1,2)
 
* write a programe that calculate and print the number of digits of any number . for example if the user types in the number 42339 , the program should print 5 ...
[33 replies] Last: good_programmer *___ = reinterpret_cast<good_programmer*>(new bad pr... (by Mathhead200)
by yost87
Passenger List help
 
First, let me say hello! I am transferring to a California State Uni this fall, my major is information technology(business) and I have just finished my first ...
[2 replies] Last: Please edit your post and put code tags [co de]around your code like... (by LB)
Converting Dollars to Coins
 
I have been working on a program that Converts Dollars to coins. In my code it has to have multiple outputs to the screen, at least one input, the use of integ...
[10 replies] Last: OK I so I received no errors or warnings after I figured out how to in... (by NewBeeBP)
Adventure game Help!
 
hello everyone, so i need some help with a project i have for class. here is the project description. First, you need to create a class called Player. T...
[1 reply] : See http://www.cplusplus.com/reference/iostream/fstream/ and http://ww... (by Athar)
Reading data from a web server
 
I want my program to open a new TCP connection to my web server and pull some "#define" lines from it. How could I go about doing this?
[5 replies] Last: I already answered your question in the first reply. Using a database ... (by Athar)
free() & delete()
 
hi what is the mean of free() & delete() operators? what is the difference between these? Please explain these with examples
[2 replies] Last: Thank you nice example... (by siva2304)
Loop Problem [Help]
 
I'm building a text based video game. The way the user interacts with the game is through menus, and entering a integer to select an option in the menus. If a...
[5 replies] Last: Because IF the user enter 's' or 'asdasd' then the variable that is a ... (by dhj0001)
outputting constantly in the same place.
 
Im new to c++. Just trying to make a program where you can rate something out of ten and the total adds until the loop ends. I was just wondering how to output...
[6 replies] Last: system("pause") is fine for just messing around with code, but there a... (by king214)
June 2011 Pages: 1... 1617181920... 41
  Archived months: [may2011] [jul2011]

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