Beginners - April 2010 (Page 21)

Creating an object to a class only using new
 
Hi all, I want to write a class which will allow to create an object only using new (Dynamic object creation) i.e., i should not be able to create a static o...
[5 replies] Last: Make all constructors private, then write a friend function that retu... (by choisum)
Using getline() or something else that will count spaces.
 
Hi, I'm obviously new to C++ (hence being in this forum) and I'm working on an enigma (encrypter/decrypter) project using arrays. I have the project almost ...
[1 reply] : #include <iostream> #include <string> #include <iomanip> using na... (by gunner13)
read text from a website
 
Hello, I have been searching the net and cannot find any basic help with my task. I simply need to read a string from a webpage, can anyone please show me ...
[no replies]
double linklist
 
Can someone please give me some examples about double linklist for add a new element, delete ,insert or sort...
[1 reply] : http://lmgtfy.com/?q=examples+double+linklist+ (by kbw)
Trouble using a .dat file
 
I have been given an assignment where I must build a function that will read data from a file sig.dat, which is just an ordinary text file with two columns of n...
[1 reply] : Put the file in the same directory as your program's executable. If yo... (by Duthomhas)
"multiple inheritance"
 
i want multiple inheritance explaination & syntax
[1 reply] : http://www.cplusplus.com/doc/tutorial/inheritance/ (by Bazzy)
why "delete" by using TIniFile
 
I am just writing a program in c++ (Borland c++ builder) In my program, i want to read from/write to an .ini file. I have some experience for using .ini file's...
[1 reply] : I already get an answer somewhere else :) for people who also had ... (by runtime error)
How do you add a string to a part of a variable name?
 
I'm working with the following piece of code. void XIClickMouse(string button, bool release) { if(!release) { // I want something like the following ...
[2 replies] Last: Bummer. (by hypocorism)
access darray data from struct
 
i am doing a program for my class to calculate loan payments. i implemented my darray, struct of variables (principal, interest, length of loan) and now i am i...
[3 replies] Last: OMYAHHH...so my mistake was.... #include "loan.h" float loan::mon... (by alexandern17)
Just curious.
 
Ok so I was wondering if it was possible to make it so if my while looop variable isn't a number any number in general it would looop back around and do it agai...
[7 replies] Last: But... I like forcing people to think! All well, I'll just insert a fe... (by Albatross)
by JoshMP
Passing vectors into a function
 
Here's what I have so far: int save(int &x, int &y, string filename, vector<string> *); //function declaration int main () { vector<string> inventor...
[1 reply] : The declaration indicates a vector pointer but you are passing the obj... (by kempofighter)
Problem with enum
 
From what I've read, an enum's value can be implicitly casted to its type. I'm trying to complete the Dungeon Crawl exercise, and the implicit casting doesn't s...
[7 replies] Last: Ohhh, of course! I had the logic backwards in my head. Changing all th... (by closed account jwC5fSEw)
How do you write structures?
 
Im new to C++ and I'm really confused about how structures work. Write a short program to create a “student” structure that will store a student’s id n...
[2 replies] Last: thanks for the help man (by TMercier)
Temporary Files... How do they work?
 
Hello. I have been given an assignment to code a program to calculate an average from a list of numbers and, off the list, determine which numbers are less tha...
[6 replies] Last: Here's the thing I told you about: http://www.cplusplus.com/forum/art... (by Duthomhas)
Binary Puzzle Solver
 
I decided to make a binary puzzle solver, it will solve a puzzle with binary input by checking every possible input combination. I input a start and end for th...
[8 replies] Last: Here's my final version: // Mini-solver.cpp : main project file. ... (by Arbruteblade)
square, square root, functions
 
I'm just a few weeks into my C++ class, so I apologize for any lack of knowledge on my part, and for what, I'm sure, is terrible code. I'm trying to create a...
[4 replies] Last: Hey dude i really like how this code is built but I have found you... (by MSkillet)
Lottery Program -still looking for someone to review latest post (1,2)
 
Hi Everyone, I have begun an assignment to create a lottery program. I am not allowed to use arrays, as we have not gone over them in class yet, and we wer...
[25 replies] Last: @majesticmixers, if you have program in this shape, think about sha... (by mtweeman)
by vulee
C++ primitive type wrapper
 
Does C++ have primitive type wrapper?
[10 replies] Last: I may add that the third alternative is to write a class wrapper yours... (by Bazzy)
Software Troubles. And more :/
 
Obviously, I'm a beginner. I've been contemplating, the last 7 months or so, on learning C++ and I'm finally getting to where it's become like a need to Google ...
[2 replies] Last: Thank you, thank you, thank you! (by DylnCox)
How to make a random spawn generator
 
i'm using SDL engine to make a game... and i need to know how to make my characters spawn using a random spawn function with in a certain radius.... if anyone c...
[2 replies] Last: thanks man (by L E G I O N)
April 2010 Pages: 1... 1920212223... 35
  Archived months: [mar2010] [may2010]

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