48,986 Topics

Member Avatar for
Member Avatar for Traicey

Guys I need to read from a text file and display to a listview I have tried google but nothing like what I am looking for, can anyone help me, Im using windows application Thanx in advance

Member Avatar for Liszt
0
99
Member Avatar for mybluehair2

I have a console game (DOS game) I created a wile ago to learn C++. But now I want to expand this game. So I started reading windows API tutorials. But I still need some help. I have no idea how to create buttons, and how to make something happen …

Member Avatar for marco93
0
117
Member Avatar for Balinor

hi, ive been learning C++ from a book at home, am past the console and pretty much all the form part of the book but have a few unanswered questions. Beware this might be quite a large post, as i have no access to the net at home so am …

Member Avatar for Balinor
0
116
Member Avatar for Liszt

I will try to catch a few idéas of how to check changes in a large number of files. I dont know what oppurtunities there is to do that. I will have a folder that contains perheps thousands of files wich will be written to randomly. How is it possible …

Member Avatar for Liszt
0
81
Member Avatar for vrga

I am having trouble deleting a string from a list. My program has to read strings from a file, then I have to delete the ones that are equal. I am a little bit lost. Any suggestions would be appreciated.

Member Avatar for JustinJose12002
0
149
Member Avatar for jazzyangelz

I need help! I am learning how to write functions but I have no idea how to start this.... could some one help me. I would really appreciate it. Thank You. I need to implement a number of useful functions using a header file and an implementation file. I also …

Member Avatar for Denniz
0
88
Member Avatar for MylesDBaker

Hello everyone, I am trying to get a head start on this week's program, as it seems to be a long, albeit relatively easy, program. I wanted to double check with the experts here to make sure the flow of control for this program is correct. The assignment is as …

Member Avatar for Denniz
0
242
Member Avatar for serkan sendur

in visual c# i used to resolve namespaces by right clicking on the class name, do you know how to do the same in c++? thanks.

Member Avatar for Ancient Dragon
0
159
Member Avatar for panpanf

i am confused by pointers. How do we know the type the pointer points? Is it compiler specific? how do we implement delete[]? Are there any books or articles about this topic? Wait for your replies.

Member Avatar for grumpier
0
132
Member Avatar for buddha527

I am going back through some old code I wrote last year during school to try and refresh myself for upcoming classes. This one code I went back and tried to build it and I receive this following error: error C2059: syntax error : 'return'. I am not sure why …

Member Avatar for buddha527
0
239
Member Avatar for DLightman

For the sake of discussion, say I have a sphere class with a few public and private methods. Since I have this generic class I would like to define a second class that is more specific of the type, like balls, bearings, and so on. So for my second class …

Member Avatar for DLightman
0
333
Member Avatar for JustLearning

I am getting a syntax error when I try to compile. After I write a little code I try to compile to catch any of my mistakes. In this project I am to use a class queue template that is provided by my instructor here it is [code=cplusplus] #ifndef TEMPLATEQ_H …

Member Avatar for Alex Edwards
0
142
Member Avatar for jack1234

I am using Visual Studio 2005. Following two programs has the same code, just that one is CLR Console application and the other is Win32 Console application. I set a break point at int i=1 for both program, for CLR Console application, and when run to the break point, in …

Member Avatar for Ancient Dragon
0
738
Member Avatar for DemonGal711

