49,761 Topics

Member Avatar for
Member Avatar for mca.narender

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 …

Member Avatar for Ancient Dragon
0
182
Member Avatar for chode1

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[], …

Member Avatar for jonsca
0
143
Member Avatar for Obsidian_496

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 …

Member Avatar for macobex
0
128
Member Avatar for Syrne

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 …

Member Avatar for Syrne
0
152
Member Avatar for MasterGberry

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. …

Member Avatar for MasterGberry
0
146
Member Avatar for Martje

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 …

Member Avatar for jonsca
0
84
Member Avatar for tallyhop

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 …

Member Avatar for tallyhop
0
156
Member Avatar for baldwindc

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 …

Member Avatar for arkoenig
0
1K
Member Avatar for nickx522

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 …

Member Avatar for nickx522
0
103
Member Avatar for jae5086

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 …

Member Avatar for jae5086
0
148
Member Avatar for t_mac219

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 …

Member Avatar for t_mac219
0
133
Member Avatar for chode1

#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 = …

Member Avatar for chode1
0
80
Member Avatar for franciscar

// 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"); …

0
75
Member Avatar for tallyhop

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 …

Member Avatar for tallyhop
0
457
Member Avatar for franciscar

[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"); …

-2
72
Member Avatar for gizmo7008

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] …

Member Avatar for gizmo7008
0
113
Member Avatar for Chocolatemoon

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 …

Member Avatar for Chocolatemoon
0
165
Member Avatar for yogibear13

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 …

Member Avatar for SgtMe
0
189
Member Avatar for arsnic

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. …

Member Avatar for arsnic
0
578
Member Avatar for gpjacks

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 …

Member Avatar for Fbody
0
124
Member Avatar for Ninjah

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 …

Member Avatar for Fbody
0
5K
Member Avatar for alainigban

[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] …

Member Avatar for Fbody
0
245
Member Avatar for tech9x

[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 …

Member Avatar for mike_2000_17
0
127
Member Avatar for jae5086

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 …

Member Avatar for jae5086
0
96
Member Avatar for Martje

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]?

Member Avatar for Martje
0
57
Member Avatar for pbbv
Member Avatar for Nirvin M
0
62
Member Avatar for narlapavan

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..

Member Avatar for daviddoria
-1
135
Member Avatar for Martje

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 …

Member Avatar for Martje
0
235
Member Avatar for sallubhai

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 …

0
106
Member Avatar for kshaaban

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. …

Member Avatar for kshaaban
0
207

The End.