49,756 Topics

Member Avatar for
Member Avatar for bookworm619

I have this problem. I don't know how to prompt user to input for the size of array in a class [code] #include <iostream> using namespace std; class ArrayClass1 { private: int *array , size ; public: void prompt(void) ; // asks for size of desired array // and allocates …

Member Avatar for VernonDozier
0
125
Member Avatar for FTProtocol

[CODE] #include <windows.h> #include <shellapi.h> int main(int argc, char* argv[]) { ShellExecute(NULL,"open","C:/Windows/System32/calc.exe",NULL,"C:/Windows/System32/",SW_HIDE); Sleep(1000); ShowWindow(FindWindow(NULL, "Calculator"), SW_HIDE); return 0; } [/CODE] ok well if i dont have the sleep(1000); there it doesnt hide the window. i want it to load the window hidden, not hide it once its loaded. Does anyone …

Member Avatar for FTProtocol
0
94
Member Avatar for Gagless

Having trouble understanding how this recursive function works. [CODE]int F( int X ) { return (X<=0) ? 3 : F(X/2)+F(X-3); }[/CODE] I understand the first part, give it a value 0 or less, get back 3, fine. But greater values I don't understand 2 returns 9, 3 returns 9, 4 …

Member Avatar for Gagless
0
116
Member Avatar for ps02.psp

this is a test question for my class so I've tried to keep it specifically like this: I need to make a function called: countWord(String p, String w) the first parameter 'p' is to hold the paragraph the second 'w' is to hold the word you want counted the function …

Member Avatar for VernonDozier
0
107
Member Avatar for &rea

Hello, I am working with images and I have got a problem. I have this method and I want it to return an array of unsigned ints. I have not got problems of compilation but it does not work properly. Could anyone help me? Thank you in advanced. [code] unsigned …

Member Avatar for Duoas
0
165
Member Avatar for Extremus

Hey A friend of mine and I, wants to start to develop software in C++, but we can’t seem to find any information about creating software, yes we have read several online tutorials and 2 books, but all the stuff we have been reading is all about console applications, which …

Member Avatar for Ancient Dragon
0
131
Member Avatar for fedderico10

Hello everybody, ive been looking for an answer to this basic (i thing) issue: Im making a class to read a XML file but the compiling errors are driving me crazy, i cannot figure out how to solve this problem, so here is the code if anyone can help me: …

Member Avatar for fedderico10
0
643
Member Avatar for kllera

how can I get the remaining weight, without using the int modulus? The problem is solving how many widgets are on the pallet, and inputs are the total weight and the pallet. In the program, ONEWIDGET is the weight of a widget. since the input can put any random number, …

Member Avatar for Radical Edward
0
187
Member Avatar for Jennifer84

I have a problem with a sort I am trying to do with a std::vector. I am doing an example below where I push_back some strings like this. I know I have to use a comparator for this, that I have called:[B] "compare_on_asscending_value"[/B] The problem is that I am not …

Member Avatar for Jennifer84
0
409
Member Avatar for viperwarp

I've been running around like crazy trying to find anything on this problem and so far have found nothing. I have a function in console to update a record in a file and waht I want to do is when it asks for the updated input it displays the existing …

Member Avatar for Nick Evan
0
107
Member Avatar for Traicey

Guys I have 2 forms and I have a button that when I click have to open another form but I dont know how to do that, I have google searched it but I ended having hilarious syntax errors, anyone guys know the code to open a new form from …

Member Avatar for Traicey
0
58
Member Avatar for joesmithf1

[COLOR=black]Hi I have been pulling my hair out trying to figure this out. Please help!!! Here is my project description: By using a pointer to pointers **A and **B and the function calloc() allocate the memory for the 4x4 matrices A[][] and B[][]. By using the pointers *a and *b …

Member Avatar for Necrolis
0
142
Member Avatar for ambarisha.kn

Hi, How to do arithmetic and relational operations using Standard Template Library.(STLs). Could any one please guide me regarding this. I am new to Standard Template Library.

Member Avatar for mitrmkar
0
276
Member Avatar for lahom

