49,761 Topics
| |
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 … | |
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 … | |
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, … | |
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. | |
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 … | |
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 … | |
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 < … | |
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 … | |
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> … | |
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 … | |
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. | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
[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; … | |
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 … | |
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 … | |
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.. | |
Hi there! im trying to get whatever is displayed on my screen and insert it into a metafile. how can i do that? | |
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 … | |
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 … | |
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 … | |
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 … | |
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" … | |
Hello, How can I save a string input as a double linked list in dynamic memory in C++? Thanks in advance | |
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 … | |
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 … |
The End.