49,761 Topics

Member Avatar for
Member Avatar for Rocky111

I am new to C++. I have a problem regarding access specified elements from a text File. I have two File containg the random sorted integert values. and an Array with some size. For exapmle if array contain 10 elements and files will contain random number upto 10 with no …

Member Avatar for Rocky111
0
88
Member Avatar for Wakesta

I have started to follow the Beginner tutorial's so the first one is Hello World, so I have followed what was shown and it has failed this was created in Console application template then added the main.cpp file to the source folder. this is the below error message, can someone …

Member Avatar for Wakesta
0
182
Member Avatar for Silvershaft

Hey, I am making a small network game and I suddenly got some problems with my player class, specially when trying to call the getName function and using the second constructor I get this error: [code] 1>------ Build started: Project: RPG, Configuration: Release Win32 ------ 2>------ Build started: Project: Server, …

Member Avatar for Hektzu
0
210
Member Avatar for onlyvidya

hi frnds m doing project on tracking keyboard,mouse & URL activity. which programming language is much easier to implement this project? Is Java better or VC++ is more better option? plzzzzz suggest me as soon as possible.

Member Avatar for onlyvidya
0
131
Member Avatar for foco

My goal is to have a simple piece of code that will raise an exception if input of non-int is entered. My problem so far, is that I haven't been able to reach the catch block. I have read a little about bad_typeid, but do not know how to implement …

Member Avatar for vijayan121
0
92
Member Avatar for allonline

I have me problem in finding the error in the folowing program.the program writes all the information in an encrypted form would you help me in making it readable please? the program is: [code]#include <iostream> #include<fstream> using namespace std; struct customer { string fname; string Lname; int id; }; int …

Member Avatar for goody11
-4
107
Member Avatar for johnb08

