- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
19 Posted Topics
Re: 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. | |
Re: 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. | |
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 … | |
Re: 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 … | |
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"); … | |
Re: 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 … | |
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 … | |
Re: @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 … | |
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: … | |
Re: 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 … | |
Re: Maybe you should tell us, what's not working. What's happening when you use gravity-acceleration ? Just nothing, or does it disappear? | |
Re: For an easy start I recommend you to try SFML. | |
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 … | |
Re: 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] | |
Re: 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 … | |
Re: Look at [url]http://www.cplusplus.com/reference/stl/map/begin/[/url] the 'first' member does give you access to the key member | |
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 : " … | |
Re: 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. … | |
Re: [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 … |
The End.