Beginners - April 2009 (Page 9)

How do I write a loop for this?
 
If I have a random number and if it is even divide it by 7 and if its odd multiply it by 4 and it keeps doing this untill it is equal to 0. int a = 111 i...
[4 replies] Last: for(int n = RANDOM, counter = 0; n != 0; ++counter) { if(n%2) { ... (by eker676)
by patra
how to send variabel between two or more dialog in visual c++
 
hi all.. anyone knows how to send variabel between two or more dialog? step bye step to connecting dialogs? help me..
[2 replies] Last: can you elaborate?? (by writetonsharma)
by GANTOR
Source Code
 
Hey, I have a question. I have some explained source code that I would love to post in the console C++ section, and I am not sure how. I have already emailed th...
[1 reply] : whats the problem,,, just paste it.. (by writetonsharma)
How to watch a static
 
the other day while i'm using vc to watch the value of a static,it's Error: symbol "i2" not found #include<iostream> using namespace std; int main() { ...
[5 replies] Last: vc++ 6.0 dont show static varibles.. make them global during debugging... (by writetonsharma)
Macros
 
I want to learn how to use macros with C++, I don't mean the macros where you use #define I mean the ones where you can perform repetitive tasks on your comput...
[6 replies] Last: Thanks Bazzy. (by Dissimulation)
reading data files
 
Could someone tell me what I am doing wrong? This is an old program I did and I just learned how to us data files but i can't get this ro read the data file. ....
[1 reply] : try while loops when you extract the data from your files. that'll wor... (by satchmo05)
by gogo
Problem i can't find
 
my program doesn't work can anyone help me what's my the problem #include<iostream> using namespace std; class Cnumbers{ public: Cnumbers(); v...
[6 replies] Last: The code does not fix your indexing problems... for example: ... (by closed account z05DSL3A)
by Husker
Find Array Item Recursively
 
I'm having trouble with my latest assignment. The purpose is to return the index of the first item with more than one entry in the array using recursion (direc...
[4 replies] Last: Got it, thanks. const int IndexMatch(const int arr , const int s... (by Husker)
how do I add this together?
 
I have a loop which outputs the ASCII values but how do I write another loop which adds those values together? string name; int a; ...
[15 replies] Last: ahhhh okay thank you (by takumi05)
Query about returning references
 
Here's a piece of code that'll help explain my confusion: #include <iostream> using namespace std; class Person { private: int Age; public: ...
[2 replies] Last: thanks kbw... makes a little more sense to me now ;) cheers :) (by arun1390)
by bobsta
segmentation fault when looping over 2D object array within constructor
 
Hi, I have been using C++ for a couple of months now (after many years programming in FORTRAN) and have started my first serious bit of programming (i.e. n...
[1 reply] : A few points first. Point::Point():x(0),y(0),z(0),r(0){ ... (by kbw)
C++ Software
 
I've just started the tutorials on the website, but having problems running the very first program. This is possibly due to using Borland C++ 5.01 from when I w...
[3 replies] Last: Thanks guys, great help. (by dancinhomer)
Question with Arrays
 
Just wandering guys how do u produce a map using Arrays... like a game play map such as Connect 4. If u need more information on what type of map... PM plz
[1 reply] : You could create a 2 dimensional array. The language supports that di... (by kbw)
by g0dwyn
Copying Files with C library
 
Hi all, Is there a function that can copy the contents pointed to by one FILE* to another? If not, how would you suggest I implement this? I'm using the ...
[1 reply] : http://cplusplus.com/reference/clibrary/cstdio/putc/ That link cont... (by kempofighter)
Creating Classes
 
Hey guys... Wondering if anyone will assist me in creating a class.. In this class i need to create two Players... Thnx Would be a pleasure if u rea...
[1 reply] : Uhh, need a tad bit more info then that. Anyways, this should get you... (by daeiros)
Tricky class problem with game
 
I'm tring to work out some method of creating an inventory system for a text game I'm making. This is my first C++ project that I'm using to teach myself. It's ...
[3 replies] Last: Well I think I figured it out. I guess the problem I was having was th... (by daeiros)
Run Program? (1,2)
 
How would I go about running a file like firefox or another program I created from a program i write? Is there code for this I can read about or someone can exp...
[22 replies] Last: Like this? #include <iostream> #include <windows.h> using namesp... (by Mashed Pwntato)
File Deletion Project
 
Hey all. I'm a newbie at C++ and hope that you guys can guide me along. I recently got assgined a project and is needed to code it in C++, which I have almost z...
[2 replies] Last: Hi helios. Thanks for the information. Can you explain what the Win... (by burger87)
by abcd
a game
 
this is my code #include < iostream> using namespace std; int main() { int s = 0; char letter; char b,i,r,d; for ( int z = 0; z < 5; ...
[7 replies] Last: The only winning move is not to play. WELL SAID! (by firedraco)
input spacing revisited
 
Earlier I posted the topic input spacing, and I've been trying to implement it with a delimiter but cannot figure it out. As I debug and step through the progra...
[4 replies] Last: NEVER MIND I FIXED IT! WOOHOO thanks for the help :-) (by shakethatmoney)
April 2009 Pages: 1... 7891011... 28
  Archived months: [mar2009] [may2009]

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