49,761 Topics

Member Avatar for
Member Avatar for Glitch100

Hi all Well this is my first post, and this looks like a good site to ask... Basically, i have Visual Studio 2008, without a clue on using it- My Request: To gain aid in making a program which does and has the following features- Drop down menu which contains …

Member Avatar for Ancient Dragon
0
126
Member Avatar for foolishdrift

Hey guys, I'm working on a problem where I need to use the direct-search method to find the intervals of the roots and bisection method to find the roots of the following equation x^3-3.5x^2+3.48x-0.85. Here is the code I have so far, the problem I'm getting is when the code …

Member Avatar for iamthwee
0
181
Member Avatar for srinivasan34

Hi ALL I am Srinivasan S Saripalli. I have a VC++ doubt which I have notified below. Hope you can give me a solution. I have developed a ATL,COM 32-bit Service and in the Service I am implementing Timer functionality using either `SetWaitableTimer` or `CreateWaitableTimer`. When I compile my Service …

Member Avatar for mitrmkar
0
218
Member Avatar for Moporho

I am trying to get my 2d array to total up values. It is laid out perfectly, but my values do not calculate. Is my math wrong? Please help?? [code] #include <iostream> using std::cout; using std::cin; using std::endl; #include <iomanip> using std::setw; int main() { const int DAY = 7; …

Member Avatar for Moporho
0
143
Member Avatar for WonderWomen204

Hey there. It's Erinn and I just have a quick question about my assignment that I am working on. I have everything right except for one part...don't u hate that...lol. Anyway, here is the code and assignment below. Sorry there is no code, but it's been a long day and …

Member Avatar for WonderWomen204
0
129
Member Avatar for Duanea2k
Member Avatar for laharven

[COLOR="red"]Hey guys, I have just convert my coding from vb to c++. However when i paste the codings inside another new project, it could be debugged but the designer view shows me error.[/COLOR] "C++ CodeDOM parser error: Internal Error Hide at Microsoft.VisualC.CppCodeParser.OnMethodPopulateStatements(Object sender, EventArgs e) at System.CodeDom.CodeMemberMethod.get_Statements() at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, …

Member Avatar for laharven
0
250
Member Avatar for mikky05v

create a program to produce a tableof cosines for given angles. Note that the program is to read an input file and write outputto an output file. You should prepare many input files and an input file that includes a negative number and a value between 90o and 180o among …

Member Avatar for Ancient Dragon
0
95
Member Avatar for cpp_noobsauce

Heres the problem: A scientist has been conducting experiments and recording results of those experiments. Two pieces of data per experiment have been recorded: temperature in degrees Celsius and a concentration ratio (in the range – 0.5 to 2.0). Validate user inputs. heres what I have: Part1 - Writing to …

Member Avatar for Ancient Dragon
0
111
Member Avatar for phalaris_trip

I would like to create a specialisation of.. template <typename CEnemy_Ty> class CEnemyManager {}; ..for a class called CTank which is a CEnemy But by defining.. template <> class CEnemyManager<CTank>{} ..it means I have to copy+paste huge chunks of unchanged code, just to change say one or two functions. By …

Member Avatar for phalaris_trip
0
94
Member Avatar for tm5054

[code] #include <string> #include <iostream> using namespace std; int main() { int loanAmount[10]; int numMonths[10]; string keepGoing; int counter = 0; do { cout << "Please enter a loan amount: "; cin >> loanAmount[counter]; cout << "Please enter the number of months: "; cin >> numMonths[counter]; counter++; cout << endl …

Member Avatar for Ancient Dragon
0
97
Member Avatar for max8888

