48,986 Topics

Member Avatar for
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
107
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
41
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
152
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
175
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
117
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
110
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
184
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
278
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
232
Member Avatar for minigweek

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 …

Member Avatar for sidatra79
0
631
Member Avatar for mrboolf

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... …

Member Avatar for mrboolf
-1
149
Member Avatar for gparadox

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 …

Member Avatar for gparadox
0
113
Member Avatar for mmjack

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 …

Member Avatar for Ancient Dragon
1
103
Member Avatar for volscolts16

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 …

Member Avatar for stilllearning
0
337
Member Avatar for HaibrarAi_sY

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 …

Member Avatar for HaibrarAi_sY
0
88
Member Avatar for robgeek

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 …

Member Avatar for Sci@phy
0
193
Member Avatar for meddlepal

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 …

Member Avatar for meddlepal
0
167
Member Avatar for chunalt787

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&)' …

Member Avatar for chunalt787
0
261
Member Avatar for Cluelessluke

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 …

Member Avatar for dmanw100
0
210
Member Avatar for guy40az

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?

Member Avatar for Narue
0
40
Member Avatar for Liszt

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 …

Member Avatar for Liszt
0
160
Member Avatar for VBNick

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 …

Member Avatar for VBNick
0
224
Member Avatar for mrrko

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 …

Member Avatar for VernonDozier
0
152
Member Avatar for VernonDozier

[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 …

Member Avatar for VernonDozier
0
108
Member Avatar for blinkliveson

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 …

Member Avatar for Sci@phy
0
177
Member Avatar for rysin

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 < …

Member Avatar for Sci@phy
0
94

The End.