General C++ Programming - December 2011 (Page 5)

What's wrong with the following?
 
I've been having trouble with creating this... You're supposed to pick a number and the computer has to guess it. So far it's working, but I can't figure out wh...
[3 replies] Last: Alright, this makes so much more sense to me now and I managed to make... (by NSwiftae)
Library System problem
 
hey everyone i have a problem, and it's very urgent here is the code: #include<conio.h> #include<iostream> #include<fstream> #include<string> #include<w...
[8 replies] Last: okay i decided to use vectors in this here is the code #include<coni... (by MaZtRHaXoR)
Memory Leaks and Constructor questions
 
Hello there I wrote a little dice rolling program using a Class. I was worried that there was a chance of a memory leak, and I'm not 100% sure of all the cau...
[2 replies] Last: Thank you much! (by torgosaves)
Cout with class object
 
#include <iostream> include namespace std; class alpha{ private: int data; public: alpha(int d){ data = d;} void display(){ cout << data;...
[7 replies] Last: @eypros: Thanks for those insightful points. I suppose the problem is ... (by crosslink)
Loop question.
 
Is this the correct way to do this? My friend says it is. He's a professional at Visual Basic and he said it should work. #include <iostream> int main(...
[2 replies] Last: http://cplusplus.com/doc/tutorial/basic_io/ system() Why? ... (by king214)
Lambda issue
 
Hello, I decided to try out using a C++0x/C++11 lambda expression, which I am new to. After checking for help online, I still can't get it to work, using an...
[4 replies] Last: The thing to remember is that the lambda expression returns a lambda f... (by Galik)
Is it possible to buffer overrun cout?
 
Hello all, I have a project that I have been working on for a couple weeks now where I have a multi-threaded application that listens across multiple ports for ...
[11 replies] Last: Output operations on std::cout will simply block until all the data ... (by Galik)
Computer must have food poisoning...
 
Just got this error in visual studio. I guess my computer ate something that didn't agree with it's digestive system... First-chance exception at 0x6f785dd4...
[1 reply] : That's a MS thing to show you did something uncouth with the heap. htt... (by Duthomhas)
by gtkano
How can I create a C++ application that can create other aplications ?
 
I want to create a GUI based application that will simplify the process of creating a simple Autorun.exe. My question is : How can I create an executable that ...
[5 replies] Last: Thank you all for replay's XD Thanks to you I was guided to the right ... (by gtkano)
Simple Question!!!
 
Can derived classes inherites the getters and setters functions of base class?
[1 reply] : What is inherited from the base class? In principle, a derived class ... (by ciphermagi)
Opening a .csv file using microsoft excel
 
Hi guys, I have written a program that writes a .csv file readable in Microsoft excel. Is there a way I can launch the file with Microsoft excel once I compile ...
[8 replies] Last: Wow, I totally looked right past that! Good catch, Lane! (by kooth)
chess game isn't work :(
 
hi, i have a code (chess game !) code is running but i cann't move piece ! plz help :( #include <iostream> #include <string> #include <vector> using namespac...
[5 replies] Last: @b1098208 I removed the convertStringToNum() routine and changed th... (by whitenite1)
by lgm420
binary in c++
 
I can use c++ a little bit and i used to have a fully functional command line ftp server which supported almost all ftp commands and stuff. by using the std ...
[2 replies] Last: i have a feeling. that you made this difficult to read on purpose. and... (by Pyrius)
advantage and disadvanges of c++
 
what are the uses, disadvantages and advantages of c++?
[3 replies] Last: C++ is absolutely perfect. (by Galik)
Dynamic Memory Allocation!!! (1,2)
 
Hello Guys!!! How to dynamically allocate memory in constructors or setter functions for data members of class? Suppose if we have two data members(ID,Name) and...
[24 replies] Last: OK.....i think you guys are right i need strong concepts on pointers..... (by hassaanid2011)
Help using pipes
 
I'm trying to use pipes to write some data on a program stdin and get the stdout. I found this one on the internet and changed it, (the original didn't seems...
[11 replies] Last: I can write data to the program, but i don't know how to get the stdou... (by demonofnight)
Inheritance Problem!!!
 
Hello Guys!!! I am trying to create the two classes (Base Class & Derived Class) but my AddMember() function is creating problem for me.....I Think :D Here's th...
[6 replies] Last: @ne555 Thanks for pointing out but can you tell me how to fix this pro... (by hassaanid2011)
Seating arrangements
 
Hi guys, im making an airline reservation system where a user is able to choose a there own seat. But there are two classes, first class and second class. First...
[17 replies] Last: IDEs should do that for you... Don't use the ASCII code when you coul... (by ne555)
File I/O
 
Plz tell me how to sort the data in a binary FILE and write it back to a binary file.. Here is my coding !! Need HELP! // rewobj.cpp // person object...
[1 reply] : This reminds me of: http://cplusplus.com/forum/lounge/31041/ Binary d... (by closed account S6k9GNh0)
C++ Delete operator
 
Hello Guys!!! I am trying to use the DeleteMember() function but object is not deleted. I create the object with new operator. Here's the Code: class User { ...
[3 replies] Last: Besides what other users mentioned you are trying to delete an unalloc... (by eypros)
December 2011 Pages: 1... 34567... 39
  Archived months: [nov2011] [jan2012]

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