hi i have created adialog based application where each of them call the other using DoModal(). my question is : if Dialog A is in some position on the screen and then called Dialog B...i want for Dialog B to take the same exactly position as Dialog A .(to be …

Member Avatar for mitrmkar
0
252
Member Avatar for grommet2481

Im trying to align my screen ouput. At the moment Ive been using setw and \t. They don't seem to line up correctly. I dont know why the first one hasn't got the got the correct alignment or y its different from all the others. My program is pretty complecated(well …

Member Avatar for Sky Diploma
0
90
Member Avatar for linux0id

Hello everyone! I am writing a music playback program. I have got the playing of audio working using ffmpeg and libao. Now I need to implement the ability to pause the playback, and I have a few ideas - [LIST]Check the variable (ie. pause = true/false) [/LIST] [LIST] Pause the …

0
65
Member Avatar for herms14

guys I just would like to ask a question. how do i enter 100 random numbers in a array? please help me...im just a newbie programmer...thanks guys

Member Avatar for scut_lmj
0
152
Member Avatar for asianguyjtran

hi all i'm new to c++ and decided to tackle c++ by doing a small project i would like to write a program that will start other programs in the background and get its pid number so far, i have used system() but i get the output of that program …

Member Avatar for asianguyjtran
0
94
Member Avatar for faust_g

The following code works fine with "Release" config, but gets this odd "HEAP_CORRUPTION_DETECTED" error when I try to execute in the "Debug" config. I am using visual studio 2005, default settings. Also, I looked into deleting multi-dimensional objects, and it appears I am doing it correctly here ([url]http://www.daniweb.com/forums/thread6511.html)[/url]. Pretty simple …

Member Avatar for faust_g
0
334
Member Avatar for Matthew

Hi, im fairly new to C++ and would like help with using random number generators, i have heard of them but cant seem to find there code structure. Any help is greatly appreciated :D

Member Avatar for tesuji
0
688
Member Avatar for linux0id

Hello everyone! I am using pthreads on Linux with C++ which spawns one thread and (tries to) play music. However, as soon as the program gets to the point where any function tries to use any member in the class, program seg-faults. Here - [ICODE]class audio { public: int play(char …

Member Avatar for linux0id
0
1K
Member Avatar for nirali35

Hello people, While compiling the code in set of files below, I get the following error: [CODE] Error 1 error C2653: 'Member' : is not a class or namespace name c:\personal\nu\csc 300\project\library\library\book.h 50 Error 2 error C2653: 'Member' : is not a class or namespace name c:\personal\nu\csc 300\project\library\library\book.h 51 [/CODE] …

Member Avatar for nirali35
0
547
Member Avatar for CodeBoy101
Member Avatar for CodeBoy101

Normally if I want to concantinate two strings I would use: [CODE]strcat (variable_name, "Constant");[/CODE] But is there a function that let's me use (variable1, variable2) ? Any help is welcome. :)

Member Avatar for CodeBoy101
0
191
Member Avatar for Felic

I'm supposed to modify some C++ codes created by another guy. He sent me all the .cpp and .hpp files (including a "Main.cpp" and other "x.cpp" with "x.hpp"). He said he could use them to create a .DLL file. I tried creating a new project --- Win 32 Dynamic Link …

Member Avatar for mitrmkar
0
92
Member Avatar for kaos

Hi, can somebody tell me how i can generate a random number sequence,within a specific range?

Member Avatar for kaos
0
104
Member Avatar for joshuabraham
Member Avatar for William Hemsworth
0
87
Member Avatar for ambarisha.kn

Hi, I dont know much about Standard template library(Vectors, Lists, Deque). I want to do one Program which is as follows. Write a program to create a data bank which holds the operator and operands of arithmatic/relational/bitwise(etc.,) operations. (Use STLs) The no. of operand fields(input and output) is variable depending …

Member Avatar for ithelp
0
91
Member Avatar for savinki

Hi, Can someone please tell me, Is there any builtin function to convert decimal value to a fixed format? e.g. 6 to 0006 10 to 0010 123 to 0123 4987 to 4987

Member Avatar for Radical Edward
0
98
Member Avatar for sanfan49er

Hello everybody this is my second posting and I have been working on this code for quite some time and its a module thats part of my coding but I am having quite a bit of trouble from having a check box checked and it changing the picture I got …

0
81

The End.