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

19 Posted Topics

Member Avatar for rfrapp

You can e.g. find a formula for calculating how many chars are in one line From this point you could find another formula for every char in a line.

Member Avatar for pty
0
1K
Member Avatar for Jennifer84

It's important to know on which level this should work. When you talk about LAN then you can assign any IP you want. When you talk about WAN then you got your answers from above. Your provider gives you the IP for WAN activities.

Member Avatar for rubberman
0
293
Member Avatar for Dman01

Hi guys. I want to write a keylogger which logs all strings I copy via <CTRL>+<C> My problem is that I loose track of interessting links or code-snippets when overdoing it. So I want a basic keylogger which notices every hotkey event and copies the content in the clipboard into …

Member Avatar for dospy
0
230
Member Avatar for silvera

are you kidding me ? Use some legit spaces and search for yourself or find a IDE who can show you open and closing braces. Or you could find the problem by looking into the error you get compiling that ? Edit : Ok looking further at the code there …

Member Avatar for Ketsuekiame
-2
216
Member Avatar for Dman01

Hey daniweb, I stumbled upon an issue I can't solve myself. Here is the code : #include <sstream> #include <iostream> template <class T> inline T htot(std::string str) { T x; std::stringstream ss; ss << std::hex << str; ss >> x; return x; } int main() { int x = htot("0x0F"); …

Member Avatar for Dman01
0
199
Member Avatar for dlmagers

I can't tell you why you have to give twice a answer, but you can correct your code. After the conditions you write a semicolon what makes the condition end here. Your braces are wrong placed. I suggest a gender should contain the case a and i, but they are …

Member Avatar for WaltP
0
122
Member Avatar for Dman01

Hello I already posted this on [URL="http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=306688"]opengl.org[/URL], but nobody seems to have a solution. Basically I set up Opengl and when I want to draw 3D or say I want to use the z-axis by translating in this dimension, it doesn't have any effect. What I can do, is moving …

Member Avatar for daviddoria
0
318
Member Avatar for Karlwakim

@Caligulaminus "Chars are integers. No problem there." Your'e right, but there's a problem. I think what [CODE]zeroliken[/CODE] means is that when you type in 1 and save it in level the key-event will save it as a integer with a value of 49 (see ASCII) So a switch with the …

Member Avatar for Karlwakim
0
153
Member Avatar for Dman01

Hi. I want to read through a file and search for variables saved in it. However if the stream reads the last char I got errors like EOF. For example the following code would not work as intended to : [CODE] bool BaseFileReader::Valid() const { if (!File.is_open()) std::cout << "\n\nERROR: …

Member Avatar for Dman01
0
256
Member Avatar for kankaortiz

I would use getch() from conio.h. For example : [CODE]#include <conio.h> // for getch() #include <iostream> using namespace std; int main() { int number=0; int help=0; char buffer=0; cout << "Type in any number : "; do { buffer = getch(); // reads the key from user help = buffer …

Member Avatar for adityatandon
0
5K
Member Avatar for nuclear

Maybe you should tell us, what's not working. What's happening when you use gravity-acceleration ? Just nothing, or does it disappear?

Member Avatar for mike_2000_17
0
151
Member Avatar for ntrncx
Member Avatar for Dman01

Hi community First I want to thank everyone who will look through this, because it's a longer post. I'm currently reading a book on AI by Mat Buckland. I'm re-building Mats entitymanager, though I just copied it. He used std::map to collect all entities as pointers which are cross referenced …

Member Avatar for Dman01
0
3K
Member Avatar for learner guy

Codewise this mean you just open a File using std::ifstream::trunc [CODE] std::ifstream File; std::string filepath = "text.txt"; File.open(filepath.c_str(), std::ifstream::out | std::ifstream::trunc ); if (!File.is_open() || File.fail()) { File.close(); printf("\nError : failed to erase file content !"); } File.close(); [/CODE]

Member Avatar for Dman01
0
13K
Member Avatar for beckhris

Use infile with the get method, so you could go through each line and collect the input until you reach an escape sequence. For example : [CODE] // I presume that infile is already linked to a open file ? char buffer = 0x00; while (!infile.eof()) // checks if the …

Member Avatar for WaltP
0
3K
Member Avatar for namratag
Re: map

Look at [url]http://www.cplusplus.com/reference/stl/map/begin/[/url] the 'first' member does give you access to the key member

Member Avatar for L7Sqr
0
65
Member Avatar for Dman01

Hi The following code shows good enough how to multiply two long data [CODE]long x = 10, y = 3; long p = 0; while (y > 0) { if ((y & 01) != 0) p += x; x <<= 1; y >>= 1; } std::cout << "\nResult : " …

Member Avatar for Dman01
0
684
Member Avatar for coroche

Your'e missing many points. At line 13 you try to pass i to your function, although the function doesn't take any parameter. Plus you tell cout to print a void value. (See the return value of your function) At line 20 you assign a float (sqrt(i)) to a void function. …

Member Avatar for coroche
0
137
Member Avatar for coolmel55

[CODE] template < typename T > int CompareArrays(T* ArrayOne, T* ArrayTwo) { // Create the length variable for both arrays int LengthOne = 0, LengthTwo = 0; // Do this in in local block so we can destroy both copy pointers after using them { // Copy both arrays (this …

Member Avatar for arkoenig
0
304

The End.