49,761 Topics

Member Avatar for
Member Avatar for sonic_geezer

Hi, everyone. This is my first post. I'm just getting started, really. I took a computer science class this last semester and the professor's program of choice was Microsoft Visual Studio 2005. I enjoyed playing around with the codes, but I noticed that when making things for my own amusement …

Member Avatar for sonic_geezer
0
84
Member Avatar for Jennifer84

I have a CheckedListBox1 that contains checked and unchecked Items. What I am trying to do is to save everything into a vector. Like below, I can save all Items Text into vector<string> TextInfo but what I am trying to do is also for each Item save if that specific …

Member Avatar for Jennifer84
0
144
Member Avatar for vedmack

Hi... I looking for a way to hide application from the Task bar bottom line and i need to accomplish it by using the application executable name only... All information that i have it the process name which runs in the task bar Ive googled for a while but haven't …

Member Avatar for Ancient Dragon
0
110
Member Avatar for rock9449

i am trying to write code for my function project but i get errors can somone tell me if i am on the write track at least [code=cplusplus] #include <iostream> #include <iomanip> #include <string> using namespace std; //fn prototype for passing num of students in class // *** void DisplayStudent(double …

Member Avatar for VernonDozier
0
96
Member Avatar for Jennifer84

I have a CheckedListBox with 95 Checked Items and 5 Unchecked Items. Every Checked and Unchecked Item has a "string" name. What I am trying to do is to locate All the Unchecked Items in this box and put these strings into my vector with the pushback method: Unchecked.push_back(); The …

Member Avatar for Jennifer84
0
644
Member Avatar for ladyj4480

I am currently doing a project which consists of a Priority Queue. I have to simulate two boarding procedures of an airline. Rows 1 through 4 are first class seats (4 seats in each row) Rows 5 through 26 are coach class seats (6 seats in each row) Rows 10 …

Member Avatar for ladyj4480
0
175
Member Avatar for Jennifer84

I have 2 buttons on my Form. My question is if button1 can activate button2 in any way. Is it possible to write any code inside button1 that will execute/activate the code inside button2 ?

Member Avatar for Jennifer84
0
229
Member Avatar for ddt99999

I have writtten a program and it is compiled smoothly. However when I try to run the program, the console just comes out a while and then closes. I don't even have chance to type in commands and the commands will be recorded by **argv. int main(int argc, char **argv) …

Member Avatar for ddt99999
0
99
Member Avatar for inamabilis

Hi, Not sure if I'm doing something stupid here or not, I want a map of integers and objects (Rooms) which I've done, but whenever I create a new room to add to the map it appears to use the same memory location as the previous Room(s). The upshot being …

Member Avatar for inamabilis
0
97
Member Avatar for IlViandante2960

Hello, I have an application in VC++6.0 that create a .DOC file for Word2007. When I inserting text and image (.bmp) in file .DOC I need retrieve current row. How I can do it? Someone can help me with link or sample code in VC++? Thanks :)

Member Avatar for marco93
0
67
Member Avatar for shotjase

