General C++ Programming - March 2009 (Page 4)

by Lfred
Greetings & Peculiar input data problem.
 
Hello, I'm new to the forum my name is _Lfred. I am here to ask for an opinion on a problem from a more advanced coder then I am. I will tell you what the c...
[3 replies] Last: Thank you, I noticed that too while looking over this program and Chan... (by Lfred)
How to create files..
 
HELLO EVERYBODY, I AM A NEW MEMBER, I NEED A LITTLE HELP, HOW CAN I WRITE A PROGRAM THAT READS A NAME FROM KEYBOARD AND CREATES A TEXT FILE OF THAT N...
[2 replies] Last: thanks a lot (by willscpp)
by h0d3
need tips in creating my program
 
Hi everyone!!!! Im a beginner in c++!!! I want to make a program that displays a 3 number combinations from the inputted numbers.... Example: 3 4 5 3 4 1 di...
[no replies]
diff between "CDummy&" and "CDummy &param"
 
Hi, I have seen the tutorial of Classes II of C++. What is the difference between "CDummy&" and "CDummy &param" In what situation should I use which. Tha...
[7 replies] Last: Internally it is passed by pointer, but the idea is that references al... (by jsmith)
Access a Class's Member Information
 
Hey guys, I was wondering if there is any function or way to get a list of members, in string or char format, that belong to a certain class type and later o...
[1 reply] : No, not without parsing the source file containing the declaration. I... (by jsmith)
by dkaip
a container with pointers on stucts
 
Hello all I have a serious problem. I have constuct the Rl struct with containers and strings. I whant to make a new constructor with holding Rl pointers, not...
[5 replies] Last: Thank's The right syntax is typedef vector<rR*> rRl; ... and ... (by dkaip)
Dynamic Nested For Loops
 
I'm working on a project right now where I'm wanting to generate every possible string up to N characters in length. (It's for a useful purpose, not just some r...
[6 replies] Last: I am aware of this. Dealing with this many strings proposes an interes... (by GenTiradentes)
How to make error messages?
 
Lets say I made a square root function and I want an error message if the input is negative. How... EDIT: This is just an example. I want to make errors for ...
[6 replies] Last: Oh yes; it wouldn't implicitly cast to an unsigned... Thanks. (by seymore15074)
functions within a class
 
class A { int a public: get_a(); set_a(); } The sizeof(A) = 4 bytes. Where are the functions stored in a class? Why does the sizeof(A) d...
[4 replies] Last: study this and you will understand: http://en.wikipedia.org/wiki/C... (by writetonsharma)
Finding String's Neighbors By Up To 2 Differing Positions
 
Hi all, Given a seed string, I want to find its neighbors with at most differ in 2 positions. All the digits involve in generating string are only four (i.e....
[no replies]
by jimctu
Structs Problem
 
Hello everyone... I´ve got a problem that is bugging me for a while... and how I´m not an experient C programer, I don´t know whats wrong with this... any...
[3 replies] Last: thx ppl... it solved the problem ^^ i´ve spent a long time trying ... (by jimctu)
linking C object file to C++ object file on linux
 
Hi, this is my problem: I have two file in C,one of this have .c extenction and I have compile it with gcc to obtain an object file .This file explain what fun...
[10 replies] Last: sorry! the previous solution is wrong! this is the right version: t... (by biancalatte)
by sadi
only one semicolon!!!
 
good day all, I'm a new member and I have a c++ challenge and need your help the problem is write a complete c++ program that read number and print it...
[10 replies] Last: hahahahaha... great minds on work.. :) (by writetonsharma)
keep getting errors/warnings
 
here is the source code #include <iostream> #include <string> #include <vector> #include <algorithm> #include <cmath> using namespace std; inline void...
[2 replies] Last: yeah that worked. thanks. my bad (by tlittle)
Heap corruption
 
I'm getting what seems to be a somewhat common error, that my heap has been corrupted. Unfortunately, I'm getting this on calling a new, which I assume means t...
[5 replies] Last: why dont you post your code so that somecan can find the error in it?? (by writetonsharma)
using vectors
 
can someone explain the vector to me. I am writing a project where you input a number and if the random number guess the number you put in you win. I have to ...
[2 replies] Last: Vectors are similar to arrays except their size does not have to be de... (by buffbill)
by cipok
atm
 
can anyone help to create the automatic taller machine(atm) prgrm just using the include<stdio.h> only,,,??
[2 replies] Last: stdio.h is the c-standard-io. It contains all the functions you need f... (by eker676)
default parameters in constructor?
 
this code won't compile. it gives a linking error because i'm calling a function that doesn't exist but i thought with the default parameters i should be able t...
[3 replies] Last: thanks for the info (by gen1mx6)
getline() 'Wrapper Function'
 
I have to construct a getline() function and I need it to be a wrapper function for the getline() function that already exists. Here's what i have so far... ...
[no replies]
inorder traversal function of binary tree
 
As part of an assignment I have been asked to implement an in order traversal function for a binary search tree that permits visit to delete the node visited. D...
[5 replies] Last: I have to display the data of each node before deleting the individual... (by jpmcfly)
March 2009 Pages: 123456... 21
  Archived months: [feb2009] [apr2009]

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