49,761 Topics

Member Avatar for
Member Avatar for Japus

Hello I'm trying to read the ID3 tag from a file. For now, I print out the string that I've read and I can see the title, year and so on but in the specs it says that the first 7 bytes contain ID3, the version, some flags and the …

Member Avatar for Salem
0
184
Member Avatar for Annettest

Hi everyone: I am fairly new to c++. I have created a dynamic array, but I am having trouble initializing it. My goal is to create a grid, and then assign an initial condition (for example, initial temperature = some value) on the grid points. I know that it would …

Member Avatar for Annettest
0
174
Member Avatar for awaisysf

hello can u help me to find the combination of very large number in c/c++ ??

Member Avatar for mrnutty
-1
71
Member Avatar for sidra 100

plz i m having error at line 71 and 83[CODE]#include <iostream> #include <stdlib.h> using namespace std; class expense { private: int income; int gbill; int ebill; int wbill; int saving; public: expense(int, int, int); int display(); void setTotalIncome(int); void setEBill(int); void setWBill(int); void setGBill(int); int getEBill(); int getWBill(); int getGBill(); …

Member Avatar for Agni
0
73
Member Avatar for neoeinstein

I am very new to C++ and have written only basic algorithms. In school we use turbo c++ compiler but now i have to attend a workshop for which I need to be able to use a gnu compiler and I do not know how to change my programs for …

Member Avatar for neoeinstein
4
673
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
137
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
779
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
213
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
70
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
164
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
428
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

The End.