49,757 Topics

Member Avatar for
Member Avatar for chotib

hi, i want to ask using AssignFile, Reset, FileSize, BlockRead, CloseFile on c++ builder (codegear 2009) ?? [CODE]system.AssignFile(objfile,OpenDialog1->FileName); system.Reset(objfile,1); FSize=system.FileSize(objfile); system.BlockRead(objfile,Buf,SizeOf(Buf),NumRead); system.CloseFile(objfile);[/CODE] and get error : [BCC32 Error] UnitFile.cpp(1102): E2294 Structure required on left side of . or .* thanks in advance sorry my english bad

Member Avatar for chotib
0
247
Member Avatar for n_angelov

Hello everybody :) I've to solve C++ problem and there it is: [B]You have to write a program in C++ that computes the difference between the maximal and the minimal value of function f(x,y) obtained on an integer point in a given rectangle [a, b] x [c, d]. Your program …

0
91
Member Avatar for red999

I recently made the transition from Netbeans to Visual C++. Anyway I am having a little trouble configuring some settings. Does anyone know how to create project templates? I have been messing around with the settings, but I can't seem to find an option for it. I want a template …

0
60
Member Avatar for sidra 100

Problem Statement: Expense class You are required to write a class name “Expenses “. Expenses class has • Constructors • Destructor • Write a function to add expenses for a month • Write function which displays these expenses. • Write a function which calculates savings for a month. • Expense …

Member Avatar for jonsca
0
135
Member Avatar for Stefano Mtangoo

/home/stefa/Projects/C++/evstevemd/Additions.h|7|error: expected class-name before ‘{’ token| /home/stefa/Projects/C++/evstevemd/Additions.h|9|error: expected ‘)’ before ‘parent’| ||=== Build finished: 2 errors, 0 warnings ===| Here is the file. Cpp file is empty. There is something wrong with My class and inheritance knowledge. What is wrong? thanks [CODE=C++]#ifndef ADDITIONS_H #define ADDITIONS_H #include <wx/panel.h> #include <wx/notebook.h> class …

Member Avatar for Stefano Mtangoo
0
778
Member Avatar for hbweb500

I'd like to create a matrix class using the vector library. I have seen many examples of creating a matrix class using standard C arrays, and in each of these, arrays are declared in the private section of the class declaration, and initialized in the constructor function, as such: [code=c++] …

Member Avatar for mrnutty
0
209
Member Avatar for death_oclock

I can't find, within my project directories, any option to specify where I want my .exe to start in. I want to do this for that sake of .dll and other file references. Any help?

Member Avatar for jakesee
0
102
Member Avatar for goody11

Hey, I made a function that will automatically conjugate a Spanish verb and I want to put the different conjugations in different Edit Text controls but when I use SetDlgText it comes up with a bunch of i's with accents. Here is the code that I've narrowed it down to. …

0
68
Member Avatar for ge6a93

Hello, i'm developing a game in VC++ 6.0 with MFC. My screen resolution is 1280x1024 pixels, so i have a background bitmap with this size. The problem is when i change the resolution to be smaller, some parts of the pictures are not seen. I'm using BitBlt() function to display …

Member Avatar for Duoas
0
76
Member Avatar for atticusr5

hey guys im using vi to try and compile code for school in main i keep getting errors in the functions READ and PRINT and they say that the variable in the function call is not within the scope. here is my code: [code] #include <iostream> #include <iomanip> #include <fstream> …

Member Avatar for Ancient Dragon
0
99
Member Avatar for Web_Sailor

Hi, I am trying to solve a riddle. I am passing a value to multimap like this:- combined = string1+"\t"+string2 and then setting the output to fix size using maximum length and [CODE] cout.width(combined.length()) cout.fill(' ') [/CODE] The problem is that the fixed length format is not coming properly but …

0
59
Member Avatar for jiapei100

Hi, Just wonder whether this is a bug of GDB? I'm trying the debug my project and would like to watch one of the member variables "m_iFrames" can not be watched !!! The error messages are like: DEBUG>>00000671-var-create - * "m_iFrames" DEBUG>>00000671^error,msg="mi_cmd_var_create: unable to create variable object" I'm just wondering …

0
52
Member Avatar for bkruep

I have a quick question with visual studio. This is the first program I have ever tried with the 2010 version and get the following error... 1>------ Build started: Project: test, Configuration: Debug Win32 ------ 1>Build started 1/17/2010 4:53:30 PM. 1>_PrepareForBuild: 1> Touching "Debug\test.unsuccessfulbuild". 1>ClCompile: 1> All outputs are up-to-date. …

Member Avatar for jbennet
1
147
Member Avatar for wolfkrug

It is supposed to take a ceral box measurement in ounces and convert it to metric tons, as well as tell how many boxes it would take to equal a metric ton. Here it is. [CODE] #include <iostream> using namespace std; double ounces; cout << "Enter the box weight in …

Member Avatar for wolfkrug
1
174
Member Avatar for 006ruler