Ok the requirements include a program that asks for three positive number and checks if they are a triangle. I did that ok, but now I have to figure out what kind of triangle that I entered is. The choices include: right angle triangle acute triangle (all three angles < …

Member Avatar for johnb08
0
102
Member Avatar for Silvershaft

Hey! I am making a program that keeps track of users so the program has to update the number in the database how do I actually do it? I know how to select things and such, but have no idea how the update works.. I didn't really find anything for …

Member Avatar for Silvershaft
0
4K
Member Avatar for dhruv_arora

I wrote this small program that enters a password from a user and displays '*' instead of the letters so I could add this into my project. I compiled it through Dev C++ using Windows 7 and I am getting errors, please help me out. The program :- [CODE] #include<iostream.h> …

Member Avatar for nbaztec
0
157
Member Avatar for joshalb

A friend and I are working on our first game engine in C++. We're both new to C++, but not to programming in general. Our current method of handling objects (things within the game, such as a player object) works fine, and is pretty fast! But I'm not sure if …

Member Avatar for joshalb
0
148
Member Avatar for sarminatorius

How to hide window in taskbar? Visual programming: Embarcadero C++ In project file i set: [CODE=c++] Application->MainFormOnTaskBar = false;[/CODE] but that didn't helped.

0
46
Member Avatar for DaJ4ck3L

I was wondering what all files this program accesses, and any other info you could tell me about this program.. The program is in the link below. [url]www.thelandofoz.net/help/program.rar[/url] Mucho thanks in advance!! -DaJ4ck3L

Member Avatar for Excizted
0
159
Member Avatar for bolineni

I have one Server code , and I have to test with 100 clients .... Clients has to read data from text file in local system and has to send to Server ... for that i want to write one client code to test my sever .. please any one …

Member Avatar for Excizted
0
90
Member Avatar for hotness

Question 1 How many pointers are needed to build a linked list in a backward manner? a. one [COLOR="green"]b. two[/COLOR] c. three d. four Question 2 Every node (except of the last node) in a singly linked list contains ____. a. the address of the previous node b. the address …

Member Avatar for hotness
-1
338
Member Avatar for sankaran1984

I want to write a method to remove consecutive items with duplicate data values from a singly linked list. The method should return the number of items removed. The method should clean up memory as required, and should assume that memory was allocated using new. For example, passing in the …

Member Avatar for WolfPack
0
172
Member Avatar for Silvershaft

Hey, I am doing a little program that is connected to the database and keeps track of users using the program also, for example when someone opens the program it adds one to the users number in the database, what I need to do is to see when user presses …

Member Avatar for WolfPack
0
98
Member Avatar for csha_cs508

[CODE]/*a program that inputs three integers from the keyboard and prints the sum, average, product, smallest and largest of these numbers*/ #include <iostream> using namespace std; int main() { int firstNum, secondNum, thirdNum, sum, product,average, largest, smallest; cout<<"Enter three integers: "; cin>>firstNum; cin>>secondNum; cin>>thirdNum; sum = firstNum+secondNum+thirdNum; product = firstNum*secondNum*thirdNum; …

Member Avatar for csha_cs508
0
183
Member Avatar for sankaran1984

I want to write a method to determine if a given string is a palindrome. E.g. "Madam I'm Adam", or "A man, a plan, a canal, Panama". The prototype for the function is: [CODE]bool is_palindrome(char const * str)[/CODE] I have a simple logic to check for equality by moving forward …

Member Avatar for jonsca
0
100
Member Avatar for vbx_wx
Member Avatar for dhruv_arora

I wrote a program and created an object with fstream. Eg. [CODE] fstream f1; f1.open("s.dat",ios::out|ios::binary); f1.close(); [/CODE] Generally if there's no file such as s.dat, then it creates a file by the name but it it's creating one instead it exits the program. I have to then manually create a …

Member Avatar for p@rse
0
132
Member Avatar for madhumathi.cse

Dear friends, i wish to develop software on my own.But i have an idea only upto coding level(c++)...i d'not know what to do with that and also i need to know requirements of them..

Member Avatar for Ancient Dragon
0
34
Member Avatar for YoavX

Hi there! im trying to get whatever is displayed on my screen and insert it into a metafile. how can i do that?

Member Avatar for Ancient Dragon
0
47
Member Avatar for tomtetlaw

I am getting a really weird unhandled exception that just doesn't make sense to me. I've annotated my code so hopefully it will make sense to you aswell. Any help on this would and will be appreciated :) [code=c++] void DarkGDK( ) { dbSyncOn( ); dbSyncRate( 60 ); CBaseEntity *ent …

Member Avatar for tomtetlaw
0
126
Member Avatar for cke1031

I'm trying to write a class called "state" and I'm trouble with defining one of the constructors using variable argument list. The "state" class has four members: class state{ nucleon species; vector<int> particleLevel; vector<halfint> intermediateAm; halfint totalAm; public: state(nucleon, ...); }; "nucleon" is an enum type defined as: enum nucleon …

Member Avatar for cke1031
0
174
Member Avatar for pinsickle

Hello, I was wondering how to make a c/c++ program installable on other computers. For example, lets say for some odd reason a friend wanted a hello world program. Obviously, if I complie the code it will only run on my computer. The may be a noobish question, but we …

Member Avatar for pinsickle
0
565
Member Avatar for Andreas5

Hello again, i ran into some trouble with Visual C++ 2008 when i tried to use a template function. I only get this error when i try to use the function from main(). I used another template function succesfully earlier, but i can not figure out what is wrong with …

Member Avatar for jonsca
0
181
Member Avatar for rayborn66

Hi, I am having a problem with using file input/output streams in this program. [CODE] #include <fstream> using std::ifstream; using std::ofstream; using std::endl; int main() { ifstream inStream; ofstream outStream; inStream.open("infile.txt"); outStream.open("outfile.txt"); int first, second, third; inStream >> first >> second >> third; outStream << "The sum of the first3\n" …

Member Avatar for rayborn66
0
282
Member Avatar for kaydee123
Member Avatar for newstar_water

Hello, I need to know how the get the integer value of a byte and vice versa. I want to get the integer value from a byte read from a binary file. I also want to convert the integer value back into a byte value for write. Below I have …

Member Avatar for dusktreader
1
4K
Member Avatar for vbx_wx

Hello,can anybody help me implement the sort() function of a double linked list. The node`s of the list contains objects of type Person: [code] class Person { int age; string name; string adress; }; [/code] And i want to sort all the Person`s by age.I tried implementing bubble sort,but I …

Member Avatar for dusktreader
0
3K

The End.