51,593 Topics

Member Avatar for
Member Avatar for l-o-s-t

If I have this struct : [code] typedef struct node { int key; struct node *leftp; struct node *rightp; } *Treep; [/code] and I have this function [code] int blah (Treep *tree); [/code] How can I pass the tree right pointer again into the blah function, I tried using blah …

Member Avatar for l-o-s-t
0
259
Member Avatar for mydadisadentist

i just started using c++ and ive been using this website alot. its been alot of use. thanks all you guys I saw a thread today about using the dos prompt to shut windows down. i had a idea to include this in a program. the command simple enough its …

Member Avatar for WolfPack
0
235
Member Avatar for comwizz

Hello everyone, I wanted help on the exact use of copy constructors as I still havent got the idea of how they are used. If possible also I would like some info about them. Also I wished some guidance on which books to refer after studying linked lists in C. …

Member Avatar for comwizz
0
230
Member Avatar for monique83

Objective: to determine the MFLOPS for floating point addition, subtraction, multiplication and division on two different machines. I Write a very simple C++ program: 1. Create three float arrays A, B and C with 500000000 elements 2. Call a random number generator to fill up A and B with numbers. …

Member Avatar for monique83
0
131
Member Avatar for JoBe

Hello ladies and gents, I'm trying to include a copy constructor and an assignement operator into this code wich has two separate classes, the idea is to copy the last name that was entered. Problem is, I can't seem to grasp how to get acces to the copy constructor in …

Member Avatar for Lerner
0
340
Member Avatar for mr_god_god

