49,761 Topics
| |
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 … | |
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 … | |
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 … | |
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 … | |
how to concat two values without concat function???????? is there anyonw who can tell me solution of above problemmmmmmmmmmmmmmmmm | |
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 … | |
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++. | |
Hello there, do any of you here know any interface that will write to a file in MFC like the ofstream. thanks :) | |
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 … | |
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... | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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': … | |
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. | |
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 … | |
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 … | |
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 … | |
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<math.h> #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; … | |
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 | |
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. … | |
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. | |
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++, … | |
Hello there, is there a corresponding function or struct in linux for the the struct SystemTime in windows? Thanks! :) | |
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 … | |
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 … | |
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 |
The End.