Beginners - January 2008 (Page 3)

In the dark
 
How can I write a program where the user enters a four digit number: ex (5321) and have the answer read one digit per line. What I'm trying to say is that the p...
[12 replies] Last: Here's a recursive solution that works for numbers (not strings). It ... (by dirk)
about the NESTED IF STATEMENT,
 
#include <iostream.h> int main() { int N1, N2; cout<<"enter value for N1\n"; cin>>N1; cout<<"enter value for N2\n"; cin>>N2; if(N1>=N2)...
[1 reply] : IS THIS CORRECT NOT USING CAPSLOCK OR THE 'INSERT CODE' BUTTON!? Yo... (by AzraelUK)
by Nele
combination of getline and cin
 
Hello, When I use cin to read a line (like a number or char), then my program skips the first getline() it sees. After that, it continues as normal. I found...
[5 replies] Last: If you just want to grab a single character, then getch(); might be a ... (by AzraelUK)
Memory usage tool
 
Hi! Can anybody suggest me a tool that shows the way c++ programs allocate memory? A sort of debugger that shows me, line by line, how the allocation of m...
[1 reply] : For a list of applications which monitor memory usage, try; http://... (by muzhogg)
Set default saving directory in TC IDE
 
Hi I use Turbo C IDE.When I save my **.cpp file,every time want to set my working directory. Is there any tips to set default saving directory as my working di...
[no replies]
general c++ questions
 
I am completely new to the world of programming. I have started working my way through the tutorials here and on another site, but I still have many general qu...
[3 replies] Last: yes you should get a book, mostly because tutorials will never cover i... (by chimera)
Hello World! wont stay open
 
Hi, I'm very new at this and am atempting to follow this sites tutorial it is helping me learn but the first example th Helo World one wont stay open when i run...
[14 replies] Last: that is why it depends in the IDE that you use in codeblocks you dont ... (by ried azmel)
Pointers
 
Hi All. I have been reading a bit about pointers, from an article on this site as it happens. Im a tad bit confused. How do assign a memory address to a v...
[1 reply] : Dont worry i solved it. If i read further down the page it explains it... (by MrGuvnaUK)
by PWWWWR
Multidimensional Dynamic Memory Arrays
 
Any way to make a multi dimensional dynamic array? typedef unsigned char byte; byte * BitmapArray; void whatever() { BitmapArray = new byte ; } ...
[4 replies] Last: Exactly, that's the proper way. And remember, that you can't just del... (by mikosz)
by Masaer
dynamic memory allocation issues
 
Greetings, I am working on a problem where I want to use dynamic memory allocation to specify a mulidimentional array. I try using this code: int ...
[2 replies] Last: i think you need this #include <iostream.h> void main() { c... (by alex79roma)
object containing another object of the same class
 
Folowing code is suposed to hold any amount of information under one name. Yet it doesn't work. Can anyone tell me why? class A { public: int x; A nex...
[2 replies] Last: if you wanna make an int list next must be a pointer to an A object, n... (by alex79roma)
Cross Platform Applications (Not a n00b as such)
 
Hi All. C++ is the first real language i have decided to learn, simply because when i go University in 2008 to study Software Engineering im going to be lear...
[1 reply] : G, I am currently in College for Information Systems, and although ... (by maingeek)
Need help with "Visual C++ Express Edition"
 
I am trying to write a program that will display text on a screen. However, everytime I try to compile the code I get these messages: "'cout' : undeclared iden...
[4 replies] Last: Thanks, it worked! :) (by doorknob585)
On the right track?
 
I have just started to learn C++. Ultimately I am interested in Microcontroller programming and would appreciate some advice as to whether I am barking up the ...
[1 reply] : C code is valid C++ code, but vice versa is not always true. If you wa... (by AzraelUK)
I need help with a program !
 
The program is to print out a list of the prime numbers in the range 1-100.
[5 replies] Last: Ladies and Gentlemen, I present to you: The Sieve of Eratosthenes! #... (by AzraelUK)
Extremely new to C++ Need help..
 
Well let me start off by introducing myself , I am 17 years old my name is Ariel (IM A GUY!) ANyways .. I am completely new to C++ . I have always had a dee...
[2 replies] Last: ok thanks i just did that . (by takeoutexodus)
Trying to create ini file system
 
I'm trying to make a system that allows me to load, read, write and save ini files. Ive got this code for my ini class which loads the file and can also save...
[1 reply] : Google is your friend. http://www.google.co.uk/search?hl=en&q=c%2B%... (by AzraelUK)
Compiler.
 
Hi. I'm totally new to programing etc and according lesson on this website, it will be better if i get a compiler and write and work with examples etc. But i kn...
[3 replies] Last: Bah. I recommend Code::Blocks. (by AzraelUK)
by teodor
global class object
 
Hello! I have created a class "Car" and created a Car named brum Can i in some way make brum global so other classes (then the one i created brum in) can us...
[2 replies] Last: Thanx! Sorry I'm a bit diffuse... the third alternative is the one I... (by teodor)
please help
 
its funny but how do I put my codes in this forum?
[7 replies] Last: you welcom anytime :). (by kia)
January 2008 Pages: 12345
  Archived months: [feb2008]

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