I have to write a code that will produce a 2^n by 2^n board and then fill it (filling it isn't important, I think I got that down). Now, since my board is dynamic, any suggestions on how to deal with this. I'm passing my array from my main function …

Member Avatar for DemonGal711
0
117
Member Avatar for PaladinHammer

In case the guys who helped me with a "pass-by-reference" function didn't see it, thank you for your help! I've only got one problem right now and thats that my program will not send data to an output file. Here's the code: [CODE]bool checkInputFile(ifstream &fin); // checks the file input …

Member Avatar for Freaky_Chris
0
534
Member Avatar for oceanicblack

I have a C++ midterm due tomorrow that I can't figure out. Here is the assignment: [code] // Use the program BtoDsol.cpp located at: BtoDSol.cpp // which converts any byte to decimal // enhance the driver program to test an additional function DtoB with a prototype of: // string DtoB …

Member Avatar for stilllearning
0
221
Member Avatar for sohamghosh

I am trying to make a bank C++ program but the problem is that when the program terminates, data is lost and when I start it again, it reinitializes. Can someone tell me how to save the information in my harddrive and not my RAM?

Member Avatar for sidatra79
0
140
Member Avatar for PaladinHammer

Hey guys, pretty confused about what a "pass-by-reference" function is and does. No one will put it into simple English for me and Google has become my worst enemy on the topic. What the Program has to do is convert the five-numbers of a zip code (for example: "64110") into …

Member Avatar for PaladinHammer
0
150
Member Avatar for saleem123

I want to make a program which ask the user to enter double values and stores it in a file. The inputs process ends when the user enters cntr+d. Can someone suggest how to do it ? i wrote the following code but it doesn't work ! [code]ofstream file("test.txt"); double …

Member Avatar for sidatra79
0
101
Member Avatar for mathrules

I am writing a program that reads in from a file (60,000) words. I think I got my code figured out except for the getline part. I will show you what I have ...what am i doing wrong with the getline part? [code] [code=c++] #include <iostream> #include <string> #include <fstream> …

Member Avatar for sidatra79
0
194
Member Avatar for u3mo

I'm running this code in Visual C++ 6.0 and it won't run correctly.. need some expert help.. I don't know what's wrong with this code.. Thanks for the help in advance.. [code=cplusplus] # include <iostream> using namespace std; int main() { char one, two, answer; do { system("cls"); cout<<"\n\n\t\tSelect a …

Member Avatar for chococrack
0
111
Member Avatar for lllllIllIlllI

Hi Im pretty new to the whole C++ programming language but after learning python and java i decided to give it a go. I have been using tutorials at [url]www.cplusplus.com[/url] and that has been working fine but i came across a bit of code today i couldn't understand. It went …

Member Avatar for lllllIllIlllI
0
141
Member Avatar for Se7Olutionyg

[CODE]// program 5: implement a decision structure for the following computation # include <iostream> using namespace std; //function used void instruction (); int main () { int income, tax,total; instruction(); // get the income cout << " input your income : $" <<endl; cin >> income; if (income <= 15000) …

Member Avatar for Se7Olutionyg
0
106
Member Avatar for koman

Ok so the code makes the user type in a number. Ok if the number is odd it must say "Invalid Input". If the number is EVEN it takes the ODD numbers of it and gives you the pairs that add up to the EVEN number. For example if I …

Member Avatar for Salem
1
108
Member Avatar for Ellisande

So for my project I'm working on, we have to simulate a game of Sorry. There are 1-4 players who are each represented by a color. Player 1 is always BLUE, 2 is YELLOW, 3 is GREEN and the 4th player is RED. Each color has it's own unique start/home …

Member Avatar for ST865
0
111
Member Avatar for panpanf

I am studying c++. I have many questions about the layout of classes and compile of template, etc. I know these questions are concerned with compiler, but i don't know any book about the deep principle and design of some c++ compiler. Anyone can give me a suggestion?

Member Avatar for panpanf
0
101
Member Avatar for haw_x2

Hello~ I am doing my Final Year Project in my university about p2p video streaming. Since we have to write custom directShow filter so we have to write streaming using c++. I only know basic c++network programming. (1)I would like to know if there is any source code available on …

0
69
Member Avatar for dmanw100

I am writing a program using strings to pass messages into SDL functions. For some reason the compiler will not let me create any string objects though. I get a 'string' undeclared error when I try to compile this code: [CODE]#include "SDL/SDL.h" #include "SDL/SDL_ttf.h" #include <string> int errorMessage(int errorNumber) { …

Member Avatar for dmanw100
0
152
Member Avatar for sladesan

Hi i am new to C++ I am have a error like the one above: on a linux working in the termial commands c++ round.cpp -lpthread -o moo.exe -- build file ./moo.exe -- running file get *** glibc detected *** ./moo.exe: free(): invalid pointer: 0xb7f226ec *** then shows ======= Backtrace: …

Member Avatar for stilllearning
0
167
Member Avatar for alin_yuhee

i'm trying to make a geme with c++ but i can finish it because i have trouble with the code :( .....this is the code of the game that i want to make.... [code=cplusplus] #include<iostream.h> #include<conio.h> #include<graphics.h> //using namespace std; int main(void) { double pos_x,i_pos_x,pos_y,i_pos_y,vel_x,vel_y; double time,gravity ; //t=time,g=gravity int …

Member Avatar for alin_yuhee
0
108

The End.