Forum: C++ May 22nd, 2008 |
| Replies: 2 Views: 810 1. I wonder why things work without linking to /usr/local/sesam/lib/libssv.so if you need it.
And if links without it I wonder why you need it.
2. Compare the size/timestamp of your mate's lib and... |
Forum: Java May 20th, 2008 |
| Replies: 2 Views: 612 What's the problem ?
See help on code tags, would be more readable if you add =java. |
Forum: Java May 3rd, 2008 |
| Replies: 9 Views: 767 >> what does it mean to say we have a 32-bit processor ?!!
In very dummy terms it means the processor would process 32-bits in one machine cycle. Say if it's 2GHz processor, it'll process 32-bits 2... |
Forum: C Jul 9th, 2007 |
| Replies: 6 Views: 2,656 Problem is you're copying old to new, whereas what you want to do is new to old. Also using wrong formatting in printf().
See the comments inside the code:
#include <stdio.h>
#include... |
Forum: Java Jul 5th, 2007 |
| Replies: 22 Views: 3,472 No way I can understand so much of code without code tags.. |
Forum: C++ Jul 2nd, 2007 |
| Replies: 10 Views: 4,719 Seems like someone asked the question, some else read read the answers and followed up with more question and finally someone understood all and thanked. :)
If solved mark the thread as solved.. |
Forum: Geeks' Lounge Jun 29th, 2007 |
| Replies: 600 Views: 46,769 Hmm, so it seems like there are lotsa "nice" smokers around.. :).
Just the same way I tried saying that even though there are times when smokers are smoking in their smoking corners, and still ppl... |
Forum: C Jun 29th, 2007 |
| Replies: 6 Views: 7,330 Here is a link that gives you links for function pointer tutorials.
http://www.google.com/search?q=function+pointer+tutorial
Given you've already implemented stack, you already know that part. If... |
Forum: C++ Jun 28th, 2007 |
| Replies: 10 Views: 4,719 Just one addition, in case of passing by pointer you would be dereferencing the pointer to pointer everytime you use it. Although compilers may optimize it. A reference works as an alias. |
Forum: Geeks' Lounge Jun 28th, 2007 |
| Replies: 600 Views: 46,769 Couldn't help notice such an interesting thread.. :)..
as a smoker I also have a few things to add..
NOT true. My granpa was the only one in my family (ALL his descendants) who smoked. In fact no... |
Forum: C++ Jun 27th, 2007 |
| Replies: 10 Views: 4,719 Or of course you can pass it by C++ reference like:
void foo( char *& ptr)
{
ptr = new char[255];
}
int mian()
{
char *ptr = 0;
foo( ptr ); |
Forum: C++ Jun 26th, 2007 |
| Replies: 18 Views: 2,197 See now we know what you don't know.. :)
See this link (http://www.cplusplus.com/doc/tutorial/arrays.html) to learn teh abt arrays in C++. It tells you:
- What is an array?
- How create an array ?... |
Forum: C Jun 26th, 2007 |
| Replies: 6 Views: 1,267 I also thought on those lines, but in that case #1 should fail as well.. :) |
Forum: C++ Jun 26th, 2007 |
| Replies: 10 Views: 1,687 Read-up the basics of arrays, function, function parameters.. <<= That's the direction ! |
Forum: C++ Jun 26th, 2007 |
| Replies: 10 Views: 1,687 >> I'm not asking for actual source, I just want to be pointed in the right direction
That's good to know. Understandably the code you've written would be a good indication of which direction you're... |
Forum: C++ Jun 26th, 2007 |
| Replies: 2 Views: 838 Line 15: Reading from cin, read from "file".
Line 18: This would always set charsPerLine to 0. (12/100) would evaluate to 0. Make it (12.0/100.0)
Line 23-24: Not clear what are you trying to do.... |
Forum: C++ Jun 26th, 2007 |
| Replies: 10 Views: 1,687 Read-up the basics of arrays, function, function parameters.. then write a program and ask for help.. |
Forum: C++ Jun 26th, 2007 |
| Replies: 18 Views: 2,197 If you don't know C++ well enough to even give it a try, you should just step back and learn the basics, give this problem a try and come back if you have some issues. Because there is no way someone... |
Forum: C Jun 25th, 2007 |
| Replies: 6 Views: 1,267 Yeah, I believe you, it's just tough to believe. :D
Here is the excerpt from gcc guide if you can figure something more:
3.13 Options for Linking
These options come into play when the... |
Forum: C Jun 25th, 2007 |
| Replies: 6 Views: 1,267 Interesting..
1. I didn't know that -lXYZ could be interpreted by linker as libXYZ.a as well. (thought it's always seen as libXYZ.so). I checked gcc manuals (gcc 4.2.0) and seems fine.
2. Only... |
Forum: C++ Jun 25th, 2007 |
| Replies: 18 Views: 2,197 >> Anyone can do this in C++
Yeah ! |
Forum: C++ Jun 21st, 2007 |
| Replies: 9 Views: 3,128 Use MS Visual C++ (get Visual Studio).. you can find lotsa online tutorials for that.. |
Forum: C++ Jun 20th, 2007 |
| Replies: 4 Views: 3,972 Look at the call stack and see which d'tor (destructor) is being called, that should tell you where the problem is.. |
Forum: Computer Science Jun 20th, 2007 |
| Replies: 5 Views: 14,023 Unfortunately a flowchart is a flowchart. It can even be made for the process of deciding which TV to buy !
Given all the basic elements remain same I donno what else you're looking for.. ? |
Forum: C Jun 20th, 2007 |
| Replies: 8 Views: 1,292 Surprised that no one mentioned that they are NOT the same and that's the reason 2 different names are used. As Aia said only rule (according to standards) is
sizeof( short ) ≤ sizeof( int ) ≤... |
Forum: C++ Jun 19th, 2007 |
| Replies: 5 Views: 1,880 In windows if you have depends.exe you can right click on any exe file and should be able see an option called Show Dependencies.. Check it out, you'll know more abt dlls.
In Unix it's ldd command... |
Forum: C++ Jun 19th, 2007 |
| Replies: 5 Views: 1,880 A dll is not a process.. :)
May be the following will help:
- Once you've written your C/C++ code, you will compile it and then link it. Once you do this you will have an executable file (.exe on... |
Forum: Computer Science Jun 19th, 2007 |
| Replies: 5 Views: 14,023 If you're looking at only flowcharts here:
http://images.google.co.in/images?q=flowchart
Of course a sequence diagram is another option:
http://images.google.co.in/images?q=sequence%20diagrams... |
Forum: C++ Jun 15th, 2007 |
| Replies: 13 Views: 2,209 Consider following the coding practice:
When you compare a const with a non-const for equality put const on LHS instead of RHS.
E.g.
//instead of this:
if ( start == 0 )
//do this:
if ( 0 ==... |
Forum: C++ Jun 14th, 2007 |
| Replies: 7 Views: 1,542 You are right. That's true AFAIK. :)
But also a static variables is always guaranteed to be initialized.
Also there is a clear difference between basic and non basic types. For a non-basic type the... |
Forum: C++ Jun 14th, 2007 |
| Replies: 7 Views: 1,542 Think that answers the question adequately.
Just to be clearer.. the difference between initialization and assignment is:
1. Initialization is done at the time of (or along with) creation of the... |
Forum: Shell Scripting Jun 14th, 2007 |
| Replies: 2 Views: 2,234 Does this help ?
#!/bin/bash
file_with_workstations_list=/tmp/input_list.txt
while read workstation_name
do
#do you stuff with workstation_name
echo "Read workstation name: "... |
Forum: C++ Jun 14th, 2007 |
| Replies: 4 Views: 2,313 Can't find the decl of IDI_APPLICATION. |
Forum: C++ Jun 13th, 2007 |
| Replies: 4 Views: 2,313 Can you post declaration/definition of IDI_APPLICATION ? |
Forum: C++ Jun 8th, 2007 |
| Replies: 16 Views: 30,100 Just wondering that after #including vector/list etc, why are you using C-style array for this? Use C++ array (i.e. vector) instead, life is so much more easy.
#include <iostream>
#include <list>... |
Forum: C May 25th, 2007 |
| Replies: 7 Views: 5,624 How do you unpack? I know that my compiler doesn't allow archiving archive files. |
Forum: C May 24th, 2007 |
| Replies: 7 Views: 5,624 Heard of Unix aliases ?!
If you don't wanna do that, you can also say x="that whole command"
and then
$x |
Forum: C May 23rd, 2007 |
| Replies: 3 Views: 2,262 Or in case you've by mistake posted this in C instead of C++ the prototype of interest would be
void foo(int& prm1, int& prm2, int& prm3); |
Forum: C++ May 22nd, 2007 |
| Replies: 24 Views: 11,448 Surprising Salem didn't comment on this.. :)
[PS: those wondering why, see his icon/avatar] |
Forum: C++ May 21st, 2007 |
| Replies: 8 Views: 1,763 Probably to learn iterators. But otherwise vector being the C++ array one should use the subscript operator for accessing rather than iterator. It's faster. |