- Strength to Increase Rep
- +8
- Strength to Decrease Rep
- -2
- Upvotes Received
- 10
- Posts with Upvotes
- 8
- Upvoting Members
- 8
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Leader of the Volts. The Thunder Emporer.
- Interests
- Anime
Re: [code=cpp]int **a; a = new int*[n]; for ( int i = 0 ; i < n ; i++ ) a[i] = new int[n] ; [/code] to make it simple | |
Re: Why should we worry about converting the number to hex or binary. Its already stored in binary format. | |
Re: [QUOTE=hdan;663203]I know I was just saying that because I putted the MS-DOS commands... but how trainers work then? The x=&a shows the address...I wandered if it's a way to change 'a' with another program like a trainer... :-/[/QUOTE] Perhaps, [URL="http://linuxgazette.net/104/ramankutty.html"]Inter process communication[/URL] may be an answer. >>but how trainers work … | |
Hi, Below is my home n/w status. I have a modem which connects to a wifi router 1 laptop, 1 mac pro, 1 i-phone and a pc all which connects to this wifi router. I have 2 external hdd & a printer which I want to connect to the n/w. … | |
I have been posting in dani web during my college times, after being employed, I stopped posting in dani, now I updated my email id few weeks before & I am a unverified user. How can I become a verified user? and how can I get e-mails from dani? Please … | |
Re: First I don't understand the need to clone trees, having same data in two different places often cause problems than solving problems. Do you have a reason to do so? [QUOTE][code]sink = NULL;[/code][/QUOTE] Do you really expect this to free the memory you allocated? If so, you may have to … | |
Re: HTML's are supposed to follow strict xml syntax (not all web pages do so) But the html that your have posted does follow xml syntax so you can use xml parsers and extract data from this. If the page is not xml complaint then you might have to use reg-ex … | |
Re: Hey, when I googled the algorithm I found this, [URL="http://www.cs.ualberta.ca/~zaiane/courses/cmput499/slides/Lect10/sld053.htm"]http://www.cs.ualberta.ca/~zaiane/courses/cmput499/slides/Lect10/sld053.htm[/URL] Hope it helps | |
Re: [QUOTE=Prabhakar]i am using an string array with 100 length..but i am inserting upto 10 values only...how to get that array existing element count as 10....[/QUOTE] I think the answer is on top of your post. strlen() should work. [QUOTE=DragonHeart]if i allocate space like this int no[20]; and i store about … | |
My friend said to me that in 1935 The US police killed an innocent person & his friend suicide because of that, thus US government declared Friendship day. I searched the net but didn't see any such story. But I found it was somewhat right, that it was started in … | |
Re: I dont know sokcet programing. but I do know that word, can open txt files, so a simple way would be to open the file using .doc extention & in text format, write to the file & close it. It should work. I guess, I mis understood. If you are … | |
Re: Did not Nature give a wonderful explanation about making the pyramid. Did you try what Nature said? Modify her code just a little to suit your problem. Its as simple as [code=cpp] #include <iostream> int main() { using namespace std; int n; cin >> n ; for ( int i … | |
Re: "&x[1]" doesn't the compiler uses sizeof to evaluate this expression? Since I am not sure of this. I think unions can be used to find the answer I wrote this program & it seems to work. [code=c]#include<stdio.h> int main () { union findsize { unsigned char c[8] ; int a … | |
Re: >> int totalLen = strlen(formatstr) + strlen(name); "%s" will be counted. The totalLen should be 41 but obtained totalLen is 43. And, >> len = [URL="http://msdn.microsoft.com/en-us/library/ybk95axf(VS.71).aspx"]sprintf[/URL](NULL,"This is my forename: %s",fname); seems to work perfectly!!! Is there an assurance that the string will not be written if NULL is passed? I … | |
Re: I dont like to use recursion, unless it is very much necessary. If i were to calcualte GCD between 2 numbers, I would do it somthing like this. [CODE]#define min(a, b) (a)<(b)?(a):(b) int main ( ) { int a, b, i, c, d, gcd = 1, lcm ; cin >> … | |
Re: [QUOTE]if(student[i].lastName>student[i+1].lastName) { string temp; temp=student[i].lastName; student[i].lastName=student[i+1].lastName; student[i+1].lastName=temp; }[/QUOTE] lastName is a char array. It wont help you sort this way. use strcmp() to compare or using string class for names. second, there is no use swaping just the last name, the purpose of your structure gets defeated by that. You … | |
Hi All, I need a software that would optionally let me open applications without the windows border, i.e, I don't want to see that blue border and the title bar for some of my applications(cause it spoils the appearance) I am using Windows XP(32 - bit) Is there any such … | |
Re: killdude69, the only way you could hold on to your argument is to talk on situations in which portability has no value. Say, while developing vertical solutions to a non IT based company which uses windows environment, there is no point in providing portability as a feature cause it means … | |
Re: [QUOTE]prabakar@prabakar-desktop:~$ gcc test.c prabakar@prabakar-desktop:~$ ./a.out FOURFOURFOURFOURFOURONETWOFOURONETWOFOURONETWOFOURFOURFOURFOURONETHREEFOURONE THREEFOURONETWOONETWOONETHREEprabakar@prabakar-desktop:~$ ONETWOONETWOFOURONETWOFOURONETWOFOURONETWOONETHREEONETWOONETHREEONETWOONE TWOONETWOONETWOFOURONETHREEONETWOONETWOONETHREE [/QUOTE] I made those corrections stated by others | |
Re: Why do you want to do that? you can use structures say [code=cpp] struct myFloat{ short int sign:1; short int expo:6; short int mant:11; float toFloat(){ // conversion } // overloaded arithmetic operations // constructors and initializations } [/code] hope this helps:) | |
Hi everyone, I am a little new to Java programming and am doing a simple project. The Problem is that I am able to connect but am not able to send any data. It is a little weird. The server gets the client's IP and the client to is connecting … | |
Re: I believe, this is a forum to help C++ programmers, not customers! Oh, are you looking for C++ compilers, then Microsoft Visual Studio Express Edition is a good option | |
Re: EDIT: On second thoughts, you are right. Just a little change [Code=c]ShellExecute(GetDesktopWindow(), "open", "c:\\someFolder\\myFile.pdf #page=4", NULL, NULL, SW_SHOWNORMAL); [/code] Just add a space, cause page=4 is an argument. ---------------- I don't know if there are any [B]real [/B]ways to do it. But how about triggering some keyboard inputs with keybd_event() … | |
Re: you can use strncpy() [icode]strncpy(a2, strings+4, 4);[/icode] or you can just write a function that would copy 4 bytes from the starting address. The latter is better, I think | |
Re: Print MaxDistance to the console so that you can keep track of the stack. Then analyze the output. Or, better, Debug it. I mean, run the program step by step and see how the variable MaxDistance changes and how the condition "something" and the assignment "something" works | |
Re: Okay let me be brief, 1) Don't use conio.h 2) Don't use void main. int main is the standard way 3) so many if else statements? what if you need the diamond to be bigger. The following code is as good as yours [code=c] puts(" *"); puts(" ***"); puts(" *****"); … | |
Re: I believe, your real requirement, is to set variable precision for your floating point number. If so The bad news is you can't do it that way. The good news is there is [URL="http://www.cplusplus.com/reference/clibrary/cstdio/printf.html"]another way[/URL]. [icode]printf("This is your value:%.*f", 4, 22./7);[/icode] Follow the link to know how it works Or … | |
Re: I don't understand why you expect the same answer. You are assigning the chat a value 'a', i.e., 97 is stored in the first byte. Now you are retrieving the value stored in 2 bytes(short), 4 bytes(int and long) so the garbage data will be taken and you are bound … | |
Re: [QUOTE=axyelp;799502]ummmm.... how can you giv print to a single variable var[i] with %s specifier??? your problem shouldn't be in the code but the definition of var[]![/QUOTE] We don't know how it is declared, do we? It might be a 2D array or an array of Pointers or may be even … |