51,593 Topics

Member Avatar for
Member Avatar for Black Magic

Hey, I was just wondering what was the simplest way to "real" world type, like open wordpad and you could watch it actually typing, thanks in advance. (Hopefully the answer is not writing to file etc)

Member Avatar for William Hemsworth
0
136
Member Avatar for tharris7

Hi, I'm quite new to C++ so all help is appreciated. I have a program that makes a string of at least three characters. I want to be able to compare the string to a list of words (i.e. dictionary) in a separate file, and then output the string if …

Member Avatar for Nick Evan
0
195
Member Avatar for nabeelcool17

i have made an electricity bill program and wants to add graphics in it mean when it need input from user it writes in graphics............. so plz help me in making this....... [code]#include<stdio.h> #include<conio.h> #include<iostream.h> void main() { int unit=3; int reading,previous,current,consumed,bill; cout<<"enter your meter no"; cin>>reading; cout<<"enter previous redaing …

Member Avatar for nabeelcool17
0
91
Member Avatar for notbadday

I have problems to extract frames from mp4. I'd like extract frames to memory or hard disk in order to modify them before show them on the screen. Could anyone help me how to do this ? Thanks !

Member Avatar for Salem
0
86
Member Avatar for Black Magic

Hey, i was thinking these may help me if I made these little programs etc, but i've came to a situation, I've go no error but have to use [CODE]cin.get();[/CODE] twice, here's the whole program.. [code=c++]#include <iostream> using namespace std; int main() { system("title Simple use of if else if …

Member Avatar for Nick Evan
0
138
Member Avatar for Spagett912

A while ago i had requested help for a Marital and Federal tax program. Unfortunately I'm making this program for a particularly picky person. So I ended up having to remake it somewhat. If someone could take a look and help me with this that'd be cool. Here's what I …

Member Avatar for joshmo
0
155
Member Avatar for GigaCorp

ok i got past that part i posted about before, now im having some more trouble. i can add 2 patients easily to the file. then i try to display them. it displays the first one just fine, but the second it tries to display the first value in the …

Member Avatar for GigaCorp
0
144
Member Avatar for ardeth32

Hey guys. I have a project due in 2 weeks, so I have a little bit of time - but I have a lot of work to do, so I want to get this finished. I'm taking a C++ Data Structures class at my high school.. and we have a …

Member Avatar for vijayan121
0
101
Member Avatar for touqra
Member Avatar for Jennifer84

I wonder how it is possible to create a "Folder". I know how to create files like this. How could this be possible with ofstream. I am not sure if I find any members to ofstream that could be associated with "Folders" ? [code] ofstream OutFile1; OutFile1.open("C:\\File1.txt"); OutFile1; [/code]

Member Avatar for Jennifer84
0
105
Member Avatar for GigaCorp

i ended up doing it woithout that function. nov ive got a bigger issue,im trying to make a database of patients and i am working on writing 2 of 8 of the functions in the menu. displaypatients is supposed to display all the info for the patients 1 by 1, …

Member Avatar for VernonDozier
0
143
Member Avatar for n1337

