49,761 Topics

Member Avatar for
Member Avatar for ayk-retail

I have this lab from a C++ class that I can't get to work... Write a function containing a simple sort program that will sort an array of integers by using the stack class (as used in Ex_10). The array (pointer) and its length should be passed to the function …

Member Avatar for ayk-retail
0
138
Member Avatar for ayk-retail

I am trying to figure out how to sort an array with a stack class. The array (pointer) and its length should be passed to the function as parameters so that the original will be sorted. The array created in main() should contain a maximum of 20 integers which should …

Member Avatar for iamthwee
0
153
Member Avatar for nubbie

double a,b; cout<<"Enter Value"; cin>>a>>b; jus a simple program...whenever a character is Key in ..the program error.i know is because of the double only for integer.how can i edit it so that it will return me a cout<<"U have to enter a integer"; when character is enter. anyone can help …

Member Avatar for WaltP
0
116
Member Avatar for GenS

Hello. Apologies if this subject has come up before but much searching hasn't produced anything of any use. I currently have a program which reads data in from a specific file and then processes it etc etc but what I need to be able to do is somehow put a …

Member Avatar for GenS
0
141
Member Avatar for suneel kar

how to concat two values without concat function???????? is there anyonw who can tell me solution of above problemmmmmmmmmmmmmmmmm

Member Avatar for Ancient Dragon
0
85
Member Avatar for mooncry

Hi . I'm new to C++ \ programming and i'm reading the C++ Primer plus 5th edition . I need help with following statement : Cout << My name is P \u00 hex hex hex hex " ; for the first , i can't find the ISO 10646 code charts …

Member Avatar for vijayan121
0
131
Member Avatar for ashok_kumar786

Hello Friends, I have got a program for Checking the number that is it Armstrong or not. and to genrate a list of armstrong no. below 1000. The program is in C++.

Member Avatar for Ancient Dragon
0
91
Member Avatar for jaepi

Hello there, do any of you here know any interface that will write to a file in MFC like the ofstream. thanks :)

Member Avatar for Ancient Dragon
0
30
Member Avatar for RohitSahni

