Beginners - March 2009 (Page 15)

Generating random numbers
 
I'm currently working on a program where the user and computer take turns guessing a number. I'm completely stumped on how to generate a random number lower or...
[2 replies] Last: #include <cstdlib> // for rand #include <ctime> // for time ...... (by Disch)
by berge
mutator functions
 
Hi! I'm supposed to create a class named Appointment. I have given the private member functions, All data should be private, and reached by get- and set-functio...
[4 replies] Last: Btw, these: void set(string newTime); //makes it possible to change ... (by firedraco)
any suggestions
 
so i want to get into security programming. i have about a year and a half of C++ experience(some vb 6 and python too) and i have started a very basic security ...
[9 replies] Last: good analogy.lol all right thanks (by kyle11778)
by berge
safely delete of a vector element
 
Hi! My vector: vector<Appointment> appointments; If I wish to delete an element in this vector, how can I do that. I know that it is possible to use: ap...
[2 replies] Last: It's safe only insofar as the vector contains at least appointmentInde... (by jsmith)
by jhelo
looping
 
excuse me, but.. how will i return to the main page. like for example, i finished adding books in the add page, how will i go back to the main page without term...
[2 replies] Last: i already make my code to loop, now, the only problem is how to disp... (by jhelo)
beginner problem with class
 
Hi, I'm writing a simple program with seperate header, implimintation, and main files. I understand the concept of objects and classes. I just think I don't ...
[2 replies] Last: Thanks Return 0. That was so simple I feel kinda dumb now. So I guess ... (by iansane)
copy constructor
 
I have a class: class myclass { int *p; public: myclass(int i){ p=new int; *p=i; } myclass(const myclass &obj) { p=new int; *p=*o...
[4 replies] Last: *obj.p is the right syntax. He's dereferencing 'p', not 'obj'. IE:... (by Disch)
find specific data in binary file
 
#include <iostream> #include <conio.h> #include <iomanip> #include <fstream> using namespace std; struct det { char state ; char city ; int postcod...
[no replies]
by Duncan
Purpose of Documentation Comment?
 
I recently discovered that my IDE highlights "documentation comments" differely from regular comments //Normal Comment ///Documentation Comment I can't...
[3 replies] Last: Read the (online, probably) literature for your IDE... It probably ... (by seymore15074)
problem compiling
 
I keep getting errors in my program and I am stuck. Would someone please help? below is my code and the intstructions for the problem
[8 replies] Last: your welcome (by jaydr)
where's my work space?
 
I have an answer to a Module 5 Mastery Check (Herb Schildt's C++: A Beginner's Guide) that the executable uses a command-line argument. I am using Visual C++...
[2 replies] Last: Thank you again, Bazzy. Once I got up to Documents and Settings/Own... (by erandalln)
using constructors and arrays
 
Hello everybody, I'm getting crazy with this errors I'm getting I'm trying to built a program for a soda machine Its probably something wrong in the way I'm ...
[11 replies] Last: Program is running now! thanks for all the help (by rabidmachine9)
by andros
Function on lhs of assignment
 
Hello, I'm rather new to c++ and today, while trying to find out the best way to write a log handling class, I've stumbled upon theese two code snippets from...
[1 reply] : It returns a reference to a variable that can be assigned a value. (by jsmith)
namespace
 
I'm confused regarding regarding 'using namespace std;' Can you help me get the concept?? Also, I wanted 2 print the following pattern using setw() manipulato...
[2 replies] Last: In other words, you can write your own library with it's own object na... (by seymore15074)
Repositioning the pointer to the input file
 
Would you please take a look to the lines 22, 23, 24. I must issue all those 3 instructions in order to be able to read the file again from its beginning. If...
[2 replies] Last: Helios, Thanks! I did not know about the function Clear(). Also, fo... (by paolopiace)
warning C4244: '=' : 'double' to 'float'
 
AVSValue Spline(AVSValue args, void*, IScriptEnvironment* env ) { float *xa, *ya, *y2a; int n; float x,y; int i; bool cubic; AVSValue coordin...
[2 replies] Last: Thank you for the reply. I had some help from the msdn forum and was s... (by browni ri)
Pointer Arithmetic
 
My Problem: I am trying to created a program that will give me the average, median and mode of new dynamically allocated array. So far I have gotten the avera...
[4 replies] Last: Wow, somehow I didnt even see those... I thought it was an example of... (by Scubatoad)
problem in nested loop (C programming)
 
how can i make a code that(the output) appear like these(in nested looping section): Please enter an integer>5 1 121 12321 1234321 ...
[9 replies] Last: Congrats @ your solution. =) This new problem is more or less the ... (by Disch)
Good progrraming books
 
Hey can you suggest some good programming books in C++ for beginners. I'm currently following Robert Lafore. Any other you find good???
[no replies]
by jhelo
delete structure
 
i'm a newbie in this structure function, string functions, and i have this project of mine due on tuesday, march 17. Our professor wants us to have a book infor...
[6 replies] Last: no reply?? pls help.. T.T (by jhelo)
March 2009 Pages: 1... 1314151617... 29
  Archived months: [feb2009] [apr2009]

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