Hi, I'm a complete noob to C++. I am currently just making text games where you input a string and depending what that string is and what you have in your "inventory", the program will cout something else. I would like to know how i would be able to save …

Member Avatar for cpeister
0
162
Member Avatar for Jetsetivan

Hi everyone, This is my first post so go easy on me please :). I am trying to compile a simple program that takes two binary numbers and computes a third based on bit operations (i.e. C = A&B, C = A|B etc....) but I run into the "vector subscript …

Member Avatar for Jetsetivan
0
198
Member Avatar for codezy

hii ,, i have a sorted array x[]={1,2,10}, and a "target" i want to search recursively for the sum of the elements of the array with any combination without any repetition of elemt in the array (i.e. if target=11 then we can get it from the array (1+10) but if …

Member Avatar for codezy
0
124
Member Avatar for clutchkiller

Just wanting to see how you guys view this, but as far as I understand, a constructor for a class is only used to initialize variables. Is this true? THanks

Member Avatar for Narue
0
85
Member Avatar for Pramirez3

Please help, and point me in the write direction... okay so I'm basically doing a simple address book. i can create contacts and display them and search for them but... when i return to the main menu and attempt to search again... i cannot open the file... or if i …

Member Avatar for cpeister
0
218
Member Avatar for hollilee06

I am currently taking a class and I am confusing on how to configure VLSM, metrics advanced distribution, etc can anyone help me out?

0
58
Member Avatar for makan007

[CODE] #include <iostream> #include <cstdlib> #include <ctime> #include <cstring> using namespace std; struct UKStudent { char name [30]; int noTest; float mark [10]; int final; char grade [30]; }; struct OverseasStudent { char country [30]; char name [30]; int noTest; float mark [10]; int final; char grade [30]; }; union …

Member Avatar for Ancient Dragon
0
421
Member Avatar for danibootstrap

Hi, In one app I am porting code from jave to c++.The program compile fine but crashes when it enters into the ported code section.I use STL linked list implementation from here: [URL="http://www.syncdata.it/stlce/stl_wce.zip"]http://www.syncdata.it/stlce/stl_wce.zip[/URL] Java code: [CODE] LinkedList toProcessx; LinkedList toProcessy; void phaseUnwrap() { int startX = inputWidth / 2; int …

Member Avatar for Phaelax
0
230
Member Avatar for cwarn23

I thought I would ask while this thread is active "What is the best Ubuntu c++ compiler that allows VC++ code?" I really like Visual C++ as it has great debugging features that Dev-c++ could never match. But how do I compile my VC++ projects to run on Ubuntu?

Member Avatar for Stefano Mtangoo
0
417
Member Avatar for Sumer7720

please tell me how to get bitmap image in programm while using graphics mode. please write the code for getting bitmap. i shell be thnkful to u.

-1
36
Member Avatar for GlobexCo

Hello all! I need a little help in installing plplot. I've got Windows Vista, Visual c++ 2008. I didn't see any tutorial on how to install it... somewhere they talk about cmake, but I can't understand what I've got to do to include all the libraries of plopt... any step-by-step …

0
54
Member Avatar for gmahlert

The program uses an implementation of the Sieve of Eratosthenes to generate a small list of prime numbers which is subsequently used for direct comparison to find the prime factors for any whole number up to and including 478939. This limitation is due to the primitive method used to generate …

Member Avatar for GeniusDex
0
295
Member Avatar for jakesee

Hi there, I'm so frustrated now =( I have read the forums and this [URL="http://www.goingware.com/tips/member-pointers.html"]http://www.goingware.com/tips/member-pointers.html[/URL] But i still cannot get this to work: [CODE]class FileParser { public: void load(char* file) { MyDocumentClass _mDoc; _mDoc.LoadFile(file); // is this correct syntax? parse(_mDoc, &(FileParser::saveElement)); // or is this correct? parse(_mDoc, &(this->saveElement)); } private: …

Member Avatar for Narue
0
92
Member Avatar for emi teliyadu

I want to learn c++ and downloaded a gcc compiler. but the compiler isnt functioning. when i click on the application window, a black screen just flashes with the text:"c++.exe:no input files" What could be wrong?what do I do about it?

Member Avatar for jonsca
0
102
Member Avatar for DavidDD

Hello there! This is my first post so I'd like to say hello to everyone on the forums! Anyway, I am coding a hangman game. I read my words from a text file with ifstream, then I randomize a word and I set the string "sSelectedWord" to the randomized word. …

Member Avatar for DavidDD
1
126
Member Avatar for Xeros606

1. I'd like to become at least competent with C++ (good enough to work on large scale projects or even get a job as a C++ programmer), how long do you think it will take? I have some experience with java, and am learning with the PDF version of [URL="http://www.amazon.com/Beginners-Guide-Second-Guides-McGraw-Hill/dp/0072232153"]this …

Member Avatar for abdelhakeem
0
133

The End.