49,761 Topics
| |
Hello guies please help me how can I typecast string to char | |
[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 = … | |
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); … | |
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 … | |
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")). … | |
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 … | |
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 … | |
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. … | |
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 : … | |
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] … | |
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; … | |
| 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 … |
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 … | |
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 … | |
somebody please help me.. can you tell me about struct in C++.. please give me example and explaination.. | |
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] … | |
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 | |
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 … | |
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 … | |
Hi.... Please send me a sample programme for to connect FTP using c++ Thanks & Regards Kumar.E | |
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 … | |
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] | |
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 … | |
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 … | |
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 … | |
// 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); … | |
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? | |
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 … | |
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 … | |
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 … |
The End.