48,986 Topics
| |
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 … | |
Hello there, I am currently trying to solve Towers of Hanoi for N pegs using C++. I am implementing the towers in the form of a link list. Suppose there be three towers , TowerA,TowerB,TowerC Then for TowerA: 3 2 1 TowerB: - TowerC:- shall become TowerA: TowerB: 3 2 … | |
Hi all. I am trying to write a template class queue for an "assignment" and I got stuck by what I think is a syntax error. To be honest, the assignment was MUCH easier than that but after having it completed I thought to be interesting to explore new possibilities... … | |
These are the directions: Recursive Descent Parsing Consider the following BNF grammar: E -> T + E | T - E | T T -> P * T | P / T | P P -> I | (E) I -> a | b | ... | y | z … | |
With this piece of code when i call read i get the output [ICODE]Start of loop Archived filename = ./Data/Test.log End of loop Start of loop Archived File = DATA MANAGER End of loop[/ICODE] Edit: It is exactly what i want except it adds there odd characters at the end … | |
I had completed my code for my project, then decided to change it. I now have an error that I do not understand. C4715 which according to MSDN.com is 'function' : not all control paths return a value. The specified function can potentially not return a value. I have included … | |
I am trying to open a file in loop and print the data which my teacher request. however, there is blank in the out put file. and , how to indent the body of loop?? there is my code, please someone tell me what i did wrong!! thanks~` there is … | |
Hi everyone, I was writing a program and out of the 4 functions, one void function is giving 4 errors that I am not able to understand. The function is : void Conversion(double, double, char). I am posting my program, including the function that is giving the errors. I have … | |
Visual Studio 2005 is giving me heartburn while working with templates. Does anybody know what is going on with the following code, and the errors below? It says there is a syntax error, but I cannot find it. [CODE=C++] #ifndef DEQUEUE_H #define DEQUEUE_H #include <iostream> #include <list> template<class Item> class … | |
I am trying to implement a queue based on a Linked List that I had to write previously. It is templated and for some reason I am getting the following error using g++ when I compile: [CODE]g++ LinkedQueueMain.cpp -o LinkedQueueMain /tmp/ccqwStpK.o: In function `main': LinkedQueueMain.cpp:(.text+0x2ee): undefined reference to `LinkedQueue<char>::operator=(LinkedQueue<char> const&)' … | |
I am trying to implement the GSL uniform random number generator into my C++ program. Below is my entire program and I am having difficulties getting it to run properly. Any help would be greatly appreciated. Thanks for your time! [code=cplusplus] #include <stdio.h> #include <iostream> #include <math.h> #include <cstdlib> #include … | |
Can you use a static library on visual studio 2008 that was complied on visual c++ version 6 or do I have to recompile the static library? | |
im quite new to code and are using c++ to read files. Through some examples i have managed to read a file from top to bottom like this. The problem is that i will need to read the file from bottom to top instead. Is there a reversable method for … | |
Oooookay...this is really strange. I'm working on a program in MSVC++ 9.0 and it works fine when I hit "play" in the development environment, but when I manually navigate to the debug folder and click on the program, windows vista pops up an error saying that my "program has stopped … | |
I did all the coding, and I think that it is correct, but I dont understand why the program does not output the prime numbers!!! [code=cpp] #include<iostream> using namespace std; int main() { double newn; char ans; do { cout << "This is a program that will help you find … | |
[QUOTE=schamb;711245]also am curious as to how decimal to hexidecimal would work too just wanting to learn more about programming language and am very in experewienced[/QUOTE] You are going to have to get a lot more specific on these questions. General advice: 1. Read in a number in decimal. 2. Do … | |
Hey guys, I know you wont give me a direct answer, but that's not what I'm looking for. Here is the assignment: "Procedure: 1. Have the user input an integer between 2 and 19 (inclusive). If the number inputted is not within that range, reprompt the user again until a … | |
I have the following code (as you will see im using the same template as earlier...:$ [CODE] #include <cstdio> #include <cstdlib> #include <iostream> using namespace std; int main(int nNumberofArgs, char* pszArgs[]) { int z = 1; int x = 2; int y = 3; bool b; b = (x < … |
The End.