49,761 Topics

Member Avatar for
Member Avatar for san_sarangkar
Member Avatar for stilllearning
0
166
Member Avatar for amerninja2

[COLOR="Red"]Im using the Dev-Cpp compiler. Im trying to create a program like the one below...[/COLOR] [CODE]#include <iostream> #include <windows.h> #include <stdio.h> #include <iomanip> #include <fstream> #include <stdlib.h> using namespace System; using namespace System::IO; using namespace std; int main() { string *com2; wchar_t com; char loop; loop = 'a'; while(loop = …

Member Avatar for Ancient Dragon
0
126
Member Avatar for kalku23

I keep getting this error and cant figure it out thanks for the input. runcs216p6.cxx: In function `int main()': runcs216p6.cxx:57: error: parse error before `catch' [code] int main() { ifstream inFile; ofstream outFile; inFile.open("in.data"); outFile.open("out.data"); if(inFile.fail() || outFile.fail()) { cout << "input or out file opening failed" << endl; exit(1); …

Member Avatar for Ancient Dragon
0
61
Member Avatar for cerb63

I need some help trying to figure out the void statements for my project and also getting this second program Factorial Program without recursion to work right. [code=cplusplus] #include <iostream> #include "PROJECT_13_1_H.h" using namespace std; int main() { bool houseHasBigAce = false; srand(time(0)); int houseHand = drawOpenHouseCard(houseHasBigAce); cout<<endl<<endl; cout<<"Welcome to …

0
47
Member Avatar for TheBeast32

Hi, I'm reading a bitmap manually to try and make a program that does steganography, but I can't read the file correctly. The headers I read come out completely messed up, and they fail the check to see if I'm reading a bitmap file or not (if (FileHeader.bfType != (int)"BM")). …

Member Avatar for TheBeast32
0
153
Member Avatar for padawan

Hi everyone, I have a problem with a dll file. I have a 32 bit dll file and a program (x86 debugged) which uses the functions exported from the dynamic link library file and working well. I changed my program codes to 64 bit along time ago without an error …

0
79
Member Avatar for Aric69

evaluate a given postfix expression containing some one-letter integer variables a-z (in lower case) whose values are given in a data file. the name of the data file will be : c:\\temp\\375_prog4_stack_data.txt and you can hard code this name in your program. there will not be more than 26 different …

Member Avatar for Lerner
0
157
Member Avatar for ryanp321

Hi, i'm new to this forum and i've got a problem. I need to be able to see how much memory my applications are using. E.g Sizes of arrays, memory used then deleted .. i need to know whats going on. I would like to know how to do this. …

0
35
Member Avatar for tatainti55

Alright, i hope someone can give me a straight answer. How do i export integers to another function? Because when i compile and run this code, i get an error telling me: "[code]12 D:\test.cpp `numberr' undeclared (first use this function) [/code] The code i used was kinda like this : …

Member Avatar for tatainti55
0
103
Member Avatar for nosa2008

i have this function f(x)= e^X-3X^2 I need to write a computer program that find all three roots by the use of newton raphson method and option of finding a root by use of fixed point iteration. this is all i came up with so far.. i need help... [code=cplusplus] …

Member Avatar for Freaky_Chris
0
100
Member Avatar for Liszt

How is it possbile to return the current hour, minute and DayOfWeek. I have tried out these examples. The two first returns 0 wich is strange. And the third does not go through the compiler. What can I be missing ? [code] System::DateTime moment = System::DateTime(); int hour = moment.Hour; …

Member Avatar for skatamatic
0
80
Member Avatar for Thew

Hello, I need help in my project, where I want to catch, read and forward some packets given to another application. Example: some packets is incoming for application MyApp on port 888. The another application is running on background and listening for communication with MyApp. If the server sends packet …

Member Avatar for Salem
0
96
Member Avatar for toucan

I'm writing a C++ project using OpenGL in Microsoft Visual Studio 2005. I already have code for importing a jpeg image, but I don't know how to place it on a plane in 3D so I can view it in either ortographic or perspective projection. Also, how do I set …

Member Avatar for skatamatic
0
108
Member Avatar for dapcigar

I have an assignment in Modular programming.. Have been able to make the program work... the lil problem am having now is that when i try to load the file i created, it keeps adding the memory location. Moe like it's adding an additional data insead of just loading the …

Member Avatar for Salem
0
126
Member Avatar for faisal_pedaw

somebody please help me.. can you tell me about struct in C++.. please give me example and explaination..

Member Avatar for skatamatic
0
126
Member Avatar for kavithabhaskar