[code=cplusplus] PROC bHook(LPSTR BaseLibraryName, LPSTR BaseFunctionName, PROC NewFunctionPointer, bool UnHook, PROC Custom) { PROC hBaseProc; return hBaseProc; } BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { switch (ul_reason_for_call) { case DLL_PROCESS_ATTACH: OutputDebugString("--------Detour dll Load!"); bHook("KERNEL32.DLL", "CopyFileW", (PROC)MyCopyFileW, false, 0); break; case DLL_THREAD_ATTACH: break; case DLL_THREAD_DETACH: break; case …

Member Avatar for max8888
0
201
Member Avatar for BBustos

I'm having problems with my DisplayEntry function. What this program is supposed to do it display numbers that have been validated earlier in the program. The problem is it is displaying random numbers stored in the computer. I'm gonna include the struct declarations, the function call, and the actual function. …

Member Avatar for Ancient Dragon
0
119
Member Avatar for buddha527

Hello, I need help adding two arrays of different sizes [i.e. 3005 + 305 = 3310 ]. I am sorry but I do not have any code to post because I am completely lost on how to even go about starting this, so any hints or help on what to …

Member Avatar for vmanes
0
1K
Member Avatar for CodeBoy101

Hi I need an example of how threads are coded and implemented in Dev-C++, any help would be greatly appreciated. :)

Member Avatar for CodeBoy101
0
183
Member Avatar for Black Magic

Hey, I was just mucking around when using rand() and noticed every time it comes out as a output of 41? [CODE=C++]#include <iostream> using namespace std; int main() { unsigned int randomNumber; unsigned int guess; unsigned int guesses; randomNumber = rand(); cout << randomNumber << endl; system("PAUSE > nul"); }[/CODE] …

Member Avatar for Narue
0
135
Member Avatar for bschmitt78

Hello, I need to provide 2 overloaded constructors, each one displaying a date in a different format. Below is my class implementations, header file and main() function code snippets. The code is followed by the compilation error I get. I have tried a number of things, mainly changing the order …

Member Avatar for Ancient Dragon
0
193
Member Avatar for ar31an

Write a program that determines the day number (1 to 366) in a year for a date that is provided as input in the format dd-mm-yyyy. As an example, 01-01-2000 is day 1. 31-12-2001 is day 365. 31-12-2000 is day 366 because 2000 is the leap year. A year is …

Member Avatar for hammerhead
0
102
Member Avatar for Mark515

[code] #include <cstdio> #include <cstdlib> #include <iostream> using namespace std; static const int password = 1705898; int main() { int secondnumber; while(true); { cout << "Enter Password"; cin >> secondnumber; if (password = secondnumber) { cout << "Welcome Matthew"; } else { cout << "password Rejected"; } } system ("PAUSE"); …

Member Avatar for Ancient Dragon
0
104
Member Avatar for Kaushalya

Hi all, i'm getting following error messege when i use switch(temp.month) { //work fine with case 8: case 08: amonth=temp.day/30; temp.day%=30; temp.month+=amonth; break; default:break; } error:illegal digit '8' for base '8'. I can't understand why it is.could someone help me out asap.

Member Avatar for vmanes
0
84
Member Avatar for Mark515

[code=cplusplus] #include <cstdio> #include <cstdlib> #include <iostream> using namespace std; static const int password=1705898; int main; { int secondnumber; while(true) cout>>("Enter Password") cin<<(secondnumber) if(password = Enter Password) cout<<"Welcome Lukus"; else cout<<"Password Rejected"; system ("PAUSE") return 0; } [/code] i am getting the error C2447: '{' : missing function header (old-style …

Member Avatar for Ancient Dragon
0
231
Member Avatar for picass0

how can i pass argc and argv to other function? [CODE] int main(int argc, char *argv[]) { abc(wat should i put here to pass argc and argv?) } int abc(wat should i put in here also?) { process.... } [/CODE]

Member Avatar for Ancient Dragon
0
73
Member Avatar for Nemoticchigga

Does anybody know where I can get some basic source code on the creation and use of threads (I know about threads, just never coded them, and reading up on them, some of the inputs into CreateThread are confusing)?

Member Avatar for Nemoticchigga
0
103
Member Avatar for k2k

Can anyone point out what is wrong with this function? suppose I have a linklist which has already been populated with 100 nodes containing objects and linking from one to another. The object contain id, lastname, firstname... and I need to find a specific id and delete that node. (basically …

0
59
Member Avatar for Chiciuc_Maxim
Member Avatar for vijayan121
0
973
Member Avatar for knewc

Just some challenge code for ya, and some help for me on my independent study of C++ code a program that checks whether a string is a pseudo-palindrome.(a sentance that is spelled the same backwards/forwards. first code the following functions: char * remove_punct(char * str, char * remstr); char * …

Member Avatar for ithelp
0
158
Member Avatar for Black Magic

Hi, I've been reading "C++ In 21 Days", I read functions a while back and decided to write some, i wrote the code and it gave me a error, so i copied and pasted code from the book and still got a error, you must see from my point of …

Member Avatar for Black Magic
0
249
Member Avatar for amhadi

> Write a program that defines a class to keep track of student grades.The information the student class includes are the student’s first name, last name, a six-digit ID number, and a struct marks the struct marks contains five programming assignment scores, a midterm score, a final exam score, and …

Member Avatar for ithelp
0
140
Member Avatar for Adrian99420

Hi, I created 2 window form using visual C++, I am trying to display the string typed by user in second window form's textbox. Here is what i wrote, but the code is not working: Form1.h private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { tabPage1->Text=Form2().textBox1->Text; }

Member Avatar for mitrmkar
0
95
Member Avatar for Andy130

Hi everyone. i have a problem that's killing me here. (as everybody else...) this is friggin rediculouse though and i really need to understand what's up. i have a project due tomorow, and i got basically nopthing to turn in because it does not actually run... the problem is i …

Member Avatar for mitrmkar
0
120

The End.