Beginners - April 2009 (Page 6)

by Joe101
return C++ arrays
 
I read that C++ arrays can't be returned by functions (as opposed to vectors)...anyone able to explain why?
[2 replies] Last: Hy Joe101! What Disch said is corect, but remember that there is no w... (by andrei c)
by Claymz
pointers to objects
 
why do we need them? and what does this mean: Monster* checkRandomEncounter(); its located inside the other class, and Monster is another class.....
[4 replies] Last: Yes you need pointers to objects. Polymorphism works thru pointers to... (by kbw)
by kishor
What's wrong with my program [ is it wrong with pointer/ logic ]
 
# include<iostream.h> # include<conio.h> void main() { char name ; char *p; int i; cout<<"Enter your full address.: "; cin.getline(name,80); i=...
[3 replies] Last: Oh sorry, i ddn't realise that you wanted the '.' - if you change your... (by mcleano)
I can't make programs
 
Hi everybody, i am a beginner, and programms which i write, then i type "compile" then "run" it says 1 error . All programs which i write i get it from the ...
[4 replies] Last: Hy! Is the source code containing: #include<conio.h> clrscr... (by andrei c)
by murva
arguments sent to constructor
 
Hello, I am trying to understand a code, there is a class sending to constructor the following: class Course {private: int CourseID; char* CourseName; ...
[5 replies] Last: Thanks, you helped me a lot (by murva)
How would you create a map?
 
So how would I go about creating a simple little map. Maybe output a simple box consiting of @ signs or something. Any help?
[3 replies] Last: is there a way to read it from a .txt file? (by GunnDawg09)
by Tripic
Vector Problem Debug assertion failed line779
 
ok the error says debug assertion failed vector subscript out of range line 779. Im nw to trying to use vectors so this is probably a simple and stupid question...
[2 replies] Last: std::vectors don't grow automatically. Use std::vector::resize() to..... (by helios)
by lebspy
to all c++ experts i need u
 
hi all, c++ experts. i have a project for my programming I course. the project has to be submitted after 5 days. plz i need ur urgent help coz i didnt know to ...
[5 replies] Last: Maybe you should head back into high school and re-do one of your math... (by Mythios)
Randomness
 
Hi all, I am writing a program that uses a function that generates a random boolean value using a simple rand() function, seeded with the system time: bool ...
[8 replies] Last: Sweet, thanks for everything! (by SpencerC)
Getting Input in Various Forms from Complex Input File
 
Hi, I am having a problem utilizing the various input commands to get the input I desire. My input file looks like this: South Central 22 3 Player...
[1 reply] : Place special terminators between words or check for a certain amount ... (by eker676)
Downloading Files
 
How do I download files with Dev-C++? Thanks in advance!
[1 reply] : http://curl.haxx.se/ I suggest you use the command line tool combin... (by helios)
Dynamic Array Question
 
Hi, my question to you all is how do I store values into a dynamic array?! If I have this chunk of code: while (break_apart >> word) { front = &word...
[13 replies] Last: For an introduction to vectors, refer to the c++ reference on this ver... (by guestgulkan)
Last Project
 
#include <iostream>//required to perform C++ stream I/O #include <iomanip>//required to manipulate C++ I/O Stream using namespace std;//for accessing C++ Li...
[2 replies] Last: Uninitialized variable means that you are using a variable that has no... (by eker676)
Pointer and global variable frustration
 
I'm to create an application that reads words from a given input file. The application counts the words in the file, then reads them and stores them in Word obj...
[1 reply] : Post some code with a specific question. (by eker676)
by Ek0
Printing an array and more advanced questions
 
Hello, INTRO Im new to C++ and fairly new to programming in general. I figured a good exercise for me to become familiar with C++'s functionality and s...
[7 replies] Last: I revised, and then revised again. I meant to say noted....Not that it... (by closed account S6k9GNh0)
What am I missing here?
 
First off, I am very new to C++, just started a week ago. I'm running into trouble with one of my classes. Here are my classes (I believe the problem is in my H...
[7 replies] Last: You can also overload another constructor with no parameters but you n... (by Bazzy)
How to convert a string into hexadecimal??
 
Hello!!! I just want to make a program in C++ which can convert an input string into hexadecimal code. Please help me out with the logic.. Thanks.
[1 reply] : sprintf(string,"%02x",character); (by helios)
by JacKal
UTF-8 in DEV-C++
 
Hi everybody! I would really appreciate any help on this. I have googled for an hour without a result. Few different hints but no one understandable enough. ...
[1 reply] : Do not cross-post. (by helios)
by um0123
Triangle source code problem.
 
i went to the source code page, and downloaded the .zip file for the triangle program. its one of the programs in the first box on the source code page, but whe...
[8 replies] Last: I can extract it using Vista just by dragging the file on another fold... (by Bazzy)
Keycodes
 
I have been using the keybd_event to make some programs and I have been able to use keys that aren't A-9 by doing this keybd_event( VK_NUMLOCK, ...
[1 reply] : You should use the ASCII values (by Bazzy)
April 2009 Pages: 1... 45678... 28
  Archived months: [mar2009] [may2009]

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