Forum: Windows Software Sep 16th, 2009 |
| Replies: 0 Views: 305 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... |
Forum: C++ Jun 3rd, 2009 |
| Replies: 18 Views: 866 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... |
Forum: C++ Apr 22nd, 2009 |
| Replies: 8 Views: 273 heh, how about a screen shot?
Now I am surprised too. Its not changing, $-) |
Forum: C++ Apr 22nd, 2009 |
| Replies: 8 Views: 273 Now what was the bet? :D
To tell the truth I did not even care to read the program at first and I would admit that yes, indeed, I cannot assure that, it would be the answer every time. |
Forum: C++ Apr 22nd, 2009 |
| Replies: 8 Views: 273 I made those corrections stated by others |
Forum: C++ Apr 20th, 2009 |
| Replies: 4 Views: 515 Why do you want to do that?
you can use structures
say
struct myFloat{
short int sign:1;
short int expo:6;
short int mant:11; |
Forum: Java Apr 2nd, 2009 |
| Replies: 1 Views: 467 Oh, I am so dumb, I forgot to flush any unsend data from the socket.
It's working like a charm now. |
Forum: Java Mar 31st, 2009 |
| Replies: 1 Views: 467 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... |
Forum: C Feb 14th, 2009 |
| Replies: 13 Views: 1,948 That's what I always do, but, it looked like the OP was not satisfied with it.
What if he can't move it from a particular folder? ( happens often when it is a shared computer)
Copying the pdf... |
Forum: C Feb 12th, 2009 |
| Replies: 4 Views: 518 you can use strncpy()
strncpy(a2, strings+4, 4);
or you can just write a function that would copy 4 bytes from the starting address.
The latter is better, I think |
Forum: C++ Feb 12th, 2009 |
| Replies: 3 Views: 465 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... |
Forum: C++ Feb 12th, 2009 |
| Replies: 11 Views: 611 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 |
Forum: C Feb 12th, 2009 |
| Replies: 13 Views: 1,948 Same directory as the reader? Why not give the full address fo the file?
Like this,
ShellExecute(NULL, "open", "\"D:\\program files\\Adobe Reader 9.exe\"",
"/A page=45 \"C:\\Documents... |
Forum: C Feb 12th, 2009 |
| Replies: 13 Views: 1,948 I do not have vista, to help you:( I don't know why it is not working in vista, these functions are ment to work on windows after all. Perhaps you'll have to wait for others to respond |
Forum: C Feb 12th, 2009 |
| Replies: 22 Views: 1,256 >>programing is not for everybody... it requires LOTS of time to master
Well, if you ask me, programming is fun. And fun is for everybody.
So, If It requires a lot of time then its just that you... |
Forum: C Feb 11th, 2009 |
| Replies: 4 Views: 708 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 another way... |
Forum: C Feb 9th, 2009 |
| Replies: 20 Views: 979 That's what I will do. But it is up to you. |
Forum: C Feb 9th, 2009 |
| Replies: 22 Views: 1,256 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... |
Forum: C Feb 9th, 2009 |
| Replies: 20 Views: 979 no, int the main function you have initialized the char, then the short, then the int, Now if you initialize int or long first and then the short and byte, you will have a well defined behavior, just... |
Forum: C Feb 9th, 2009 |
| Replies: 20 Views: 979 Uninitialized data can never ever be trusted. You are bound to get random values immaterial of the compiler you use and the processor you use. As Salem said. And if you have initialized the long int... |
Forum: C Feb 9th, 2009 |
| Replies: 6 Views: 1,525 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 vectors, the op should give more details if he/she wants a good answer |
Forum: C Feb 9th, 2009 |
| Replies: 7 Views: 515 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... |
Forum: C Feb 9th, 2009 |
| Replies: 20 Views: 979 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... |
Forum: C Feb 9th, 2009 |
| Replies: 13 Views: 1,948 Sorry to have suggested an untested code.
My little Google search found me this (http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf)
Have a look at it.
This time I... |
Forum: C Feb 9th, 2009 |
| Replies: 13 Views: 1,948 I'll take a note of that.
And the actual answer is not either. Its just to give an argument to the pdf we are opening;) |
Forum: C Feb 7th, 2009 |
| Replies: 13 Views: 1,948 EDIT:
On second thoughts, you are right.
Just a little change
ShellExecute(GetDesktopWindow(), "open", "c:\\someFolder\\myFile.pdf #page=4", NULL, NULL, SW_SHOWNORMAL);
Just add a space,... |
Forum: C++ Nov 2nd, 2008 |
| Replies: 3 Views: 459 And you have to swap the elements to get the array in reverse order. |
Forum: C Nov 2nd, 2008 |
| Replies: 5 Views: 568 or did you mean to use x = lower + width * (i*25 + 0.5) ; |
Forum: C++ Nov 1st, 2008 |
| Replies: 5 Views: 541 >>Room 1;
Did not you learn that variables start with alphabets and _? |
Forum: C++ Nov 1st, 2008 |
| Replies: 8 Views: 524 >>isbn1, isbn2, ...
why not use isbn[10]?
And what are the contents of the infile? |
Forum: C Nov 1st, 2008 |
| Replies: 1 Views: 1,132 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:
... |
Forum: C++ Nov 1st, 2008 |
| Replies: 5 Views: 496 For some reason the [b][/ b] tags did not work. Cant you at least remove it?
Did you really do that program? |
Forum: C++ Nov 1st, 2008 |
| Replies: 3 Views: 3,323 |
Forum: C++ Nov 1st, 2008 |
| Replies: 6 Views: 3,612 int **a;
a = new int*[n];
for ( int i = 0 ; i < n ; i++ ) a[i] = new int[n] ;
to make it simple |
Forum: C++ Nov 1st, 2008 |
| Replies: 5 Views: 496 oops sorry. Should have tested the code before posting it.
heres the code
#include <iostream>
#include <string>
using namespace std;
struct database {
int id_number, age; |
Forum: C++ Nov 1st, 2008 |
| Replies: 1 Views: 982 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. |
Forum: C++ Nov 1st, 2008 |
| Replies: 5 Views: 496 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++)
... |
Forum: C++ Nov 1st, 2008 |
| Replies: 11 Views: 2,671 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
#include <iostream>
... |
Forum: C++ Nov 1st, 2008 |
| Replies: 3 Views: 363 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? |
Forum: C++ Nov 1st, 2008 |
| Replies: 8 Views: 860 >>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... |