49,766 Topics

Member Avatar for
Member Avatar for 666kennedy

im trying to show what is stored in arrays, basically to make sure my program is working fine, i have got it to print which element in the array it is, but how do u access the array and show what value is stored in it. my code is basically …

Member Avatar for Freaky_Chris
0
86
Member Avatar for tech291083

Hi, I am on Windows xp professional edition and looking for a free develeopment tool/ide for some self c++ learning. The one I can across is Dev-C++ 5 (currently beta) from [URL]http://www.bloodshed.net/devcpp.html[/URL] It is supported on XP but it is still beta version and I want something stable. Can any …

Member Avatar for Salem
0
2K
Member Avatar for kyosuke0

the program i have to write involves a dynamically linked stack to evaluate if the grouping symbols '[B]([/B]' , '[B])[/B]' , '[B]{[/B]' , '[B]}[/B]' , '[B][[/B]' , '[B]][/B]' in expressions are balanced. The expression is input through keyboard. For example: expression: {A+(B-C)*D} is balanced expression: T+{(R+M)/G-V*L is not balanced expression: …

Member Avatar for kyosuke0
0
201
Member Avatar for ItecKid

So basically, my assignment was to write quick sort and merge sort using both vectors and arrays, and time how long it takes to sort the the arrays and vectors of various sizes. However, the code is producing inconsistent results. Sometimes it seg faults, other times it produces unfriendly messages …

Member Avatar for ArkM
0
641
Member Avatar for FrancisC07

[CODE][/CODE] average=a[counter]+b[counter]+c[counter]+d[counter]/12; can someone can help me? modify to modify this code using an for loop? thanks

Member Avatar for vmanes
0
277
Member Avatar for kodak

I have developed a program in an XP enviroment using Borland Builder 6. It has since been installed on a computer with Vista. The program opens text files which are stored in the root directory of the program. The pathname is set in global constants like "name.txt". This works fine …

Member Avatar for kodak
0
120
Member Avatar for VBNick

hi, I have used LoadImage() to load a bitmap as HBITMAP. If I use SelectObject() to attach it to an HDC, and then BitBlt() it to the screen, that works fine. I need an array that would be compatible with the one produced by CreateDIBSection(). I have tried GetBitmapBits(), and …

Member Avatar for VBNick
0
473
Member Avatar for sleepytoast

The idea of the entire program is to play a simplified version of war that's why its 28 cards. Anyway my problem comes from the dealRandomCard function when I compile it it says there needs to be another ) before time. I'm not sure what to do. I appreciate the …

Member Avatar for VernonDozier
0
124
Member Avatar for rana2011

the programe output the sum of the factor of a number entered by user and when he enter 0 the programe should display output with no result for 0 here is the code #include<iostream> #include<iomanip> using namespace std; int main() { int x,i; int z=1; int sum=0; while(cin>>x) { if(x!=0) …

Member Avatar for Freaky_Chris
0
74
Member Avatar for ItecKid

Hello, I am trying to write the quick sort algorithm to take in an array of 20 random integers and sort them. However, it is producing weird output for the sorted list. My code is as follows, can anyone give me a little help here? [code=C++] #include <iostream> #include <vector> …

Member Avatar for Freaky_Chris
0
107
Member Avatar for Lukezzz

How will it be possible to add "Gray" lines in a Menu (MenuStrip). I have attached a picture of how I meen. Example WordPad in Windows uses these type of menus to separate MenuChoises.

Member Avatar for Lukezzz
0
130
Member Avatar for tobeornottobe

Hello Have built a test "win32 console application" that uses a dll to interface with a piece of hardware I have. This compiles fine. I've been trying to build the same project but this time as a windows form project so I can have a proper interface for my program. …

0
40
Member Avatar for noobDriverDev

how can i develop a simple minifilter driver that will specify a drive/directory (as input) from user-mode, for example "Z:\", and communicates with the kernel-mode and then display all the files/folders exists in the user-mode. please i need a shoulder on this.. =( and thanks in advance.. -noobDriverDev-

Member Avatar for n30h
0
95
Member Avatar for jonevans2

Ok so I'm having some problems with this program I have to write as you might be able to tell it takes strings from the user either in english or morse and translates them to morse or english respectively. I got it working from English -> Morse for strings with …

Member Avatar for MosaicFuneral
1
149
Member Avatar for asifjavaid

Hi, I am new to COM Programming. I want to initialize COM library. I am calling hr = CoInitializeEX(NULL); but hr = S_FAIL. and my code is stopped. What I have to do further to execute COM program written in VC++.NET 2005. -- Regards, Asif

Member Avatar for Laiq Ahmed
0
202
Member Avatar for FrancisC07

oopss i still have a problem!!.. What's wrong with my code? [code=cplusplus] main() { int a[4]; int b[4]; int counter,sum=0; cout<<"JANUARY"; for(counter=0;counter<4;counter++) { cout<<"Numbers of Rainfall:"; cin>>a[counter]; } for(counter=0;counter<4;counter++) { sum+=a[counter]; } cout<<"The numbers of rainfall in the first month"<<sum<<endl; cout<<FEBRUARY; for(counter=0;counter<4;counter++) { cout<<"Numbers of Rainfall"; cin>>b[counter]; } for(counter=0;counter<4;counter++) { …

Member Avatar for MosaicFuneral
0
111
Member Avatar for C++.java

I want to do coding on C++ using arrays for the numbers 20,-10,50,4,10,2,6 in ascending order.....

Member Avatar for Salem
-1
129
Member Avatar for bradbobak

[code] #include <iostream> class base { public: void print() { std::cout << "base" << std::endl; } }; template< class B > class der : public B { int i; public: virtual void print() { std::cout << (B *)this << std::endl; B::print(); } }; int main(int, char **) { der< der< …

Member Avatar for bradbobak
0
300
Member Avatar for Seamus McCarthy

Hey can anyone offer me any advice on updating my customer file, I created the blank records and can create a record in the newCustomer function but can’t seem to access that record again for updating, does anyone know where I’m gone wrong. Any help would be greatly appreciated. [CODE]fstream …

Member Avatar for ku.bis
0
166
Member Avatar for 666kennedy

basically here is my code, sorry if its untidy. you will see in the crossover function i want to use the rand. i get errors like "too many arguments for int rand()" [CODE] #include <iostream.h> #include <conio.h> #include <iomanip.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <ctime> #include <cstdlib> #pragma …

Member Avatar for ArkM
0
154
Member Avatar for FrancisC07

i need a help on how to add the value of an array to another value of an array? i dont need the whole program.. i just want to know what will i do in order to add the 4 values of an array using the for loop statement. for …

Member Avatar for FrancisC07
0
191
Member Avatar for meistrizy

Hello. Thanks in advance for helping a newbie. I am supposed to add a bottom loop (which I assume is a do while) that asks the user if he/she wishes to compute another series and as long as the answer is 'Y' or 'y' to iterate the loop until 'n' …

Member Avatar for meistrizy
0
58
Member Avatar for roidel

Hi, i found this code from an article, i want to compile this code, buat I don't have file polygon.h. Can you send file polygon.h to me, because i have search from any web buat i don't find it. This the code [code=c] #include<stdio.h> #include<conio.h> #include<windows.h> #include<math.h> #include<stdlib.h> #include<GL/glut.h> #define …

Member Avatar for jencas
0
176
Member Avatar for gm999

Hi guys, I'm quite new to C++ and I'm having problems with a simple operation. I have to resize an array of structs, but seeing as I am having a problem with the concept, i'll post an example with a simple array of integers. Please bear in mind that this …

Member Avatar for gm999
0
87
Member Avatar for samishunk

A Book shop maintains the inventory of books that are being sold at the shop. The list includes details such as author , title , price , publisher and stock position. Whenever a customer wants a book , the sales person inputs the title and author and the system searches …

Member Avatar for samishunk
0
188
Member Avatar for lmastex

Hi. I want my Insertion method in my link list class not to insert repeated elements. I have tried several ways but I have seriously ugly bugs in my code: [code=cplusplus] template <typename ListElement> void List <ListElement>::Insert() { NodePtr Ptr; Ptr = new Node; bool repeated = true; if (Ptr …

Member Avatar for Laiq Ahmed
0
173
Member Avatar for karang

Hi I have a virtual function setStartupDirectory() virtual bool setStartupDirectory(const SysString &sStartupDirectory) = 0; When I am calling this function setStartupDirectory((const SysString &)m_pApplicationFolderNarrow); I am getting this error Error 2 error C2664: 'setStartupDirectory' : cannot convert parameter 1 from 'const SysString' to 'const SysString &' Am I missing something

Member Avatar for sweeya
0
127
Member Avatar for chchiu

How to write a program that output the number of different ways of arranging the number so that the displayed numbers add up to a fixed sum inputed byt the used. For example, suppose the sum is 4. There are 8 different arrangements. It has to be listed in dictionary …

Member Avatar for ithelp
0
36
Member Avatar for ACRobison02

I have to create a program with parallele arrays that recieves information from a file telling it how many salsas their are (their can't be more than 10). One array containts the name of the salsa, the other array contains the number of salsa jars sold. Then I have to …

Member Avatar for cikara21
0
103
Member Avatar for Jwhispers

I had to write a program to add two angles together. I've got the meat done, but i'm having a hard time figuring out how to code the program when i add the angles together so that when say Seconds is more than 60 it adds 1 to minutes. example: …

Member Avatar for Jwhispers
0
263

The End.