49,761 Topics

Member Avatar for
Member Avatar for Cosa

I am having trouble reading in data from a file. The data file store the information of albums and its respective track info eg 1234 //this is id number Scarlets Walk //album name Tori Amos //artist 24 //price 2 //stock Pop //genre Track A //track name 10 30 //track length …

Member Avatar for Cosa
0
118
Member Avatar for rikkie

Hi guys, I've been searching for a C++ compiler for my Xda Exec, running Windows Mobile v5. It looks like CEdit will do the job (unfortunately not free) but then I have to download the compiler from a "third party" I'd be grateful to hear from people who are using …

Member Avatar for Ancient Dragon
0
48
Member Avatar for coderoobie

Hi happy people I've bin trying to sort items in a list box, the problem is obviously: It doesn't work Please, any modifications to the code below is fully and unconditionally allowed. [code=C++] void __fastcall TForm1::btnSortClick(TObject *Sender) { //sort ascending if (rdAscending->Checked){ bool swopped = true; int iEnd; int arr …

Member Avatar for coderoobie
0
167
Member Avatar for STUDENT#101

so this is what I have done [code] #include<iostream> #include<string> void menu(); using namespace std; char choice; void digcom (); void matrices (); int main () { menu(); return 0; } void menu() { cout<<"\tMENU" <<endl<<"MATHEMATICS(matrices select A)\n"<<"DIGITAL COMMS select B\n"<<"c TO EXIT"<<endl; cin>>choice; while(choice!='c') { switch(choice) { case ('A') …

Member Avatar for mitrmkar
0
162
Member Avatar for STUDENT#101

hi they is this program that I have created and the problem now is that I need it to be infinate unil he user enters the letter c. I hafe created a while loop then made the variable which stores this choice global after each function has ran i then …

Member Avatar for Narf!!!
0
100
Member Avatar for vanhai

it's the link in the web site [URL="http://www.vietnamfuntravel.com"]example[/URL] has one sub page as : [URL="http://www.vietnamfuntravel.com/hotels.php"]subpage[/URL] .when we click on button book now . how to get the link : [URL="http://www.vietnamfuntravel.com/book_tour.php?tour=49&title=Phan%20Thiet%20%20Mui%20Ne%20(02%20days%20%2001%20night)"]follow[/URL] in to code for new mail ???

Member Avatar for iamthwee
0
92
Member Avatar for The Buzzer

hi there I want to give a for loop in my programm that if any student fails in more than four subject he will not be able to go to the next level. if average is less than 40 then the student will be failed . i tried in many …

Member Avatar for Clockowl
0
90
Member Avatar for The Buzzer

hello coders, I am facing problem to filing my programm. it opens the intended file but problem is it is not saving any datas. I want to see the results in notepad or word. I am using windows vista and my soft is dev C++. I dont want to use …

Member Avatar for mitrmkar
0
138
Member Avatar for Narf!!!

Good morning, good afternoon and good evenings (to cover almost all posibilities) The error message is as follows in DEV-C++ compiler [QUOTE] Compiler: Default compiler Building Makefile: "I:\cpp\Makefile.win" Executing make... make.exe -f "I:\cpp\Makefile.win" all g++.exe include/Test.o include/Objeto.o include/ConjuntoBase.o include/IteradorBase.o include/ConjVector.o -o "TestEstructurasDiscretas.exe" -L"C:/Dev-Cpp/lib" include/ConjVector.o(.text+0x45):ConjVector.cpp: undefined reference to `vtable for ConjVector' …

Member Avatar for Narf!!!
0
91
Member Avatar for daviddoria

I have a very simple class [code] class Point { public: Point(); Point(double x, double y); double x_; double y_; } [/code] the problem is, I can't assign my class to another instance, ie: [code] Point A(2,4); Point B(); B = A; [/code] It says the lvalue must be modifiable. …

Member Avatar for Narf!!!
0
210
Member Avatar for Wiki_Tiki

Hi everyone, I'm busy working on a word processor in Visual C++ 2008 and I need some help with a Print option, and a Page Setup option. What I'm trying to do is print the contents of a RichTextBox control (txtdisplay), and can't find any way to get it to …

Member Avatar for mitrmkar
0
262
Member Avatar for jonabie

im a highschool student and i really need help bout this.... how can i make a program that will enter my name and display it automatically.....

Member Avatar for jonabie
0
68
Member Avatar for THAPELO

Suppose we have to write a program where a mark out of 60 is entered and then the corresponding symbol has to be displayed. A message indicating whether the person has passed or not, should also be displayed. We decide to write the program in three steps. You should submit …

Member Avatar for Narf!!!
0
102
Member Avatar for perun_x

Hi, I need to check keys pressed in another process. How can I it reach? I'm writing simple utility for linux/debian, which runs video player in process no.1. On background is another process, which will read pressed keys and will interact with the 1st process. Problem is, that it cant …

Member Avatar for vijayan121
0
108
Member Avatar for bhoot_jb

i am currently working with VC++ 6.0. i have just begun with it and wrote my first non-MFC code in it..however i have faced a problem in which my program terminates immediately on executing it..and i mean immediately..it doesnt even show the window that i create through that program.. however..later …

Member Avatar for William Hemsworth
0
188
Member Avatar for genesis_react

Can anybody help me with this.. we are to make a diamond pattern of asterisk..I had the codes below..My problem is.. we are only allowed to use one asterisk and one space to make the program and inside the diamond pattern we are to put the letters A,B, and C.. …

Member Avatar for VernonDozier
0
123
Member Avatar for Linz-30

Hi everyone, I am a complete novice and need to write a pseudo-code for a query (photo.xql): xquery version "1.0"; (: Generate a photo page :) declare namespace request="http://exist-db.org/xquery/request"; declare namespace transform = "http://exist-db.org/xquery/transform"; import module namespace history = "http:// localhost/history" at "history.xqm"; let $id := request : request-parameter ('id', …

Member Avatar for VernonDozier
0
75
Member Avatar for SphinCorp

I've made a program in c++ (unmanaged) How would I make it into a dll for use in other apps? also, instead of gets, or cin.getline, how do I pass a variable (named COM) from an app to the dll? (BTW: in using Dev-C++ 4.9.9.2)

Member Avatar for Ancient Dragon
0
67
Member Avatar for ChroNoS

I am still very new to C++ and I'm a bit :confused: too. I am trying to make a program which takes the ascii string from a text file and converts it into binary. I have been able to come up with this code so far: [ICODE] #include <iostream> #include …

Member Avatar for ChroNoS
1
98
Member Avatar for astrogirl77

Hi, I'm new to C++ and am hoping to find help with coding a simple C program, am wanting to obtain code and functioning exe's. I code in an old version of Visual Basic 4.0, I have a simple app that is about 3 and a half pages of code …

Member Avatar for William Hemsworth
0
128
Member Avatar for Opsive

How do you convert a UTC tm structure to a UTC time_t structure? mktime would work except it converts the time back to local time. Here is what I have so far: [code] time_t t = time(NULL); tm *ptm = gmtime(&t); [/code] Thanks, Justin

Member Avatar for Radical Edward
0
2K
Member Avatar for BradenMurphy

I've got 3 classes 2 subclasses that link to a main class. (electric tools, fuel tools connect to Core tools). What i've done is made a handler class(Hardware) from these classes which has a void display in it. [CODE] vector<Hardware> hardware_stock; Hardware record; record.read(cin); hardware_stock.push_back(record); for(vector<Hardware>::size_type i = 0; i!= …

Member Avatar for BradenMurphy
0
98
Member Avatar for yazooney

When compiling a program i get this: Cannot open include file: 'afxwin.h': No such file or directory This is because I dont have an MFC library. This is because microsoft visual studio C++ 2008 express edition does not have an MFC library (need to buy the proffessional edition). Anyone know …

Member Avatar for ArkM
0
130
Member Avatar for dmlandrum

I'm trying to create a exception handling class for a large-ish project I'm working on which inherits from std::exception. I found this [url=http://www.cplusplus.com/doc/tutorial/exceptions.html]tutorial[/url] at cplusplus.com and followed its basic instructions and used its derived class as a template. Here is my Exception class as it stands right now: [code=C++]#include <exception> …

Member Avatar for dmlandrum
0
810
Member Avatar for micheal_lobster

hye, anybody know how to convert 8bit grayscale image to halftone or dither? Would you share the source code for that? :)

Member Avatar for micheal_lobster
0
611
Member Avatar for chanda gul

hi all, i am checking the 32 byte directory entry in FAT32 file system and i am getting size of some files as negative...how can a file be of negative size....can any one tell me why it is giving negative file size....?

Member Avatar for Ancient Dragon
0
66
Member Avatar for bomtk

Hi every one, i got a trouble with opening and reading multi files (200 files) in. These files include 4 columns and 1010 rows. event i have tried many times but it still can not work. if possible, could you please give me some suggestion on my code as the …

Member Avatar for bomtk
0
129
Member Avatar for death_oclock

I have the following globals defined (the relevant ones, anyway): [CODE] DWORD dwNumMaterials; LPD3DXBUFFER lpMaterials; LPD3DXMESH lpMeshBody; [/CODE] And the call to D3DLoadMeshFromX is here: [CODE] D3DXLoadMeshFromX(L"body.x", D3DXMESH_SYSTEMMEM, lpD3DDevice, NULL, &lpMaterials, NULL, &dwNumMaterials, &lpMeshBody); [/CODE] When this is called, it returns a generic error (0x80004005). Also, if it is needed …

Member Avatar for death_oclock
0
126
Member Avatar for mahlerfive

My goal here is to write a small class to keep track of memory I allocate/deallocate so that I can more easily find memory leaks. To do this I overloaded the operators new, new[], delete, and delete[]. In those methods, I allocate/free memory as usual, but also make a call …

Member Avatar for Duoas
0
132
Member Avatar for huyfamily

Dear All, I'm writing a code which could read the following file: (input.raw) contained: 11 12 13 21 22 23 31 32 33 While reading this file I want to do the following: -Move cursor to the beginning of that file which is before "11", then start reading -After reading …

Member Avatar for Duoas
0
90

The End.