Hi folks I am new to C++ i tried to reverse the characters in an array [code=cplusplus] #include <iostream> using namespace std; int main() { char kavi[]={'s','w','o','r','d','\0'}; cout<<kavi<<endl; cout<<"now reversing the word"<<endl; int i; while(kavi[i] != '\0') { i++; } cout<<"Length is"<<i; int j; for(j=10;j>=0;j--) { cout<<kavi[i]; } } [/code] …

Member Avatar for skatamatic
0
6K
Member Avatar for Traicey

Guys I need help with creating telephone input mask on the text box I am using windows programming, I need something like this ( )- 1823121 Any help would be highly appreciated

Member Avatar for Alex Edwards
0
61
Member Avatar for elsa87

hi everyone..i need to crack a symmetric key by implementing a method called CrackSymmetricKey I must use the TEA encryption algorithm below: [CODE=c++] union myMsgType{ unsigned long textConverted[2]; char text[9]; }; class TEA_Algorithm { public: void CrackSymmetricKey(union myMsgType plaintext, union myMsgType ciphertext); void Decrypt(unsigned long k[], unsigned long ciphertext[], unsigned …

Member Avatar for ArkM
0
108
Member Avatar for xyzt

hello, i need your opinion about selecting a networking library. ACE or Boost.Asio ? anyone know pros and cons of these? as i saw, ACE is stronger and well documented. but i didn't work with non of them and if anyone worked with these, it would be great to be …

0
49
Member Avatar for sandiyakumar12

Hi.... Please send me a sample programme for to connect FTP using c++ Thanks & Regards Kumar.E

Member Avatar for jencas
0
42
Member Avatar for twram

I've just started learning c++ this week from the book, c++ from the beginning by jan skansholm, im working througth the exercises and have become stuck on this one: sin(x) = x - x^3/3! + x^5/5! - x^7/7! + .................. write a program to calculat sin(x), dont include terms in …

Member Avatar for twram
0
102
Member Avatar for number87

can someone explain in simple terms how to actually use the following <ctime> functions? I have read thru a few C++ reference websites but the explainations given are very vague and complex. [B]difftime struct tm time_t mktime ctime[/B]

Member Avatar for sidatra79
0
1K
Member Avatar for Liszt

I have a little problem to dock a grid with a panel. What i have done is to first dock a panel in the top of the form. What i then want to do is to dock a datagrid so it Fills the whole form but not so it will …

Member Avatar for Liszt
0
153
Member Avatar for Daco

hey there everyone i was working on a program of mine when that should read the file in hex and display the value of a certain hex address (0x000068FC as example). but i have no clue where to begin except that ppl say it should work with fseek & fread …

Member Avatar for Ancient Dragon
0
178
Member Avatar for saneeha

I am saving the output of my program in .csv file. I need to save a variable's value in one column, but the value may contain comma. When the program encounters a comma it places half of the variable's value in the next column. Is there any way through which …

Member Avatar for Alex Edwards
0
76
Member Avatar for Se7Olutionyg

// file: PayrollFunctions.cpp // Computes and displays gross pay and net pay given an hourly // rate and number of hours worked. Deducts union deus of $15 // if gross salary exceeds $100; otherwise,deducts no dues. #include <iostream> using namespace std; // Functions used... void instructUser(); float computeGross (float, float); …

Member Avatar for rati
0
118
Member Avatar for dmanw100

I am trying to build a project to learn the SDL libraries but Im getting these errors: [Linker error] undefined reference to `SDL_RWFromFile' [Linker error] undefined reference to `SDL_LoadBMP_RW' [Linker error] undefined reference to `SDL_DisplayFormat' ... I am including "SDL\SDL.h" but according to the documentation it should work. Any ideas?

Member Avatar for dmanw100
0
111
Member Avatar for Alex Edwards

I tried implementing a template Array-class that allows initial size of global arrays to be known at compile time, specified by the user. When I specify a class of type <1, 1> size, the file compiles fine. However, when I specify a class of any other numeric type, in either …

Member Avatar for Alex Edwards
0
200
Member Avatar for afg_91320

im making a program where i will displaying the sales of each store using a sales bar chart. user will input sales for each store. after the input, a sales chart must be displayed using a for loop, with each '*' = $100 in sales question: how can i make …

Member Avatar for afg_91320
0
281
Member Avatar for killdude69

Ok, I am making a DLL Library for programs using Win32 WinAPI, It contains classes for common controls. I had only five errors, the errors were because I had did a bad typecast and misspelled some variables, once I worked out every single error, 15 new errors arose and they …

Member Avatar for killdude69
0
234

The End.