Posts
 
Reputation
Joined
Last Seen
Ranked #973
Strength to Increase Rep
+3
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
2 Commented Posts
0 Endorsements
Ranked #3K
~20.6K People Reached
Favorite Forums
Favorite Tags

14 Posted Topics

Member Avatar for kartouss

You keep asking the same question in multiple forum posts. You asked this question last week in this post: [url]http://www.daniweb.com/forums/thread107197.html[/url] Now you are starting a new post with the same problem. Essentially you have broken down your problem (encrypting an image given a text hash) and you keep posting new …

Member Avatar for gnrsu
0
1K
Member Avatar for kartouss

Hello, If you want to encode/decode pixel values into an image, I recommend the EasyBMP library ([url]http://easybmp.sourceforge.net/[/url]) . If you are looking to encrypt/decrypt a file, any file, I recommend using the zlib compression library ([url]http://www.zlib.net/[/url]) Addendum, if you are looking to write your own image encoder/decoder, Wotsit's File Format …

Member Avatar for Zhassan
0
1K
Member Avatar for TimeFractal

Hello, I need to simulate a stream which behaves exactly like a ostringstream, except when handling objects of type color. What is the best way to do this? [code] user.display() << color() << "Name: " << color(color::Red) << setw(10) << left << str_name << endl << color() << "Date: " …

Member Avatar for TimeFractal
0
2K
Member Avatar for Democles

[CODE=c++] #include <iostream> #include <string> int main(void) { using namespace std; string in_str; cout << "Enter the a sentence " << endl; getline(cin,in_str); int const screen_len = 10; int in_len = in_str.size(); int pad_left = (screen_len - in_len)/2; int pad_right = screen_len - pad_left - in_len; string out_str = string( …

Member Avatar for TimeFractal
0
13K
Member Avatar for Democles

[QUOTE=Democles;910343][code] /tmp/ccphpsfl.o: In function `main': main3.cc:(.text+0xd7): undefined reference to `read(std::basic_istream<char, std::char_traits<char> >&, Student_info&)' main3.cc:(.text+0x126): undefined reference to `compare(Student_info const&, Student_info const&)' main3.cc:(.text+0x236): undefined reference to `grade(Student_info const&)' collect2: ld returned 1 exit status [/code] [/QUOTE] You are compiling the main3.cc file without the other files it depends on. Use a …

Member Avatar for TimeFractal
0
157
Member Avatar for guitarrick

[code=C++] // Read the comments embedded in the code. // Some Advice. Read this carefully and understand it. Then and only then read the rest of the code. int primer_on_else_if() { if( day == 1 ) // do this when day == 1 do_something(); else // do then when day …

Member Avatar for guitarrick
0
268
Member Avatar for kalpana0611

Rather than hand rolling the XML markup, you should use the [URL="http://www.grinninglizard.com/tinyxmldocs/index.html"]TinyXML[/URL] library to create the XML files. It's a very simple library, and comes with lots of [URL="http://www.grinninglizard.com/tinyxmldocs/tutorial0.html"]examples[/URL].

Member Avatar for kalpana0611
0
204
Member Avatar for SteveDee

[QUOTE=SteveDee;532639]If I define numberset[] as float, and someone enters 4.5 as a lotto number, how would my program then recognize it as invalid?[/QUOTE] You can simply truncate the fractional portion of the number. [code=c++] #include <cmath> #include <cstdlib> using std::abs; using std::floor; int numberset[6]; cout << endl << "now, enter …

Member Avatar for WaltP
0
261
Member Avatar for nurulshidanoni
Re: exam

[code=C++] #include <algorithm> // for each student for(int i = 0; i < students.size(); i++) { // display exam codes in ascending order std::sort( students.at(i).examcode.begin(), students.at(i).examcode.end() ); for (int j = 0; j < students.at(i).examcode.size (); j++) cout << students.at (i).examcode.at(j) << "\n"; } [/code] see reference for sort() here: …

Member Avatar for nurulshidanoni
0
121
Member Avatar for ankit_the_hawk

Please note that [B]case 1: case 2: case 3: case 4: case 5: [/B] don't do what you intend. You want to use [B]case '1':case '2':[/B] '1' '2' being chars. Ok, I stand corrected. cin does parse numbers. case 1: will work. However it parses the entire number that will …

Member Avatar for TimeFractal
0
131
Member Avatar for jov0708

[QUOTE=jov0708;531962] [code] key |= (long)(buffer[i]); //<- this line causes the problem }[/code] there is an error message saying "unable to handle exception". [/QUOTE] Is [B]buffer[/B] declared as a byte array? [b]unsigned char buffer[8];[/b] Native types don't throw exceptions. What you might be doing is using a vector and accessing an …

Member Avatar for TimeFractal
0
2K
Member Avatar for boyet1970

Read Alf Steinbach's tutorial. It walks you through getting and setting up a C++ environment as well as providing a fun introduction to c++ programming. [url]http://home.no.net/dubjai/win32cpptut/html/[/url] I highly recommend buying "Accelerated C++" by Koenig and Moo. It's an awesome book, fun problems and an introduction to STL make this a …

Member Avatar for TimeFractal
0
110
Member Avatar for sir avalanche

I would like to help and I will as soon as you address some problems of mine: 1. Be specific about your problem. Simply saying that xyz feature does not work is not specific. 2. Post only the relevant code to your problem. 3. I understand that english is not …

Member Avatar for Ancient Dragon
0
107
Member Avatar for snowy_shoryu

[url]http://pngwriter.sourceforge.net/[/url] Now there is a program that could badly use a tune up. Look at the 4 duplicated constructors and the funky iterator names iiii, jjjj FTW. Anyways, the copy constructor is duplicated as there is both a pngwriter &pngwriter::pngwriter( pngwriter &other ) and an overloaded assignment operator. Not only …

Member Avatar for TimeFractal
0
245

The End.