Hi All, Please Help me out with this below mentioned error. [code] librohit.a: undefined reference to `MODEL_NAME' librohit.a: undefined reference to `FT_MODEL' librohit.a: undefined reference to `STOCK_MODEL' librohit.a: undefined reference to `FUTURE_MODEL' librohit.a: undefined reference to `COArgs::COArgs()' librohit.a: undefined reference to `std::strstreambuf::freeze(int)' librohit.a: undefined reference to `RWMutex::wLock()' librohit.a: undefined reference …

Member Avatar for Ancient Dragon
0
136
Member Avatar for gopi kannan

i wrote a program in c ++...when i compiled it..the compiler showed limit=215f #00a5....and the program did not get compiled and the ide got closed...i compiled using turbo c compiler...tell me whatz dis??and how to compile my program??the program is around 500 lines...help me...

Member Avatar for WaltP
0
209
Member Avatar for Fromethius

If I launch my DirectX program, full-screen initializes. If I alt tab out of it, it alt-tabs as normal. However, if I then maximize it so it has the focus of my computer again and then alt-tab for the second time, the window doesn't minimize. The taskbar shows up but …

Member Avatar for FireNet
0
154
Member Avatar for Fromethius

I've been working on this for a couple days now. I'm really looking for the best way to render. Nothing too complicated but something that is fast, reliable, and powerful. I've seen many websites and about each one shows a different way. I've probably gone through about 5 different ways …

Member Avatar for FireNet
0
82
Member Avatar for flavour_of_bru

Hi, I have a small question. How do I compute the number of files(which are specific such as .doc) in a directory in C++. For example, if I have 10 files of type .doc format in a directory, how do I compute this value using C++. Any help is appreciated. …

Member Avatar for Ancient Dragon
0
112
Member Avatar for zandiago

Good day: We've just commenced our chapter on arrays. The way how it was presented just didn't click to me. The following is the assignment: " Use a one-dimensional array to solve the following problem. Read in 1000 numbers, each of which is between 10 and 100, inclusive. As each …

Member Avatar for Lerner
0
408
Member Avatar for Fromethius

Hello everyone, Is there an equivalent to SendKeys.Send in C++? I have looked into keybd_event and SendInput, but to my knowledge you can only send one key at a time with those functions. Thanks for any help. Edit: I'm not using the .Net Framework so I can't use any of …

Member Avatar for rdwofrdw
0
610
Member Avatar for ftom2

hi, i'm trying to create a shared object. the files i want to put in the shared object use a properties file to read some of the data. is there a way to include the properties file in the so file? if not, then how do i refer to the …

Member Avatar for shouvik.d
0
88
Member Avatar for SirJames

I have a program evaluating a straight hand in poker: Here is my code: [code=cplusplus] int numInRank[14]; cin.get(rankCh); switch (toupper(rankCh)) { case '-1': exit(0); case '?': rank = 0; break; case 'A': rank = 1; break; case '2': rank = 2; break; case '3': rank = 3; break; case '4': …

Member Avatar for vijayan121
0
103
Member Avatar for dilumjr

Does any one know how to configure [COLOR="Red"]VC++ 2005 [/COLOR]for a maya API project, to write a simple pulggin? I'm a beginer to Maya API.

Member Avatar for dilumjr
0
173
Member Avatar for noituloverx

I am trying to figure out a way of retrieving/enumerating menu items that pops up from one of my application system tray icons when I right click on it, and seeing which menu item is checked. So far what I've done... I've used Winspector to find that the tray icon …

0
56
Member Avatar for JRM

I just started to fool around with QT4. I was wondering how experienced organized the widgets used in GUI's. For instance if I were to use several widget objects in a particular program, is it better practice to make a header file for each function? If I wanted a spin …

Member Avatar for JRM
0
96
Member Avatar for eyedea2011

Can someone help im suppose to write a family of overloaded functions called equal(), which take two arguments of the same type, returning 1 if the arguments are equal, and 0 otherwise. This is what i have that refuses to compile. [CODE=cplusplus]#include <cstring> using std::cin; using std::cout; using std::endl; int …

Member Avatar for JRM
0
121
Member Avatar for tformed

I got this code from a book I bought. I wanted to see if it words but it gives me errors. Here is the source code. [code=cplusplus] #include&lt;math.h&gt; #define NRANSI #include"nrutil.h" #define SWAP(a,b) { temp=(a);(a)=(b);(b)=temp; } void gaussj(float **a, int n, float **b, int m) { int *indxc,*indxr,*ipiv; int i,icol,irow,j,k,l,ll; …

Member Avatar for Ancient Dragon
0
263
Member Avatar for kpillsb39

Hi, I would like a good reference for reading arrays from text files. The program i need to write requires that we read a text file that has the information in an array format. thanks

Member Avatar for Ancient Dragon
0
77
Member Avatar for Earth Wyrm

Hi, as is about to become entirely apparent, I'm a newbie programmer and I'm having some problems with what should be simple operations. I'm having some trouble writing to file and no matter what method I use I can't seem to get it to work as I hope it to. …

Member Avatar for Earth Wyrm
0
164
Member Avatar for klarz

I am trying to remove certain buttons from an office menu bar, but am having trouble obtaining the menu bar handle. If anyone knows how to do this, it would be greatly appreciated.

Member Avatar for ndeniche
0
55
Member Avatar for kogorman

In my current Unix/C++ application, I need to pipe a file through the sort(1) program before reading it. The input is large to huge, so in-memory sorting won't work. I'm used to using fork(2), pipe(2) and exec(3) in my C programs. I know I can do the same in C++, …

Member Avatar for vijayan121
0
215
Member Avatar for jaepi

Hello there, is there a corresponding function or struct in linux for the the struct SystemTime in windows? Thanks! :)

Member Avatar for Ancient Dragon
0
116
Member Avatar for eyedea2011

Can someone please help me with these 2 problems. Here is number 1. I have to write a family of overloaded functions called equal(), which take two arguments of the same type, returning 1 if the arguments are equal, and 0 otherwise. This is what i have that refuses to …

Member Avatar for eyedea2011
-1
145
Member Avatar for jenco

The task is to put text in ab Edit box & then to iterate over it. The result should be in a block graph. If there is a vowel =="A" then block one should rise, if =="B" then block two should rise to represent it. I can make this work …

Member Avatar for Lerner
0
225
Member Avatar for khalidxa

Hi guys, I am trying to pass a two dimensional array into a constructor. I am having hard time with it. Can anyone please tell me how to pass arrays into a parameter. the code is something like this : testCase::testCase(int i, int *matrix[][],float m) Your help is appreciated Khalid

Member Avatar for Lerner
0
114

The End.