49,761 Topics
| |
Hi, I am converting a vc++ (32bit )application in 64bit application. I am totally new on VC++. Please give me your valuable advice and solution. If you tell me the step of converting of 32bit applicaton to 64bit application then it will be greate help. i got following error while … | |
its says that lastfile is undeclared #include <iomanip> #include <iostream> #include <fstream> #include <string> using namespace std; //void displayData(ofstream &, item_info[], int, int &); struct item_format { string ID; string item_name; int current_stock; int ordered_stock; float retail_price; float selling_price; }item_info[30], greeting_cards, note_cards, calendars, pens, candles, wind_chimes; void enterData(ifstream &, item_info[], … | |
There are function and class templates in C++. They can operate with generic data types. There's some ifnormation on it. [URL="http://www.cplusplus.com/doc/tutorial/templates/"]http://www.cplusplus.com/doc/tutori al/templates/[/URL] This is a compile-able example from the site linked above: [CODE] #include <iostream> #include <conio.h> template <class T> T GetMax (T a, T b) { T result; result … | |
Hello there! So I have an assignment where I am given a text file with customer information that I need to convert into a "label" format. The original file has caret (^) symbols marking the different lines to be organized. I have the input totally finished, the only thing I'm … | |
I seem to be having an issue with using multiple class constructors? I did it for one other program and didn't have an issue. I can't seem to find the bug. Since it is complaining about multiple constructors it won't let me make Plorg1 in the 3rd set of code. … | |
Hey, i have a CLR proyect where i have 2 forms, i am trying to acces the form1 class via form2. what i did is that i included the header.h of the form in form.h but it failed so i went back and icluded thesame folder both of them are … | |
I need to take the username entered by the user and compare it to the array to locate its position in the array then compare the password and pin entered by the user. I followed tutorials on how to write the linear search function(I do have to use a linear … | |
I have been struggling with this for a while. Will someone please help me? The issue is within a while loop. The while loop is reading info from getline, copying values from an input file to (1)double array type char[i][20] , (2)array type double [i]. The input file is as … | |
I have an array of numbers and i have to find lowest and highest and drop them. When i display the numbers on my output screen it has to display HIGH for highest and LOW for lowest instead of the actual numbers. this is an int array so clearly i … | |
The purpose is to enter menu items and their calorie content [done, works], sort the array [done, not tested], and use a binary search to recall the array [errors]. The following are the [I]current[/I] errors I get. My big issue, I think, is trying to get the right info into … | |
Hey guys. I'm writing an heap-sort algorithm (code is below) but for someone reason my restore_heap function is incorrect somewhere. I understand how the algorithm is working. do y'all have any suggestions? #include <iostream> #include <stdio.h> #include <vector> #include <cmath> #include <ctime> #include <algorithm> using namespace std; # if 0 … | |
#include <sstream> #include <iomanip> #include <iostream> #include <fstream> #include <string> using namespace std; struct format { string ID; string item_name; int current_stock; int ordered_stock; float retail_price; float selling_price; } greeting_cards, note_cards, calendars, pens, candles, wind_chimes; int main () { string line; string data[6]; int datacounter = 0; string substr = … | |
// HookDLL.cpp : Defines the entry point for the DLL application. // #include "stdafx.h" #include "HookDLL.h" BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { //Flesh out the entry point pending full implimentation // reserve the DLL handle ghModule = (HINSTANCE)hModule; // register system-wide message SWM_TRAYMSG = RegisterWindowMessage("TRAY_ACTIVATED"); … | |
I am working on reading data from a file into a struct array. The first line of the file tells how many users there are, then the following lines are the username, password, and a pincode.So the file is setup as follows: 15 mah123 happy 1234 bah123 moody 4567 ...etc … | |
[CODE]// HookDLL.cpp : Defines the entry point for the DLL application. // #include "stdafx.h" #include "HookDLL.h" BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { //Flesh out the entry point pending full implimentation // reserve the DLL handle ghModule = (HINSTANCE)hModule; // register system-wide message SWM_TRAYMSG = RegisterWindowMessage("TRAY_ACTIVATED"); … | |
First off, I know I have a few other errors besides the sorting code. I am working on figuring those out as well. I need to sort the names in the file alphabetically. I did put a code which I thought would work, but doesn't. Lines 39 through 50. [CODE] … | |
I have made a program that uses struct where a user can input a grade,average, and their name. I am trying to make it so their can be three students each with a grade average and name but I can not figure out how to make a loop so it … | |
Hello there, This is my first time posting on these forums. I was wondering if I could please get some help, there is a minor glitch in my code but I cannot figure it out. Basically, I have to create a class called XYPoint, and according to given criteria, have … | |
Ok, I'm not new to C++ but I am used to running a g++ compiler vs Microsoft's VS C++. I understand what this error should mean. It should mean that I'm missing a ';' on the line before or in the class Polygon. I can't seem to find anything wrong. … | |
Im into the last stages of my C++ class and am having trouble with a project that has been assigned. Here is the problem and thanks in advance for whoever helps out! Declare an object of type bucket 1). Use the SetGallonSize() method to set the bucket size to 5.0 … | |
Hi there, I am new to C++ programming. What I want to do is, after I browse for a file using openFileDialog and after transforming the path from a System::String into a Char * what I want to do is to use the file`s path to open that file, but … | |
[CODE]#include <iostream> #include <string> using namespace std; int GCD(int x, int y); int main () { int ans, num, a, b, c, d, e, f, g, y; int h = 0; int w = 0; char ans2; char ans3; cout << "[1] Math algorithms " << endl; cout << "[2] … | |
[code=c++] #include <iostream> #include <fstream> #include <cstring> #include <string> #include <stdio.h> #include <stdlib.h> #include <limits> using namespace std; void call(int i, int * test) { cin >> test[i]; } int main() { int sizeOfArray; int *temp; int i; cin >> sizeOfArray; int * test; string * command; command = new … | |
Ok, here is the loop from my code, a for loop inside a do...while. The title is a tad misleading, I couldn't edit it though. Probably not the most efficient coding to do what I want but I have no errors and it is so close to working. When I … | |
I am trying to write \r\n as a string but when i do it apears as a newline. Here is the code i am using : [CODE]textBox1->Text="test"+"@\r\n";[/CODE] but it shows as : [QUOTE]test@ [/QUOTE] how would i let it show as [QUOTE]test/r/n[/QUOTE]? | |
i want play .wav file with c++ if this is possible help me -PBBV | |
i have done one proj.. in solaris where the data comes from lower level higher level at the time of saving data the application is hanging. how to use thread concepts for not hanging data.. | |
I made a second form but whenever i try to put it in my project i get lots of errors. I am just puting : [CODE]#include "Picture_viewer.h[/CODE] but i am getting list of errors : [QUOTE]1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\objidl.h(5934) : error C2872: 'IDataObject' : ambiguous symbol 1> could be 'C:\Program Files\Microsoft … | |
Hi, I want to draw some rectangles with the same size and different colors by using an array but donĀ“t know exactly how to do it in the for-loop. Thanks for help! [CODE]class Figure { private: int **figur; int row,col; public: Figure() : row(5), col(20){ } void allocate_place(int r, int … | |
Hey everyone! I have been working on some c++ code which point tracks a user and extrapolates their co-ordinates within 3D space. i have the co-ordinates in c++ stored as variables and would like to use these variables within the Blender game engine to position an object within the scene. … |
The End.