i have here this constructor used 2 display a bitmap [CODE] void bitmap::display() const { for (int r = 0; r < numrows; r++) { for (int c = 0; c < numcols; c++) { if (grid[r][c] == 0) cout << " " ; else cout << "*"; } cout …

Member Avatar for Salem
0
92
Member Avatar for server_crash

I've created, and written to a file. It lets me do all of that just fine, but when I try to delete the file it says that I do not have permission. Is there something wrong with my code?: [code] #include <cstdlib> #include <iostream> #include <fstream> using namespace std; int …

Member Avatar for Salem
0
243
Member Avatar for jimJohnson

I am an employee at Scottrade (competition with etrade if you guys have not heard of it) and they had me start out as an intern then joined the help desk starting this summer. In the fall I will be graduating from McKendree University with a B.S. in Computer Information …

Member Avatar for Salem
0
105
Member Avatar for rock9449

i am having a hard time writing programs that can read from a text file it should read beginning balance, number of transactions and description and amount after each but i am having trouble ex : sample input beginning balance=260.80 number of transactions =4 transactions: check-mallsounds -31.98 check-Atlantic 127.04 deposit- …

Member Avatar for dmanw100
0
100
Member Avatar for joanam

I am having the following problem: I have written a console application that needs to allocate memory. I am now debugging the program. I do not have any problems the first time I debug. Bu then, when I find an error or the program crashes and the debugging terminates, I …

Member Avatar for eng16danbo
0
120
Member Avatar for nguerrero03

I have an assignment ... but it's really unnecessary to post all the details up. Basically, I have a header file and an implementation file (and I'm supposed to include an application file, but I don't have the slightest clue by what the professor means by that?). I have the …

Member Avatar for Ancient Dragon
0
86
Member Avatar for guitarrick

I REALLY HOPE SOMEONE CAN HELP ME ON THIS!!!! I have only today left to complete this project; and I'm lacking in some key areas to say the least. Here's the assignment: "Implement an event driven simulation of a bank. (Just customers in line - and 1 teller). A queue …

0
63
Member Avatar for DJPlayer

OK, I'm under major time constraint and having difficulty understanding some issues in my current C++ class. I have an assignment which is maybe 20% done and no assistance is available. The final and assignment due date are SOON. So what I'm offering is maybe phone/chat assistance and I'll pay …

Member Avatar for ithelp
0
111
Member Avatar for amarhp

[code] class sample { public : sample() { cout<<"\n In C'tor"; } void fun1() { cout<<"\n In fun1()"; } void fun2() { cout<<"\n In fun2()"; } ~sample() { cout<<"\n In D'tor"; } }; main() { sample *s = new sample; s->fun1(); delete s; s = NULL; s->fun2(); } [/code] Hi …

Member Avatar for amarhp
0
115
Member Avatar for toolbox03
Member Avatar for toolbox03
0
76
Member Avatar for nyt1972

Hello Friends, I got this assignment and need help to start, I dont need the code at the moment coz I will have to o it my self, but at now I just need hints to start it. The assignment is: [B][U]Del command[/U][/B] Time Limit: 1 Second Memory Limit:32768K Special …

Member Avatar for nyt1972
0
109
Member Avatar for Linda1

My homework requires me to write a program for a matrix that bubble sorts in descending order, then multiply by two and output results Tried doing these in different ways, maybe, someone out there can help.. #include <iostream> #include <iomanip> #include < cmath> using namespace std; const int NO_OF_ROWS = …

Member Avatar for Prabakar
0
177
Member Avatar for wing43

im making a random question game. what im having trouble with is figuring out the correct way to make it check the answers this is what i have. [CODE] for(int r=0; r<10; r++) { int theDice = ( rand() % 10) +1; answer[theDice]; cout<<question[theDice]<<endl; cout<<"Response: "; cin>>inquestion; if (strcmp(inquestion, answer[theDice]) …

Member Avatar for Ancient Dragon
0
112
Member Avatar for nurulshidanoni

Why the selection sort output not appear? Anybody knows how to correct it? [CODE=C++] #include < iostream > #include < string > #include < cmath > #include < iomanip > #include < fstream > using namespace std; void SelectionSort ( int *y , int n )//selection sort function { int …

Member Avatar for nurulshidanoni
0
138
Member Avatar for toolbox03

Want to ask how to detect new line For example, I need to read in a text file in this format John 123 Y 1 abc def ghi Jane 456 N 1 xyz Jack 789 N 1 xxx xxx how do i detect the empty line and read in the …

Member Avatar for toolbox03
0
957
Member Avatar for MJFiggs

I have been working on this problem so much, I have started to think in Binary. what I am supposed to do is put User defined numbers in acending order. Here is what I tried. (please dont laugh) [CODE]#include <iostream> #include <iomanip> #include <vector> using namespace std; void testSort(int [], …

Member Avatar for MJFiggs
0
113
Member Avatar for DogsAfire

I am working on a program (using MS Visual Studio 2005 professional) and have incorporated some Standard Template Library vectors. The program is very math intensive. When I run in debug mode, the debug checking provided by STL slows the program to the point that I am getting no work …

Member Avatar for Ancient Dragon
0
113
Member Avatar for rkesmodel

We have a need to modify a program on a DOS machine written in Borland C++ version 3.1. Our customer threw away the Borland manuals some time ago. In particular we need the manuals detailing how to use the compiler in DOS. Help anyone? Thanks. Roy

Member Avatar for rkesmodel
0
178
Member Avatar for c++ newbie

this is a c++ program. ok. so this is my problem where i am supposed to get data from one file, read it in and make the proper adjustments to it, and output it on to another file. i'm supposed to use structs. the input file has this data: 348 …

Member Avatar for Ancient Dragon
0
155
Member Avatar for Adrian99420

Hi, I wish to output a string from a textbox to another file, here is what I wrote: [code] FILE*myfile; myfile=fopen("D:\\Profiles\\DqGw47\\Desktop\\hello.txt","a"); fprintf(myfile,"%s\n",textbox1->text); fclose(myfile); [/code] In my hello.txt: Set wallpaper= My problem is how can I control where to fprintf my string. In this example, how can I output the textbox …

Member Avatar for Ancient Dragon
0
141

The End.