49,761 Topics
| |
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. … | |
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. … | |
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 … | |
(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> … | |
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 … | |
| 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 … |
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 … | |
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 : … | |
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 … | |
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 … | |
Hey! I just wanted to know that if there is any builtin function in c++ that converts a decimal number into binary number?? | |
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()) … | |
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? | |
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. … | |
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 … | |
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] … | |
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. | |
| Does anyone know of a college in Georgia that offers a complete online BS in Game Development or Computer Science? |
I have a problem in conveting binary to decimal and decimal to binary conversions and i have the due date today | |
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 … | |
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 … | |
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 … | |
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&)" | |
anyone have any idea? i need some suggestion urgently :sad: | |
Does anybody know the limit of nested for loops in C or C++? If there is a limit, what is the reason? | |
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() { … | |
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) … | |
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, … | |
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? | |
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 … |
The End.