As I've been reading various threads on this forum, it seems to me that a lot of people are advocates of vector data structures. Coming from C, I don't tend to use them a lot...I was just wondering if anyone could tell me how vectors are implemented (at the machine/memory …

Member Avatar for Ancient Dragon
0
94
Member Avatar for cynicalreality

Hello all, I'm having a bit of trouble with this program I'm working on. I have a base class, we'll call it Base, and two nearly identical Derived classes, only one of which is relevant. I created a pointer (Base *BP), and pointed it to Derived &DO. I need to …

Member Avatar for mitrmkar
0
160
Member Avatar for tiney83

Hi, My assignment is to read in data from a file(first name, last name, and grade) and then output it. i have my code and i beleive the problem lies within the function readData, but i cant figure out what it is. I run the program and i get an …

Member Avatar for tiney83
0
140
Member Avatar for Jennifer84

I am using saveFileDialog1 and are trying to recognice what path that was selected when "Save" the file. I have begun some code below but are not sure what and if I will write something after saveFileDialog1-> ? [code] //Get The Path that was selected when saving the file String^ …

Member Avatar for Jennifer84
0
144
Member Avatar for omarelmasry

HI .... I am a beginner programmer and we are required at college to create a very simple game as a console application :( We found a graphics library for that... thank God.... But we need a sound and video library... but please consider that it should be: 1. For …

Member Avatar for omarelmasry
0
144
Member Avatar for manzoor

What are some limitations imposed by a fixed array size? can you please tell me A limitation of arrays is that they have fixed lengths. what does it means ?

Member Avatar for Sky Diploma
0
848
Member Avatar for GigaCorp

int patientstomemory(patientstruct (*patientstructpointer)[maxpatients]) { patientstruct patientstruct1[maxpatients]; patientstruct1= (*patientstructpointer); 1>c:\documents and settings\patrick\my documents\hgkbklhb\hgkbklhb\hgkbklhb.cpp(88) : error C2106: '=' : left operand must be l-value whats wrong? very important, working on semester project due monday

Member Avatar for GigaCorp
0
161
Member Avatar for Jennifer84

If I am reading a .txt file with ifstream, what is the syntax to recognice if I have reached the end of file. From what I have heard somewhere before, I think it has with eof to do ? [code] ifstream File("C:\\File1\\"); std::string Line; while( getline(File, Line, ',') ) { …

Member Avatar for Jennifer84
0
274
Member Avatar for gil_mo

Hi, (using MS VS2005) Recently I've found that in order for a function to be exported, dllexport *must* be placed in the same file of the function body. E.g. see the following case: [U]File a.cpp[/U] [code=C++] void dllexport a(); a(); [/code] [U]File b.cpp[/U] [code=C++] void a() { // function body …

Member Avatar for gil_mo
0
159
Member Avatar for xlx16

answer the txt question but please don`t use using namespace std; and stuff like that because i think my compiler dosent work with new standards

Member Avatar for Nick Evan
0
125
Member Avatar for tondeuse34

Hey guys, i have done C++ before but gave up on it :P. But i've came back to it and i'm wondering what is a good way to simulate a left and right click? i guess you would start with this: [CODE]#include <iostream> #include <windows.h> using namespace std; int main …

Member Avatar for William Hemsworth
0
9K
Member Avatar for c++ newbie
Member Avatar for xlx16

can u help me with this: write a program that u can write in it and evrey time u press (F1) program will tell u number of capital letters in txt if u press (F2) it tells u number of words(for exampel: 23 erf 3e has 3 words) if u …

Member Avatar for Ancient Dragon
0
230
Member Avatar for EBC

Could anybody advise me where I can get free resources in c++ class design, whether it's online books or websites? Thanks a lot.

Member Avatar for hatemstar
0
44
Member Avatar for tekivia80

I NEED HELP WITH A BIRTHDAY PROFILE IN C++ I have to create three classes: Person,birthdate, and date. Create seperate .h and .cpp files to seperate the implementation from the interfaces. 2. Create a list of attributes and operations for all the classes. 3. Implement the methods,attributes, and constructor for …

Member Avatar for Ancient Dragon
0
129
Member Avatar for c++ newbie

this is what my program looks like but after prompting and reading my files, i get an infinite loop. the program compiles and i just put that simple cout statement just to see if anything will come out. can anyone see where i am messing up within my main that …

Member Avatar for Ancient Dragon
0
160
Member Avatar for c++ newbie

[code] #include <iostream> #include <fstream> #include <cstring> #include <cctype> #include <iomanip> using namespace std; const int MAX = 30; const int MAX_HW = 10; const int MAX_E = 3; [/code]

Member Avatar for Ancient Dragon
0
49
Member Avatar for henpecked1

I'm having a little problem with a conversion error during compile. Here is the code: [code] #include <iostream> using namespace std; class costOfItem { public: costOfItem(float i_cost); void printMe(); private: const float price; }; // Free functions void displayPrice(costOfItem z) { z.printMe(); } void displayRefPrice(costOfItem &z) { z.printMe(); } void …

Member Avatar for dougy83
0
129
Member Avatar for compumasta

[code=c++] struct if1 { string idnum;//id number for the student string lastname;//last name of student string firstname;//first name of student int examscore[maxexam];//array of all the exam scores of the student int hwscore[maxhw];//array of all the home work scores of the student }; void alphasort(if1 student[], int n) //the alphasort function …

Member Avatar for compumasta
0
935
Member Avatar for Jennifer84

I am trying to check the size of a file with this code. The file is named "OneFile.txt" and is of the size 230 kb. The MessageBox will show the number 37. If I change the file so it will be 460 kb instead, still the messageBox will show the …

Member Avatar for Jennifer84
0
176
Member Avatar for Seamus McCarthy

[code] #include <iostream> #include <fstream> #include <string> using namespace std; void writeArray(); void readArray(); const int capacity = 4; //const int spec = 4; double numbers[]={12456.89,234.00,3456.78,21212.50}; //string A12345; //string A45678; //string B21223; //string B21435; string names[]={"A12345","A45678","B21223","B21435"}; int main() { writeArray(); readArray(); } void readArray() { ifstream infile; infile.open ("accounts.txt"); infile …

Member Avatar for compumasta
0
100
Member Avatar for Jennifer84

I have a form (Form2) that I want to write text at the top of (In the blue field where you normally can can tell what the windows/forms name is) I thought it should be like this but I cant find "Form2" after this-> What I can find is Form2_Load …

Member Avatar for William Hemsworth
0
99
Member Avatar for n1337

Hey all, I have recently become interested in trying to automate various MS Office applications using C++... I was writing some macros in Excel to update some databases that I work with, and decided it would be cool if I could sort of wrap the entire process in a C++ …

Member Avatar for n1337
0
315
Member Avatar for fox51

hey there i have a question for you guys. my program reads a file and then save each line of the file into a multimap<string,int> containing the string and the number line. i have the convert strings in alphabetical order, like take into aetk, and thats where the problem begins …

Member Avatar for fox51
0
165
Member Avatar for msk88

How can i add a short cut to my application in the Menu which we get on Right Clicking a file ? & How to pass the File name has an Argument to my application.. Platform:Windows

Member Avatar for Ancient Dragon
0
111
Member Avatar for Jennifer84

I have a dataGridView1. In a datagrid you can manually write columnheader names. (Each Column can have a name) What I wonder is how it is possible to programatically write a name for example column Numer 1 ? I have looked at the memeber of the class but cant really …

Member Avatar for Jennifer84
0
111
Member Avatar for tigger0484

the problem lies when the move checks to make sure it is valid, every move will display valid or not valid, and the code always displays not valid everytime [code=cplusplus] #include <iostream> #include <fstream> using namespace std; int initialmenu(); void initialboard(char board[][8]); int moveoptions();//function prototypes void appropriatemove(char board[][8], int move, …

Member Avatar for Ancient Dragon
0
108
Member Avatar for latour1972

[code=cplusplus] #include #include int gcd (int , int ); void main () { int m, n; cout<<" Enter first integer:"; cin >>m>>endl; cout<<" Enter second integer:"; cin >>n>>endl; cout<<m<<"&"<<n<<" The GCD is:"<<gcd(m,n)<<endl; } int gcd (int x, int y) { if(y==0) return x; else return gcd(y,x%y); } [/code]

Member Avatar for henpecked1
0
137
Member Avatar for wellibedamned

okays... so i'm looking for some kind of a standard algorithm that doesn't take long. i thought going backwards, finding the first space, writing the last word and nulling (is that even possible?) each char, but that doesn't really sound good to me. I've seen some people say you should …

Member Avatar for wellibedamned
0
149
Member Avatar for Jennifer84

I have a checkedListBox1 wich consist of a many lines with text. What I am trying to do is to search trough this checkedListBox1 to see if "Hello" could be found in this box and if it is found, this Item(Line) will be selected. I am not sure what could …

Member Avatar for Jennifer84
0
145
Member Avatar for manzoor

hi can you tell me the anatomy of game in which the player picks a number and the computer must guess what it is. no code just give me a hint or two :D

Member Avatar for Radical Edward
0
96
Member Avatar for Vipuljain

Can Anyone suggest me some C++ coding for : I want that like in G-talk when,I click on Cross "X",it will minimize my software icon like G-talk icon. Secondly,if Like G-talk it should start blinking,when some error is reported and displaying error also. I have to do coding in C++.and …

Member Avatar for Salem
0
32
Member Avatar for knish

Hi, Is it possible to thicken the film gate that appears when the option is put on in maya. At present the line is may be 1 mm thick. I need that it becomes 20 mm thick. How may I use the Maya API to do this. BRdgs, kNish

Member Avatar for Salem
0
53
Member Avatar for blackhawk9876

[code=cplusplus] #include <iostream> #include <iomanip> #include <fstream> using namespace std; void DisplayTitle(); void DisplayBal(double); void GetData(int& , double&); double ProcessCheck(double, double); double ProcessDeposit(double, double); double ProcessATM(double, double); double ProcessSvcChg(double); struct transrec { double credids; double debits; double service charges; }; const double CHARGE = 10, ATMFEE = 2; int main() …

Member Avatar for William Hemsworth
0
181
Member Avatar for info04

I am writing a function which will check if the letter is in upper case , if so it returns true otherwise false. Following is the code, I have written, but what is wrong? #include<iostream> using namespace std; using std::cout; using std::cin; using std::endl; int isUpperCase ( char ); int …

Member Avatar for William Hemsworth
0
111
Member Avatar for acetdmn

You are required to provide an algorithm to operate a cash register that will keep count of all withdrawals and deposits made during a day’s business operation. For simplicity, this cash register will handle notes with the value of $50, $20, $10 and $5 only, and coins with value of …

Member Avatar for n1337
0
598
Member Avatar for arunpawar

It's not homework it is just a play.If you have any simmilar tragic like this one with int and character or float then please discuss it here or explain how things happen.Let this thread be informative. I'm playing with int,floats and type casts but i have found that in following …

Member Avatar for dougy83
0
117
Member Avatar for c++ newbie

ok. i'm having trouble understanding how to manipulate my data. this is what i have so far with my program. my input data is coming from two different file. the first file looks like this that has the student ID, last name, first name... 567 white Robert 43 blackBurBn DOnna …

Member Avatar for ithelp
0
88
Member Avatar for yureika

Is that anyone know how to search and list out the missing data after comparison? for example, I have data in 2 workbooks. Book1 - Sheet1 - Col A and Book2 - Sheet2 - Col B. I want to compare Book2 with Book1 and list all values in Book2 that …

Member Avatar for Sky Diploma
0
43

The End.