- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 81
- Posts with Upvotes
- 73
- Upvoting Members
- 23
- Downvotes Received
- 41
- Posts with Downvotes
- 33
- Downvoting Members
- 9
Just another simply guy, with not so simple ambition.
- Interests
- Programming,Playing games,solving mathematical problems and reading good books.
- PC Specs
- Using Windows 7 32 bit Ultimate, Ubuntu 12.04. 2 gigs RAM, 2326 GB Disk space, 6670 Radeon HD 2GB
315 Posted Topics
Re: The only women I ever loved is another man's wife...My Mother. by anon | |
![]() | Re: Few hours ago, I watched "despicable me". |
Re: If you want to follow Standard then replace `#include<stdio.h>` with `#include<cstdio>` | |
Re: If your OS is windows, then you need to learn windows API programming, ( preferred in Visual C++ ). Here is a [tutorial](http://www.winprog.org/tutorial/) to it. Simple dialog box can be used by the `MessageBox()` function. A simple implementation : # include <windows.h> int main() { MessageBox(NULL," Hello World ( MsgBox … | |
Re: You can implement your code like this do { cout <<"\n Enter number ( 0 to exit ) "; cin >> num ; if (num % div1==rem || num % div2== rem) { count1+=1; sum1+=num; } else { count2+=1; sum2+=num; } } while ( num != 0 ) ; | |
Re: There are softwares available which can create this problem. I would suggest you to download this [software](http://www.bleepingcomputer.com/forums/topic247405.html). @ firdousahmad, there can be hundreds of reason for bsod. Its not so simple. | |
Re: Nice post, thanks for posting. very nice article. | |
I'm trying to emulate bash/cmd type program. I have written programs like cat, ls, grep (simple one) and kept it under \bin\ directory. This program will take user input and run programs present in \bin\ accordingly. I'm using `_spawnv ()` as the argument list is going to be variable. When … | |
Re: Here we used getch() which is not standard. How should I code without using getch() ? | |
Re: You can use recursion to find GCD. Then divide the product of given numbers by GCD to get LCM. Recursive GCD : int gcd(int x, int y) { if (y == 0) return x; else return gcd(y, x % y); } And gcd( a , b) * lcm( a , … | |
I want to extract this data from a website `You need to add the numbers present in this string. Your string is: 3754537dd2f082ad578e0ff1806d86a6` This is what I was doing url = opener.open('http://www.website.com') data = url.read() extract = re.search('your string is: <strong>(.*)', data) ans = extract.group(1) ans = string.split(ans, '</strong>')[0] print … | |
I want this program to wait untill I copy some text into my clipboard. This is what I have done so far char text[500] ; HANDLE clip ; if ( OpenClipboard (NULL) ) cout << "\nClipboard opened" ; EmptyClipboard () ; cout << "\nStart" ; while ( true ) { … | |
I want to use javascript and extract page content and then submit a string. For example I have been given "Encode this string in base64 : Hello world". I need to take hello world, convert it and submit the answer. I think I need to use innerHTML but I'm not … ![]() | |
I need to extract a certain string from a webpage and workon it. In the website it is given like this : `Decrypt the following random string: O2tsOGJeLj0saj07ODM1IQ==` I need only the base64 encoded part, but I can't think of any way. I tried using `substr()` and `strstr()` but I … ![]() | |
Re: Your << and >> overloaded functions are friend functions and also in private. Make them public and see if its working or not. | |
So I was writing a program that would take a string from clipboard, do some stuff and put the new string back to clipboard. My code so far is posted below. The problem is I want my program to wait for me until I 'ctrl+C' something. I know that `GetClipboardData()` … | |
Hi, I'm new to python so I'm asking a noob question. I'm given a large string from which I have to take all the digits and check if its prime or not. Then I have to take the first 25 chars of the string and append the prime digits to … | |
Re: [This](http://www.amazon.com/Introduction-Algorithms-Thomas-H-Cormen/dp/0262033844) is particularly a good book for algorithms. | |
I created a simple password program which takes a string when its invoked, and prints thank you if its correct. Now I want to write a brute forcer. The password is a 4 blocks 4 digit password ( example 1234 5678 9012 3456, so its called like this C:\>pass 1234 … | |
I want to start a program and pass arguments used by that program. How to do this using os.spawnl ? | |
Re: You can use [file_stream.getline ()](http://www.cplusplus.com/reference/istream/istream/getline/), to take the score in a string variable and use Gwin.writeString (). | |
Re: Dynamic Array can be allocated with the help of `malloc()`. Example : `int *p;` `p = (int *) malloc ( sizeof(int) * 10 ) ; // array of int of size 10` | |
Re: Not only this. There is a constant hacking going on between India and Pakistan. Not more than 4 months ago, some pakistani Hacker group defaced a Government website in India. | |
Re: Can you post your code? [This](http://systhread.net/texts/200909netconn4.php) may help in making a port scanning program. | |
In our college we practice python on ssh. This command prints all the computers ( processes ) logged in. ps -A | grep bash I was wondering how to obtain my process ID for that session. | |
Re: "¡Andale! ¡Andale! ¡Arriba! ¡Arriba! ¡Yii-hah!" Speedy Gonzales ( Cartoon ) | |
Re: Check line 42. In line 55, why are you calling `lengthHail()` method ? You are yourself counting the number of numbers printed in line 53. Print that instead of `lengthHail()`. It will print 1 less than the required number , thats because it doesn't counts the initial number. So add … | |
| |
Re: I had this virus too. 1. Go to file/folder option. ( If you are using win 7 then : organize -> folder and search option ) 2. Click on view tab. 3. Then unhide all files, and unmark "Hide protected operating system file (Recommended) ". 4. You will see you … | |
| |
Re: I think what rubberman meant by steam is a digital distribution, digital rights management, multiplayer and communications platform developed by Valve Corporation. The most popular game on steam is Counter Strike 1.6. | |
Re: Yes you are right. Simply put, recursion is when a function calls itself. That is, in the course of the function definition there is a call to that very same function. Now in the factorial program, `b` is a local variable of the `re` method. So each time the `re` … | |
Re: What you need is LCM of the numbers. You can simply write the code for finding lcm of 2 numbers and use it recursively. Or you may use [boost](http://live.boost.org/doc/libs/1_34_1/doc/html/boost_math/gcd_lcm.html#boost_math.gcd_lcm.lcm_function_object) library. | |
Re: What is QList ? What is QMutableListIterator ? Can't understand your question correctly. | |
Re: 182. `system("pause");` Avoid using system calls in your program. `system("PAUSE")` is certainly less than ideal. Using a call to system creates a subprocess, which on windows is fairly expensive and in any case not terribly cheap on any operating system. You may check out the reasons, in details [here](http://www.gidnetwork.com/b-61.html). | |
Re: You can `import subprocess` and use `getoutput()` method to run cmd/shell commands. | |
Hello Daniweb, after such a long time. I had my semester exams ( I'm math major ). Was busy studying. Recently I participated in a coding competiton, with 2 of my friends as team. The problems were good. One had DFS implementation. But there was a problem that required me … | |
Re: Check [this](http://windows.microsoft.com/is-IS/windows7/products/system-requirements). And of course the more RAM you add more faster it performs. | |
Re: Integrated Softwares : Tightly interconnected suite of several application programs that share a common database and user interface. In integrated software (such as Adobe In Design, Microsoft Office, or Star Office) the output of one program (such as a spreadsheet or graphics program) can be readily imported into or embedded … | |
Re: Try using loop for inputing and displaying array, and for replacing, you can access array by its index. Also keep an condition statement for checking whether input is authentic or not. | |
Re: Because his underpants worth more than his pants, and doesn't want to wet it while fighting criminals ( probably facing General Zod ). Which came first, chicken or egg ? | |
![]() | Re: Pink floyd, Nirvana. Sometimes Eric clapton. |
As C++ has nice read me's like, `C / C++ FAQ's and Practice problems`, `C++ Books`, `"Flushing" the input stream` , how about some read mes's in PHP forum. Its a widely used language like C++, so it would be nice to have some read me's. What do others think … ![]() | |
Re: You need to learn file handling in C/C++. There are many books for this purpose. You may try [this](http://www.cplusplus.com/doc/tutorial/files/). For password protection ask user for password then compare it for authorization. If true go on to file handling part. Else try again. | |
Re: So what ? Try yourself first, if you get stuck somewhere, then ask for help. |
The End.