- 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
165 Posted Topics
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 … | |
Re: If you know that there is a way, why not go for it, why should one try all the ways possible? If you are lucky you would have chose the right path the first time. I would go for DFS. I believe one should use a stack and not queue. | |
Re: Two years ago, I wrote a peace of junk which managed to solve the puzzle. I lost the code. But I can say what I did. I had a 9X9 matrix. At the beginning any of the 1-9 numbers can possibly occupy any of the 81 cells. When the user … | |
Re: Please attach the loadObj.h file. I know I can't help you, but I believe I can learn from you. | |
Re: in decimal to binary, calcuation is ok. you are priinting binary number in reverse order | |
Re: I got 117 in Easy and 126 in hardest and I am going to join the society:) EDIT: One has to pay atleast 80$ to get the Membership:( | |
Re: >>while (x % answer != 0) answer++; 1) The code may be short but gives more work to the computer. You have to check if x is divisible by a number lesser than its square root and thats all you have to do. So In this case the while loop … | |
Re: >>isbn1, isbn2, ... why not use isbn[10]? And what are the contents of the infile? | |
Re: And you have to swap the elements to get the array in reverse order. | |
Re: or did you mean to use [icode]x = lower + width * (i*25 + 0.5) ;[/icode] | |
Re: >>Room 1; Did not you learn that variables start with alphabets and _? | |
Re: First I thought this should be easy. But I am finding it hard to co relate the / & \ and the spaces according to the nodes present above. The Input to my program is: 5738642 And the output is: [QUOTE]5 37 2468 [/QUOTE] EDIT: By the way I am … | |
Re: int main() { database *employee ; cin >> n ; employee = new int[n] ; for ( int i = 0 ; i < n ; i++) input_data(employee+i); for ( int i = 0 ; i < n ; i++) output_data(employee+i); } EDIT: Also Use code tags properly. Like [code=cpp] … | |
Re: I have to leave now. But at a glance I saw that you use a strange way to print your rectangle class. Have you heard of friend functions? declare the operator<< function as a friend of rectangle. | |
Re: [QUOTE=djhello;725208]Why ?? please help me!! this is my homework !![/QUOTE] Thats why you have to do it. Its [B]YOUR[/B] homework. | |
Re: Yeap, Copy the pointer to the first node. And move it to the last node and print the data as you traverse. And did you really understand how your dequeue algorithm works? | |
Re: Assuming that print forward is to print the data in ascending order all you have to do is inorder traversal which should be something like this [code=cpp]void inorder(tree_ptr) { if ( tree_ptr -> left ) inorder( tree_ptr->left); // print the value stored in this node if ( tree_ptr -> right … | |
Re: [icode]system ( "echo %USERPROFILE%") ;[/icode] Will print the address. | |
Re: endl manipulator in istream? remove it. | |
Re: AD has given the [URL="http://www.daniweb.com/forums/post646054-9.html"]answer[/URL] sometime back. | |
Re: [QUOTE=williamhemswort;606080]I made a game in Win32 but it was quite difficult. It is called the 'SameGame' or commonly known as bubblebreaker mainly for phones, It might just give you an idea of how difficult it is to make these kind of games using Win32.[/QUOTE] So I see, You will never … |
The End.