Beginners - July 2010 (Page 24)

pointers to modify objects in array?
 
I'm trying to create a blackjack game, and so I need to let the user draw further cards. I'm having a problem with this: Cards* drawCards(int numCards, Ca...
[1 reply] : When you pass the array in, it is actually modifying the array outside... (by Zhuge)
Pointers to Pointers (XCode 3.0)
 
Hello all, I am newbie in C++ and just started my reviving my C++ (did many years back) again. I've just written a code to understand pointers to pointers, w...
[5 replies] Last: Oh fine !!! Just modified my code: c=&b; //Eventually now c... (by panky245)
by Ditab1
Averaging Based on Internal Calculation
 
Hi, hoping someone can point me on the right road here... I'm working on a program that reads data from a .in file. The data is for a payroll program (I kno...
[2 replies] Last: I figured it out. Added: float findaverage(float netpay , int ... (by Ditab1)
how to convert html file to txt file?
 
I want to add font colour ,txt file can't do it . and html can.so I wantto convert it. can anbody help?
[3 replies] Last: I will create a new html file. Do you mean recreate the original mark... (by helios)
by EEmsu
Counting Characters?
 
Hello, I am working on a program that counts the total number of characters in a string without using the strlen (string) function. When I run the program it j...
[12 replies] Last: And look at your loop condition. (by Athar)
Finding the mode in an array
 
Good evening everyone, I was trying to write a function that returns the number that appears most frequently. Although the code seems to work, it is not working...
[no replies]
Finding, and editing memory values
 
Hi, I've been trying to find out how one approaches finding certain values in the memory, as well as editing them. I've landed on this forum because I've seen p...
[no replies]
Getting Started in Game Design
 
Hi everyone. I was wondering if there was anyone here that has programed games before or has worked in the indrustry, and if so may I ask them a few questions. ...
[6 replies] Last: I'm sorry I should have been clearer. I have been programming for a fe... (by strychnine213)
question in functions
 
hello everyone i'm trying to use fuunvtions in ly simple programe this code is very simple, it's just ask a user to choose which programme he want whther ...
[4 replies] Last: OK i see thanks :) (by empror9)
Displaying patters using nested loop
 
hi.. I am trying to display this following set of patterns (a) (b) (c) (d) * ********** *****...
[2 replies] Last: This looks kind of fun and I have a minute to kill. Note that this is... (by moorecm)
by c0y454
Copy/delete a file with API
 
HI, im trying to write a program that copies and/or deletes any file and, if it copies, pastes it somewhere else. How do I do that with the API functions? ...
[2 replies] Last: Thanks anyway :) (by c0y454)
Search for string in file and get following string
 
Hey all. I was wondering how I can search for a string in a text file and get it and the following word after it. Here's an example of the text file: ...
[14 replies] Last: I think I got it! The error I was getting was from another file tha... (by SacredFootballLB)
by b52
Problem with for() loops.
 
I don't understand why this code prints 0 to 24 twice? Thanks for any help. <code> #include <iostream> #include <vector> int main() { vector<float>...
[4 replies] Last: I was in the process of eliminating using namespace std; but missed ... (by b52)
by Mreza
At the first step
 
Hi! My name is reza. I've just written my "hello world" program. It didn't work! My code was: ----- #include <iostream.h> int main () { cout<<"Hello wo...
[6 replies] Last: One more thing: DON'T use system("PAUSE"); http://cplusplus.co... (by cnoeval)
Audio
 
#include <SDL.h> #include "SimpleAudio.h" #include <iostream> int main() { Uint8 *keystate = SDL_GetKeyState(NULL); PlaySound("C:\\Documents and Settings...
[5 replies] Last: Is it me, or you're mixing calls of two different libraries? That will... (by helios)
Trubble with VCpp express 2010
 
Hello i just started trying to learn Cpp but already in my start i get some realy frustrating errors when im only at the basic Hello World and Variables tutoria...
[3 replies] Last: ah i just wrote wrong here on using namespace.. im gona look upp t... (by Frostwyrm)
How to do repetiton by using while loops
 
I keep try in many way also cannot make the repetition work.can any one show me about this question?Thanks.
[15 replies] Last: It sounds like you're just very confused about the most basic concepts... (by cnoeval)
Day of Year Program
 
I am have to create a program for my class. The instructions are to allow a user to input an integer and display the month and day that corresponds to the ente...
[8 replies] Last: You must reserve space for all static class variables outside of the c... (by binarybob350)
Do...While Loops
 
I have been working on this program for a few days. It is a simple calculator in a do...while loop. The loop is supposed to run and continuously compute the t...
[9 replies] Last: the quotes around '0' is making 0 ASCII character 0 which equals 0x30 ... (by binarybob350)
by drdeo
Converting a string to a binary byte
 
Hi! I'm totally new to this forum and pretty new at c/c++ too. My problem right now is that I have a file with a byte written in each row (example: 01011001 in...
[6 replies] Last: The following for loop will start at the end of the string (notice i... (by binarybob350)
July 2010 Pages: 1... 2223242526... 31
  Archived months: [jun2010] [aug2010]

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