On 8/7/06, andrew clarke [EMAIL PROTECTED] wrote:
On Mon, Aug 07, 2006 at 10:47:08AM -, prajyot_neve wrote: Just Now my mind came up with one innovative idea. I want to design an editor in 'C' language.I don't wish to stop you, but I'm not sure what makes you think this is
innovative.The
On 8/7/06, Himanshu Agarwal [EMAIL PROTECTED] wrote:
--- In c-prog@yahoogroups.com, Tamas Marki [EMAIL PROTECTED] wrote: On 07/08/06, Himanshu Agarwal [EMAIL PROTECTED] wrote: The idea may not be innovative, but positively what is the purpose of
all the above replies. I'm sure next time a
On 8/9/06, ravikohli2412 [EMAIL PROTECTED] wrote:
#includestdio.h
void main()
int main(void)
{
char a[]=abc;
Here you create a read/write string 4 characters long.
char *b=good;
Here you create a pointer to a read only string. This should be written:
const char*b = good;
On 8/9/06, andrew clarke [EMAIL PROTECTED] wrote:
Today, the Developer Tools Group of
Borland Software Corporation (NASDAQ: BORL) announced **plans** to release
single language versions of Borland Developer Studio,
(my emphasis)
On 8/9/06, Thomas Hruska [EMAIL PROTECTED] wrote:
[...]
On 8/13/06, Ahmed Abdelsalam [EMAIL PROTECTED] wrote:
What's up with viruses in the c-prog group, 3
viruses in 2 days !!
Ahmed AbdelsalamThis email did not go to the list. The from-name in the mail sent to you was forged to make it look as if it came from C-Prog.
- Original
On 8/14/06, Kerry Thompson [EMAIL PROTECTED] wrote:
bndar abdon wrote:
can anyone send me a source code to send email from vc++
i need it in my project
I don't understand. You're asking us to do your project for you? I don't
understand how you will learn anything that way.
But, of
On 8/15/06, levent ah [EMAIL PROTECTED] wrote:
Is STL is a very big advantage of learners of C++..I want to learn STL. How can I learn STL online?
Try googling for STL Tutorial, perhaps?-- PJHInto motorcycles? Need parts? Try www.gissit.com
to contact lots of motorcycle breakers - free
On 8/19/06, Noctaire [EMAIL PROTECTED] wrote:
I'm sure I'm sounding a bit dense here, so bear with me.
No, since it was written after the standard was published. Remember
you're learning a language, which is an abstraction, not an operating
system. The standard library remained the same
On 8/20/06, Prince Bhanwra [EMAIL PROTECTED] wrote:
hey full form of getch is get a character. So it returns only one value and that a char value. By standards it cannot return int. getch() isn't in either C or C++ Standard, so that's wrong.
In addition, most implementations that /do/
On 8/21/06, Sahil Dave [EMAIL PROTECTED] wrote:
i don't think so, getch() will most probably convert any special
character to its ASCII value before storing it...!!
Is probably dependant on the result of calling rand()?
--
PJH
Into motorcycles? Need parts? Try www.gissit.com to contact lots
On 8/22/06, kevin [EMAIL PROTECTED] wrote:
Do you mind giving us more info or do you just want us to open your virus.
Kevin
Kev - check the headers of the mail you received - it didn't come from
Yahoo. You're not the only regular here to fall for this :(
--
PJH
Into motorcycles? Need
On 8/23/06, Thomas Hruska [EMAIL PROTECTED] wrote:
Paul Herring wrote:
On 8/22/06, kevin [EMAIL PROTECTED] wrote:
Do you mind giving us more info or do you just want us to open your virus.
Kevin
Kev - check the headers of the mail you received - it didn't come from
Yahoo. You're
On 11/16/06, PREM KRISHNAN [EMAIL PROTECTED] wrote:
Hi,
I nedd a c program which will print the last 10 lines of a file.
Use 'tail'
--
PJH
#700847 +(1920)- [X]
andyg721: i think it was on CNN
andyg721: Condoleeza Rice went to Asia
andyg721: the headline was RICE IN ASIA
On 11/16/06, YOGIRS [EMAIL PROTECTED] wrote:
How to delete a word in a file opened in C?
Open a new file, and copy everything except that word to the new file.
Close then delete the original file. Rename the new file to the old
filename.
--
PJH
#700847 +(1920)- [X]
andyg721: i think it was
On 11/16/06, ed [EMAIL PROTECTED] wrote:
On Thu, 16 Nov 2006 17:24:31 +
Paul Herring [EMAIL PROTECTED] wrote:
andyg721: i think it was on CNN
andyg721: Condoleeza Rice went to Asia
andyg721: the headline was RICE IN ASIA
heh :) or i think some comedian took the fun at bush's expense
On 11/18/06, bayramdavies [EMAIL PROTECTED] wrote:
[...]
So far, for each state I have a virtual method in the base class.
This may or may not get overridden in derived classes. In the
method, the object does whatever it needs to do in that state and
makes the decision about whether it can
On 11/19/06, Nuno Berneaud [EMAIL PROTECTED] wrote:
Hello ed
On 19 Nov 2006, you wrote:
i thought this list was moderated? who let that through?
The list is moderated only for new members (and members like the OP
who get re-moderated/placed on no-post.) New members who post often
and
On 11/28/06, praveen kumar [EMAIL PROTECTED] wrote:
please let me know what is the difference between strcpy() and strdup()?
With the former you pass the memory to be used for the copy as an arguement,
the second acquires the memory itself and returns it to you (which you then
have to free)
On 11/28/06, praveen kumar [EMAIL PROTECTED] wrote:
1) How can a called function determine the number of arguments that have
been passed to it
It cannot. Variadic functions (like printf()) must determine the number of
arguments that should have been passed from one of the other arguments. In
On 11/28/06, Paul Herring [EMAIL PROTECTED] wrote:
[...]
3) which header file should we include to develop a function which can
accept variable no of arguments
varargs.h is required for the functions that process the arguments.
Erm - make that stdarg.h - varargs.h was pre-standard
On 11/28/06, kjtmckenzie [EMAIL PROTECTED] wrote:
Why does sizeof(arr) return 4? sizeof(word) returns 6...
arr is a pointer to char (sizeof pointer to char == 4 on your machine.)
word is an array, which in your program is 5 letters + \0 == 6
array != pointer. See
On 12/5/06, mikmoken2003 [EMAIL PROTECTED] wrote:
I just saw my classmates running their program with blinking... In C
program.. Does anyone knows how to do dat blinking in running the
program.
Why don't you just ask your classmates?
Anyway, platform? Compiler? Commandline/GUI?
--
PJH
On 12/7/06, Pedro Izecksohn [EMAIL PROTECTED] wrote:
Is praveen_asl part of this group?
Yes.
Is he innocent?
Probably yes.
Else he should be banned.
When you want to send a virus to this list, send it as source code, for us
to joy reviewing it.
It's more likely that Yahoo has been
On 12/9/06, Pedro Izecksohn [EMAIL PROTECTED] wrote:
--- ed [EMAIL PROTECTED] wrote:
in soviet russia homework writes you!!
The guy is in Egypt.
It's a Slashdot joke/meme.
--
PJH
#713059 +(1255)- [X]
SaintAlvus Does the name Doctor Pavlov ring a bell?
On 12/11/06, agilegeek [EMAIL PROTECTED] wrote:
Hi,
What does this function do
*WaitForMultipleObjectsEx()*
At a guess, it waits for multiple objects. To confirm this, you could always
look at the documentation that comes with your compiler, or perhaps use
Google for your web searches
On 12/11/06, Indika Bandara [EMAIL PROTECTED] wrote:
hello,
sorry if this is a wrong question in the wrong place. since many
knowelegable persons are in this forum thought of askin this
(programmers are supposed to know every thing right?)
How do the web clients which download files by
proceeding?(i'm
particularly asking about a squid http proxy)
if thats true then there is no point in trying to write a client to do
partial-GET isn't it?
--- In c-prog@yahoogroups.com, Paul Herring [EMAIL PROTECTED] wrote:
On 12/12/06, Indika Bandara [EMAIL PROTECTED] wrote:
--- In c
On 12/14/06, megacopriyan [EMAIL PROTECTED] wrote:
I have a program without main function and header files, I just want
to check whether the program is logically ok or not. Is it possible
with gcc/g++.
ie.,
int sum()
{
int a,b,c;
cina;
cinb;
c=a+b;
coutc;
return
On 12/15/06, Uday Oberio [EMAIL PROTECTED] wrote:
hello everyone
please help me i have one prog in C string that is
Qes) Write a programm in which accept string from user and count how many
char, how many new line, how many space and how many tabs in input string.
but when i accept string with
On 12/15/06, alla1938 [EMAIL PROTECTED] wrote:
I somehow saved a source file in two different locations and both files
have become part of my project. I get a message that the build cannot
continue because of this duplication. How can I delete one of the
files? There seems to be no way to
wrong.
Your original post said a pointer pointed to a variable - I gave two
instances where it didn't. Where's the confusion?
Thanks in advance,
Cheers,
Sunil Nair
*Paul Herring [EMAIL PROTECTED]* wrote:
On 12/22/06, Sunil Nair [EMAIL PROTECTED] wrote:
To be more specific
A pointer
On 12/22/06, ed [EMAIL PROTECTED] wrote:
On Fri, 22 Dec 2006 10:25:14 +
Paul Herring [EMAIL PROTECTED] wrote:
On 12/22/06, Sunil Nair [EMAIL PROTECTED] wrote:
To be more specific
A pointer is a variable that holds the address of another
variable
Not always
On 12/28/06, Santosh Vernekar [EMAIL PROTECTED] wrote:
You might want to try understanding how to access different fields of
a structure.
Every structure can be visualized like a block of memory and accessing
fields is like
accessing the block at different offsets depending on the sizes
On 12/28/06, Nico Heinze [EMAIL PROTECTED] wrote:
4) I know that many people don't trust my words here, but the result
of mixing new/delete with malloc/calloc/free is compiler and runtime
specific; sometimes it works without hassle, in other cases it can
easily kill your server applications
On 12/28/06, Nico Heinze [EMAIL PROTECTED] wrote:
--- In c-prog@yahoogroups.com, mohansnayaka [EMAIL PROTECTED] wrote:
Hi all,
We are using strcpy to copy strings in our app. This gave us
problems when the destination buffer is not large enough.
As a workaround, we wanted to replace calls
On 12/29/06, Saswat Praharaj [EMAIL PROTECTED] wrote:
snip compiler specific example
He had pragma packing enabled and my compiler did not support pragma
packing and I spent an hour finding this problem as the code base was huge.
So here in c-prog , we actually need to educate people about
On 12/30/06, Ray Devore [EMAIL PROTECTED] wrote:
--- Victor A. Wagner Jr. [EMAIL PROTECTED] wrote:
Nico:
[malloc and new in the same program]
What I wanted to express is that you should not
rely on such mixes to work under all circumstances.
Again I say. The standard REQUIRES it to
On 1/1/07, Gopi Krishna Komanduri [EMAIL PROTECTED] wrote:
Hi,
I tried to change the value of a constant variable
Erm - if it's constant, why are you trying to change it?
[snip]
--
PJH
#713059 +(1255)- [X]
SaintAlvus Does the name Doctor Pavlov ring a bell?
On 1/2/07, Ray Devore [EMAIL PROTECTED] wrote:
Actually you should do:
#include your-header.h
The quotes tell the compiler to look in the current
directory first, then the system include directory.
The angle brackets tell the compiler to look in the
system include directory.
Um, you sure
On 1/4/07, resh_personal [EMAIL PROTECTED] wrote:
WHY WE SHOULD USE THE SYMBOL? WHAT IS THE USE OF IT? THERE ARE SO MANY
SYMBOLS IN C WHAT IS THE NECESSARY TO CHOOSE THE ?
In addition to the answers already given, you may want to google for
[trigraph C]
--
PJH
#713059 +(1255)- [X]
On 1/5/07, Murali Krishna M [EMAIL PROTECTED] wrote:
What is the size of c++ class which contain 3 virtual funcions ?
Create such a class, then use sizeof on it.
Why is this information important?
--
PJH
#713059 +(1255)- [X]
SaintAlvus Does the name Doctor Pavlov ring a bell?
On 1/5/07, Gopi Krishna Komanduri [EMAIL PROTECTED] wrote:
HI Murali,
In a class if it has only 3 virtual functions with out any
variables , then it will just contain a pointer to the VTABLE so the size
should be four according to MS compiler. It depends on the compiler I
believe.
On 1/5/07, Gopi Krishna Komanduri [EMAIL PROTECTED] wrote:
*Paul Herring [EMAIL PROTECTED]* wrote:On 1/5/07, Gopi Krishna
Komanduri [EMAIL PROTECTED] wrote:
HI Murali,
In a class if it has only 3 virtual functions with out any
variables , then it will just contain a pointer
On 1/8/07, sankar podila [EMAIL PROTECTED] wrote:
hi friends
iam sankar
the ascii value of new line character is 012
No it's not, it's 12. 012 is 10 in decimal.
--
PJH
#713059 +(1255)- [X]
SaintAlvus Does the name Doctor Pavlov ring a bell?
On 1/8/07, Victor A. Wagner Jr. [EMAIL PROTECTED] wrote:
At 03:53 2007-01-08, Paul Herring wrote:
On 1/8/07, *Murali Marimekala* [EMAIL PROTECTED] wrote:
Hi Gopi,
Thank you, does it mean, the size of n-number of virtual
functions without vairables in a class will be four byte
On 1/10/07, Murali Marimekala [EMAIL PROTECTED] wrote:
Hello Everyone,
I had google what is meant by hashing but didnt
find any relavant answer. Can anyone explain what is meant by hashing
exactly.
Hmm - saw the results; not entirely helpful were they? Try
On 1/10/07, Murali Krishna M [EMAIL PROTECTED] wrote:
Hello Everyone,
I would like to know why there is difference in size of
empty binary file and empty text file ? Please post reply as early as
possible.
There should be no difference. How are you creating them? Have you
On 1/10/07, Murali Marimekala [EMAIL PROTECTED] wrote:
Hello Everybody,
I would like to know how malloc is implemented. Can
anybody have snippet of it. If you dont mind can you explain it in brief.
http://www.google.com/search?q=malloc+implementation
--
PJH
On 1/11/07, Vincent Darby [EMAIL PROTECTED] wrote:
Hi guys,
I am working on an MFC project in Visual C++ .NET and whenever I compile
the project, I get the fatal error C1190 warning. The compiler tells me
it's about the use of '#using mscorlib.dll' and '/clr'. Do any of you
know what probably
On 1/11/07, Paul Herring [EMAIL PROTECTED] wrote:
On 1/11/07, Lars Finsen [EMAIL PROTECTED] wrote:
Hm, I wonder how the sqrt function can give a DOMAIN error. The call
occurs in a pretty straightforward statement: if(nmon15) c /= sqrt
(15-nmon);
Possibly I could have violated
On 1/11/07, neha lodha [EMAIL PROTECTED] wrote:
The function malloc() is used to allocate memory at run time i.e for
dynamic memory allocation.its general form is:
void *malloc(size);
in malloc we don't specify the type of variables for which memory is
required.rather we compute the memory
answer - you aren't including stdlib.h in
your programs, and you're doing this to shut the compiler up.)
*Paul Herring [EMAIL PROTECTED]* wrote:
On 1/11/07, neha lodha [EMAIL PROTECTED] wrote:
The function malloc() is used to allocate memory at run time i.e for
dynamic memory allocation.its
On 1/17/07, kathir resh [EMAIL PROTECTED] wrote:
i am a basic learner of c...i think the header file must be
#includestring.h
No. string.h is the C header for things like memcpy() and strcmp(). The
code below is C++, and the equivilant header is cstring
In C++ string is the
On 1/18/07, mohaghghy [EMAIL PROTECTED] wrote:
--- In c-prog@yahoogroups.com, malaram kumhar [EMAIL PROTECTED] wrote:
How does this expression could be solve and what is the value of a and
b?
int a=13;
b=++a + ++a;
30
1 ++ ++ - a = 15
That's one interpretation allowed by compilers,
On 1/18/07, manishrawat4u [EMAIL PROTECTED] wrote:
--- In c-prog@yahoogroups.com, mohaghghy [EMAIL PROTECTED] wrote:
--- In c-prog@yahoogroups.com, malaram kumhar malaram_engg@
wrote:
How does this expression could be solve and what is the value of
a and
b?
int a=13;
b=++a + ++a;
On 1/18/07, Brett W. McCoy [EMAIL PROTECTED] wrote:
On 1/18/07, Thomas Hruska [EMAIL PROTECTED] wrote:
After a really long 3 month hiatus from e-mail, I'm back. I've been
saving a bunch of messages to reply to from since late October, so bear
with me as I reply to them.
Hi and Welcome
On 1/23/07, MoMaFuckEup [EMAIL PROTECTED] wrote:
Hello everyone.
can any body help me to solve numerical integration using Trapeziodal
method.
Quite probably. Though given your chosen name and..
the program will input x and fx where fx=y is twice of x.x is a range
of values witn equal
On 1/23/07, Student of BUET [EMAIL PROTECTED] wrote:
Hello everyone,
Can any one send me the source code of Ludo game in C or any link or
anything. It will be greak helpful for me.
However, sending such code would be most unhelpful for you (and us) in the
long term. Perhaps you could send
On 1/24/07, malaram kumhar [EMAIL PROTECTED] wrote:
[snippage]
hencenow expression becomes:
b=a+a+a+a=2+2+2+2=8(The increment in case of a++ will effect after ;)
Yes it could. But then again it might not. You didn't read the links
provided did you?
--
PJH
Some people, when confronted
On 1/24/07, Jaspreet Singh [EMAIL PROTECTED] wrote:
Hi All
I guess its there in the C++ FAQs too but a small writeup :
http://cplus.about.com/b/a/76.htm
Small is an overstatement - it doesn't even address sync_with_stdio()
--
PJH
Some people, when confronted with a problem, think I
On 1/24/07, mr_gees100_peas [EMAIL PROTECTED] wrote:
I tried the follwoing using bloddshed dev CPP compiler.
#include stdio.h
#include stdlib.h
int main(int argc, char *argv[])
{
printf(Hello World!\n);
system(PAUSE);
return 0;
}
then I tried this version
#include cstdlib
#include
On 1/24/07, mr_gees100_peas [EMAIL PROTECTED] wrote:
--- In c-prog@yahoogroups.com, Paul Herring [EMAIL PROTECTED] wrote:
On 1/24/07, mr_gees100_peas [EMAIL PROTECTED] wrote:
[...]
the executable for the C style version was 15.4Kb on my system. The
C++ style was 464KB in sized
On 1/25/07, mr_gees100_peas [EMAIL PROTECTED] wrote:
By quirkiness I
mean if there is a catch when using it with C++. Lets say as opposed
to using streams COUT CIN.
No catches (beyond the usual dangers of type saftey etc.) if using
stdio instead of iostream. There are caveats attached if
On 1/29/07, Robert Ryan [EMAIL PROTECTED] wrote:
i don't follow that at all, almost legal in Java. what part of
the code I wrote looks like Java
I'd like to know which part of it you think looks like C++ (or C.)
*Joseph A. Marrero [EMAIL PROTECTED]* wrote:
Robert, thats almost
On 2/1/07, shubhrajyoti datta [EMAIL PROTECTED] wrote:
How ?Multiples of 2 is understandable but 3
please explain..
x/2 + x/4 = x/3.
Basic maths I would have thought
I would have used substraction of 3 in a loop.
till the result is less than 3(childish ans )
[EMAIL PROTECTED]
On 2/1/07, Brett W. McCoy [EMAIL PROTECTED] wrote:
On 2/1/07, Thomas Hruska [EMAIL PROTECTED] wrote:
Paul Herring wrote:
On 2/1/07, shubhrajyoti datta [EMAIL PROTECTED] wrote:
How ?Multiples of 2 is understandable but 3
please explain..
x/2 + x/4 = x/3.
Basic maths I would
On 2/2/07, Joseph A. Marrero [EMAIL PROTECTED] wrote:
Hi Robert. In C++, there is no way to know the length of an
arbitrary array.
sizeof?
--
PJH
#706281 +(1868)- [X]
TriPod11: bush ain't THAT bad...he kinda knows what he's doin
idaredbeet08: Please, Monica Lewenski had more President in her
On 2/3/07, Joseph A. Marrero [EMAIL PROTECTED] wrote:
I think sizeof will only work on statically allocated
arrays. Consider the following:
#include iostream
using namespace std;
int main()
{
int array_one[ 25 ];
int *array_two = new int[ 25 ];
array_two isn't an array,
On 2/6/07, ranjan kumar ojha [EMAIL PROTECTED] wrote:
#includeiostream
using namespace std;
int main()
{
cout( 123 - 0123 );
return 0;
}
guess what would be answer .
Why guess.? 123 - 83 = 40.
plz give proper explanation of above question.
0123 is 83 expressed in octal.
--
On 2/7/07, mark taye [EMAIL PROTECTED] wrote:
Does anyone know how to assign a string to a char * ?
Example:
string foo;
char *bar;
bar = foo.c_str();
or can the char pointer be converted to a string type before the assignment?
No.
--
PJH
#706281 +(1868)- [X]
TriPod11: bush ain't
On 2/8/07, Lars Finsen [EMAIL PROTECTED] wrote:
In Borland's C++ I have problems getting eof() to work on a text file
opened as ifstream(filename) ui, while the call that fails to find
EOF is ui.eof(). Currently I am testing for some unique content of
the last line instead, but am unhappy with
On 2/8/07, Tamas Marki [EMAIL PROTECTED] wrote:
On 2/8/07, Nagaraj M [EMAIL PROTECTED] wrote:
The if condition getting true because 5 is aggigned to
i, i.e. non-zero value is assigned in if condition.
The c compiler takes it as if(1).
Not quite.
The result of an assignment is the assigned
On 2/11/07, debraj choudhury [EMAIL PROTECTED] wrote:
sir,
can u explain in more detail manner, how a c program can be
executed without using main() function and which compilers allow us to do
so...
Why would you want to do this?
--
PJH
Aio, quantitas magna frumentorum est
On 2/12/07, Juliano Nunes [EMAIL PROTECTED] wrote:
I just want to take a look at this book to see if it will be a good choice
because it's not cheap.
And if you do get a free PDF of this book, and you like it, I suspect you
still won't buy it, because I don't need to, I have a copy, and
On 2/12/07, peternilsson42 [EMAIL PROTECTED] wrote:
Paul Herring [EMAIL PROTECTED] wrote:
debraj choudhury [EMAIL PROTECTED] wrote:
can u explain in more detail manner, how a c program can be
executed without using main() function and which compilers
allow us to do so...
Why
On 2/12/07, engvishal_jain [EMAIL PROTECTED] wrote:
Hi,
I have two Big Projects say A and B.
Both have Golobal variable with same Name say GlobVar.
Now when I compile both Projects after integrating them it give error.
Error: Redefination of GlobVar
I can't remove GlobVar from any of A and
On 2/14/07, krome152001 [EMAIL PROTECTED] wrote:
what do you mean by source code
Presumably you have some source code from your comment i got gode but
all it come out...
You missed it from your original message.
There is little we can do without it, unless someone wants to play
twenty
On 2/14/07, arun kumar [EMAIL PROTECTED] wrote:
Hi
Pls send me program to calculate the factorial of given no.
#include iostream
template int N
struct Factorial
{
enum { value = N * FactorialN-1::value };
};
template
struct Factorial1
{
enum { value = 1 };
};
// example use
int
On 2/14/07, vishal thakur [EMAIL PROTECTED] wrote:
Thanks Paul for ur quick reply,
Actually i cannot use #ifdef and #ifndef 'couse that will effect other things
on my side.
Why's that?
So is their any other way to do that.
Why do you need to exclude them? Can you provide a (brief!)
On 2/15/07, Thomas Hruska [EMAIL PROTECTED] wrote:
Just checked the moderation queue and here's a bit of spam that someone
wanted to get through to the group:
Hi,
I AM NOT A HEADHUNTER, JUST TRYING TO HELP THE PROJECT
MANAGER OF A PROJECT!!! SWEAR!!!
There is an urgent
On 2/15/07, Thomas Hruska [EMAIL PROTECTED] wrote:
Brett W. McCoy wrote:
On 2/15/07, shahwalishaik [EMAIL PROTECTED] wrote:
I've attended an interview few days back. The qeustion paper had
some programs. There's a bug in it, and we need to find it. Please,
help me find the bug.
On 2/15/07, Milan Babuskov [EMAIL PROTECTED] wrote:
--- Thomas Hruska wrote:
Just checked the moderation queue and here's a bit of spam that
someone wanted to get through to the group:
I AM NOT A HEADHUNTER, JUST TRYING TO HELP THE PROJECT
MANAGER OF A PROJECT!!! SWEAR!!!
There is
On 2/15/07, Tamas Marki [EMAIL PROTECTED] wrote:
On 2/15/07, muhammad shahid [EMAIL PROTECTED] wrote:
[...]
coutEnter values?\n;
Instead of '\n' you should use std::endl.
Why? Do you use fflush() after every printf() in C?
--
PJH
Aio, quantitas magna frumentorum est
On 2/16/07, diana_ [EMAIL PROTECTED] wrote:
i have a conditional probability density function
l(y[t]/h[t],y[t-1]) +=...
how do i declare this function ?
i tried
double func_l(double *p/double*h , double *s)
You cannot have a function on the left hand side of the = sign.
double temp;
On 2/21/07, Mongi [EMAIL PROTECTED] wrote:
Brett thanks again for ur reply. The statements in file1 look as follows:
var1=value1; var2=value2;
.
varn=valuen; etc...
..
where var1,2,... are declared variables names and value1,2,... are
derived numbers from another program
On 3/4/07, krishna kanna [EMAIL PROTECTED] wrote:
void main()
main() returns int, not float, struct foo or void.
{
int i;
for(i=0;i++;i100)
{
printf(%d,i);
}
}
what is the output of this program
There needn't be any. You don't have a \n in your output or a fflush().
On 08 Mar 2007 05:43:15 -0800, Chetan Nanda [EMAIL PROTECTED] wrote:
On 08 Mar 2007 05:09:29 -0800, Sumit Chawla [EMAIL PROTECTED] wrote:
[...]
You are crossing the memory bounds and corrupting the memory block which
might have been allocated to other parts of your program or some other
On 12 Mar 2007 03:07:48 -0700, Amila Perera [EMAIL PROTECTED] wrote:
C allows to call the main in functions.
That's right.
This has been tested by me under Dev C++ and it works properly.
It is, however, not allowed under C++.
Is this not a bug?
Only if the programmer didn't intend it.
On 12 Mar 2007 10:59:57 -0700, debasish deka [EMAIL PROTECTED]
wrote:
Hello Mr. Paul,
I went through your provided link. Its here as follows :
[snip http://www.ioccc.org/1988/phillipps.c]
But I am not getting what it is doing. Could you tell how to approach these
sort of problems.
Erm -
to read. Here it is again in case you missed the first
time:
Paul Herring [EMAIL PROTECTED]
wrote:
http://www.google.co.uk/search?num=100hl=enq=cdnr+nlwb+rdq+explained
I'm not going to spoon feed you when there's adequate explanation
already written.
If you have a problem with the site I
On 13 Mar 2007 08:24:36 -0700, Tamas Marki [EMAIL PROTECTED] wrote:
On 13 Mar 2007 08:20:28 -0700, debasish deka [EMAIL PROTECTED] wrote:
Hello Paul,
It is not making sense to me
I am not getting how to write obfuscated codes. in neither C nor
C++.
could you explain with
On 14 Mar 2007 06:06:15 -0700, e2esunil mudulakar [EMAIL PROTECTED] wrote:
hello all
iam want to convert a numeric to string in KEIL software.
As we convert the number into string by using itoa
As you've found out, itoa() isn't a Standard function.
Plz help me how can i convert numeric
On 3/14/07, Brett W. McCoy [EMAIL PROTECTED] wrote:
On 14 Mar 2007 06:06:15 -0700, e2esunil mudulakar [EMAIL PROTECTED] wrote:
As we convert the number into string by using itoa
in c language where as iam doing my project of
automatic car parking system where i want to
store pwd's with
On 14 Mar 2007 06:42:53 -0700, Indika Bandara [EMAIL PROTECTED]
wrote:
hello,
is there any tool(freeware) which can generate class/sequence diagrams
from c++ code?
it is quite tedious to find the way out (or in) to a large project..
TIA
Is Doxygen the sort of thing you're after?
On 16 Mar 2007 06:19:13 -0700, krome152001 [EMAIL PROTECTED] wrote:
i was wondering how can u control or send command to an OOPic using
C++??? does any one know how to
Wouldn't you be better off just using ooPIC to control/program an
OOPic? (And that is not meant to sound as facetious as it
On 19 Mar 2007 20:38:07 -0700, vishal thakur [EMAIL PROTECTED] wrote:
I think flushing buffer (fflush(stdin), if using stdin as your stream) will
solve your problem, but flush will work in case of stdin but it will not
give desired output for file stream
fflush() is not required to work with
On 20 Mar 2007 08:52:51 -0700, vishal thakur [EMAIL PROTECTED] wrote:
On 3/20/07, Paul Herring [EMAIL PROTECTED] wrote:
On 19 Mar 2007 20:38:07 -0700, vishal thakur [EMAIL
PROTECTED]lahsiv.vishal%40gmail.com
wrote:
I think flushing buffer (fflush(stdin), if using stdin as your stream
On 3/21/07, ranjan kumar ojha [EMAIL PROTECTED] wrote:
Hi friends,
I got perplexed because of memset. look
int a[100];
memset(a,0,sizeof(a));
then it is filling 0 in array.
int a[100];
memset(a,-1,sizeof(a));
then it is filling -1 in
On 3/23/07, vishal thakur [EMAIL PROTECTED] wrote:
Thanks Paul for this information.
I was used to use fflush on stdin as fflush(stdin) on windows and this
work
fine for me and this may be because windows support fflush on stdin and
this
could be the reason why i was getting unexpected
-- Forwarded message --
From: madhup mani [EMAIL PROTECTED]
Date: Mar 24, 2007 9:43 AM
Subject: about c book
To: c-prog Moderator [EMAIL PROTECTED]
hello sir/madam,
i want to know about the c-book in which every misconception is handled like
effective c++.
generally we got
1 - 100 of 589 matches
Mail list logo