(I am a beginner, please don't be mean if I make any serious mistakes.) :sad: The purpose of this program is to cout the largest and the second largest number among 10 numbers. Although I have thought for serveral times, I still don't get what is the problem. [PHP] #include<iostream> …

Member Avatar for mr_god_god
0
318
Member Avatar for akshayabc

Hello friends, I want your help for choosing a good topic for developing a C++ project(mini project). This project should take around 20-25 hours of coding time. Actually i am interested in compilers so i am thinking of developing a parser for a 'subset of C'. But i dont know …

0
89
Member Avatar for Geek-Master

I've been reading through a beginning chapter on classes and I have come upon this below: class Critter { public: [B]Critter(const string& name = ""): m_Name(name) {}[/B] ... }; I was wondering why they wrote the constructor this way. If anyone can point me to some info, I would be …

Member Avatar for WolfPack
0
3K
Member Avatar for stupidenator

Hi everyone, I am having a problem with a problem I am trying to write. It seems to compile ok, but then when I run it, I get a Segmentation Fault. i am using arrays and I am attempting to return a pointer to a char array and i am …

Member Avatar for stupidenator
0
122
Member Avatar for moznmar

I've been trying to get this code to build, but I keep receiving the following errors: week5Crook.obj : error LNK2019: unresolved external symbol "void __cdecl decrypt(char *)" (?decrypt@@YAXPAD@Z) referenced in function _main week5Crook.obj : error LNK2019: unresolved external symbol "void __cdecl encrypt(char *)" (?encrypt@@YAXPAD@Z) referenced in function _main Debug/week5Crook.exe : …

Member Avatar for moznmar
0
152
Member Avatar for caseg

i cant figure out how to make a program that solves the sum of integers between two input numbers. i can only use do/while, if/else,c++/C--. the basic stuff. EX: Starting number:25 Ending number:47 The sum of the integers between 25 and 47 is 828. ____________________________________________________ Please post quickly i need …

Member Avatar for Narue
0
197
Member Avatar for hongfan

Hello! I'm just starting to learn C++ for school, and our first assignment is creating a series of numbers according to the following rule: [code]current value next value 1 none - the sequence terminates even current / 2 odd 3*current + 1[/code] I have to compute for the initial values …

Member Avatar for beuls
0
220
Member Avatar for aminura

Hey! I just wanted to know that if there is any builtin function in c++ that converts a decimal number into binary number??

Member Avatar for Narue
0
317
Member Avatar for server_crash

I have a program that reads from a file, but for some reason it never reaches the end of the file or something, because the loop never ends. I put only 2 lines of text in the file, and a loop like this still ran infinite: [code] while (! my_file.eof()) …

Member Avatar for iamthwee
0
5K
Member Avatar for ilikerps

I have an edit box, with its settings as "multiline", "want return", and "vertical scroll." All I want to do is to have new lines between each output line. However, I have tried "\n", which did not work. So, is there a way to make them have line breaks?

Member Avatar for freespace
0
543
Member Avatar for mybrainhurts

I have made this program which im really certain would work, it compiles with no errors, but runs continuously after getting the name of the output file. The program takes a loads of names each with 12 numbers, gets the name using getline, and puts the numbers into an array. …

Member Avatar for Narue
0
156
Member Avatar for akshayabc

Hello friends, I want your help for choosing a good topic for developing a C++ project(mini project). This project should take around 20-25 hours of coding time. Actually i am interested in compilers so i am thinking of developing a parser for C. But i dont know how i can …

Member Avatar for Narue
0
174
Member Avatar for ilikerps

Hello. I am trying to convert my chat client from a C++ program that runs in DOS into one that runs in a Windows Dialog. I am using Visual C++. However, I am already getting a second error (please understand that there have been many before this that I [I]have[/I] …

Member Avatar for ilikerps
0
214
Member Avatar for rculley1970

I am using Visual C++ 6.0 and am getting, "error C2447: missing function header (old-style formal list?)" The code is: #include <stdafx.h> { int main (); printf("Fuck off Asshole.\n You suck. \n Bit Me Dickhead\n"); return 0 } I cannot figure out what is going wrong.

Member Avatar for iamthwee
0
108
Member Avatar for Geek-Master

Does anyone know of a college in Georgia that offers a complete online BS in Game Development or Computer Science?

Member Avatar for Geek-Master
0
88
Member Avatar for zenoen

here is my problem main.c:17: error: parse error before '{' token main.c:27: error: parse error before string constant [CODE]#include <stdio.h> #include <c.h> #include <math.h> #include <ctype.h> #include <time.h> #include <stdlib.h> #include <string.h> #define kmll 200 #define Kzll 0 int myint,any,go; int main (int argc, const char * argv[]) { (myint, …

Member Avatar for zenoen
0
171
Member Avatar for pblilman09

Hello all, i am a 14 year old computer tech. I know what your thinking, yeah right some little kiddie unplugged his hard drive and plugged it back in and considers himself a tech. HA. your all wrong. i have revived a gateway that my neighbors were throwing out because …

0
65
Member Avatar for lakshmisoni

I have a problem in conveting binary to decimal and decimal to binary conversions and i have the due date today

Member Avatar for Dani
0
121
Member Avatar for wigster84

I have encountered a couple of problems: a. I need to convert a string of numbers seperated by commas into integers. I have had help before today and know how to convert one string (thread was posted today). But I dont know how to do a simpler version of it …

Member Avatar for wigster84
0
325
Member Avatar for ilikerps

Hello. I am trying to convert my chat client from a C++ program that runs in DOS into one that runs in a Windows Dialog. I am using Visual C++. However, I am already getting a strange error: [CODE]#include <string>[/CODE] That links without error, but when I try to use …

Member Avatar for ilikerps
0
188
Member Avatar for NosKills

I have somewhat of a weird problem which probably is caused by my compiler, but when I include <fstream> some of it's members cannot be found back in the std namespace. When i use <fstream.h> these methods are availabe. The methods are ios::nocreate and ios::noreplace, anyone who has had the …

Member Avatar for NosKills
0
332
Member Avatar for winbatch

Is there a way in C++ to deal with this? (a way to force that a boolean is strictly a boolean and cannot be converted to another numerical type?) line 42: Error: Overloading ambiguity between "MultiLog::writeLog(const long&)" and "MultiLog::writeLog(const bool&)"

Member Avatar for winbatch
0
1K
Member Avatar for davalend
Member Avatar for vegaseat

Does anybody know the limit of nested for loops in C or C++? If there is a limit, what is the reason?

Member Avatar for Narue
0
213
Member Avatar for JoBe

Hello ladies and gents, I was trying to write a small example of a pointer to a two dimensional array like this after looking up how to write the syntax at Narue's Et.Conf. world like this: [code] #include <iostream> #include <iomanip> void array(short (*myArray)[4][4]); using namespace std; int main() { …

Member Avatar for Narue
0
137
Member Avatar for wigster84

Ok, here is a program....im getting an error, "est.cpp(1) : fatal error C1083: Cannot open include file: 'stream.h': No such file or directory Error executing cl.exe." I know something is wrong with the header...and i think it cannot read the cout (in bold). Im trying to run this in (Microsoft) …

Member Avatar for wigster84
0
132
Member Avatar for wigster84

Hi, Im a beginner at C++...trying to learn it on my own. Im doing an exercise that i cant seem to tackle. I have to read a set of numbers from a word file seperated by commas and convert them to integers. For example, say my set was [B]48909, 3453, …

Member Avatar for wigster84
0
252
Member Avatar for Virii

Is the book "Wiley's Teach yourself C++" a useful book or is it one of the sub-par books? Also, for a beginner is the book Object-Oriented Programming In C++ by Robert LaFore a good book to get and read?

Member Avatar for Rashakil Fol
1
201
Member Avatar for kisvirag21

I need to write a program that generates 10 problems, in which 2 randomly genorated numbers are chosen to multiply together, and the user has to input the correct answer for each program, and i have store the answers, and check to see if they are correct. I could just …

Member Avatar for iamthwee
0
153
Member Avatar for beuls

Dear programmers, I have developed a graphics program in C++ to draw various shapes using virtual functions. While using the Turbo C compiler the graphics.h file is included to use the graphics functions. But now i am using the Visual C++ (MS Visual Studio 6.0) compiler. so what modifications shd …

Member Avatar for beuls
0
225
Member Avatar for complete

Visual Basic and C++ and Debug and DLLs Here is the problem I am having now. I have a C++ DLL that seems to work just fine. It has been tested with function calls from a executable written in C++. Now, using it with my Visual Basic GUI seems to …

Member Avatar for Alvein
0
239
Member Avatar for Nedals

I have limited experience with Object Oriented coding but not programming in general. Here is a stripped down version of my code. What I'm trying to do is set a variable declared in 'CProjectView::Handler' using a function in 'CtestClass'. Simple enough! but not for me. In the code as shown, …

Member Avatar for Nedals
0
257
Member Avatar for moznmar

I apologize, but I meant to make the below post in the C/C++ forum. I'm not sure how I may move it to the other forum or delete it and repost it in the correct forum. I would appreciate any guidance on how to correct my mistake. Thank you. I'm …

Member Avatar for Dani
0
205
Member Avatar for calcop

Hello everyone, I hope I can write this question clearly. Anyway, it is about global variables. I have several files in my C++ project. One of which is main.cpp. This file comtains my main() function. I have a few other files in my project. They are server.cpp, server.h, strings.h, includes.h …

Member Avatar for calcop
0
181
Member Avatar for rhurst

Our client in the West Chester area doing exciting things with multimedia product development for commercial sale. Assignment will be at least 2 months and the rate available is a fair one. Good learning environment and excellent working environment. Required: - Strong development experience in C#/.net. - Experience working with …

0
48
Member Avatar for moznmar

I'm a newie and am in the process of trying to develop a book store as part of a class project. I would greatly appreciate any assistance that may be offered my way. Please do not give me any answers, but if you have any suggestions that may nudge me …

Member Avatar for moznmar
0
264
Member Avatar for mybrainhurts

Hi guys just trying to understand Getline and implement it in a problem im trying to solve. First off i have a program that is working: [CODE] #include <iostream.h> #include <string> #include <fstream> using namespace std; void main() { ifstream fin("data.txt"); ofstream fout; char name[30]; char jersey_number[10]; char best_time[10]; char …

Member Avatar for mybrainhurts
0
131
Member Avatar for fluidDelusions

Suppose I have a class, Animal, that contains the virtual method eat(). Now suppose Dog is derived from Animal, and also implements eat(). Now somewhere else, I have a class Barn with a feed method that takes Animal& as a parameter. How can I force class Barn to call Dog's …

Member Avatar for NosKills
0
279
Member Avatar for mogey

Can anyone help here. I want to have some color in the intro page the a database program I am creating. DOS based. ie it will be used in a 98 OS in dos.

Member Avatar for calcop
0
152
Member Avatar for cheenu78

Hi All, I am an member of our java forum, but am a novice as far as c++ concerned. I need to program small application for symbian os. Programs like reading an addressbook on a device. Can you suggest where to begin? The prefered IDE and a small program would …

0
55
Member Avatar for Quan Chi2

Does anyone know a tutorial that teaches me how to code them in C++? I want to learn how to make my program send packets and recieve them.

Member Avatar for Nedals
0
105
Member Avatar for Twins_effect

hey guys, im a new guy here in the forum and im also an IT student who gets into C++ troubles most of the time, but enough about that... i just wanna ask if anyone can help me in my linked list problem, i think its about pointers and address. …

Member Avatar for Twins_effect
0
109
Member Avatar for fsloke

:!: The Question is like this... About: Subject registration system. The lecture want 1. Name, Matric Number, Cumulative Grade Percentage Average (CGPA) CGPA........A=4.0,A-=3.7,B+=3.3,B=3.0,B-=3.7,C+=3.33,C=2.0, F=0. Name, Matric No,CGPA key in by user. So no need to worried. 2.Condition for CGPA if CGPA<2.0, can apply up to 18credit hours if CGPA>2.0, can …

Member Avatar for fsloke
0
130
Member Avatar for fsloke

Reading Material Purchasing System ------------------------------------------ the program have a book sales User will select the type of book they want to buy such as Fiction, non-Fiction Fiction Non-Fiction ------- ------------- ////////....$ /////////////.......$ ///////......$ ///////////////....$ ///////.....$ //////////....$ at the end (print out) list down the book they buy Total of all …

Member Avatar for fsloke
0
117
Member Avatar for Tryst

Im just learning C++ this year, and its going alright, until i came to arrays that have indexes with semantic content. I am asked to write program that will convert a user inputted string into the civil aviation alphabet, for example if teh user inputted "and" the output would be …

Member Avatar for Jakester
0
237

The End.