49,761 Topics
| |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 ? | |
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) … | |
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 … | |
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 :) | |
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 … | |
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 … | |
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 … | |
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- … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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 … | |
How do I overload the input and + operator for quaternion class? | |
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 … | |
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 = … | |
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]) … | |
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 … | |
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 … | |
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 [], … | |
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 … | |
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 | |
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 … | |
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 … |
The End.