User Profile
Collapse
-
How to reduce to multiple if / else statements..
Could any one guide me how do we reduce nested if / else statements.. -
how to create a core dump file in G++ compiller
I got a segmentation fault..
I came to know that the problem could be easliy solved be the core dump files.
could any tell how to create a core dump file and how to read a core dump file.
I am using g++ compliier.. -
Regarding returning of function
hi guys .. could any one tell which one is bette..
code1:
result add ( int a , int b )
{
return ( a+b) ;
}
code 2:
void add ( int a , int b , int result)
{
result = a+b ;
return result;
}
which one is better whether the code1 or code 2
Dont consider about the temp variable.. what I need whether... -
why cant you try this code
for( i= 50 ; i > 0 ; i--- )
{
// code
}
why I said this would when ever you say in the for loop i = 0 ..Zero flag gets initialised ..
that also consumes some extra time..
In turn my suggestion is instead of having a incremental loop use a decremental loop..
just check whether it works for you or not..
let me know about... -
compliation time & Inline functions
I would like to know how much time its has taken for execution of the program ..
I am using a g++ complier how to check whether my function is inlined or not..Leave a comment:
-
The complier i am using is g++..
How to check whether my function is Inline or not..Leave a comment:
-
regarding Inline functions
how would I know whether my function is inlined or not ..
whether the complier has accepted my requested or not.. -
#include<iostre am>
using namespace std;
class Zaman
{
public:
virtual void Sing()=0;
};
class LirilGirl:publi c Zaman
{
//virtual keyword is optional here
/*virtual*/
public:
void Sing()
{
std::cout<<"La. .lalalala....La aa..Laa..laaa.l aaa";
}
};
class NirmaGirl:publi c...Leave a comment:
-
*************** *************** *************** *************** *************** *************** **Thank you for replying ...
I have have got a link..
http://www.parashift.c om/c++-faq-lite/virtual-functions.html. ...
in the section[20.6]..
My problem is of the same type .. could please help me without using vectors.or templates.....Leave a comment:
-
avoid If/Else statements using inheritance
Hi to all
Could any one tell me how to avoid if/else statements uisng inheritance..Leave a comment:
-
I need an example..so that I could try on my PC..
I came to know that in C++. It could be avoided by using inheritance...
I would be grateful to you if you consider my reuest..Leave a comment:
-
avoid If/Else statements
Hi
Could any one help me ... I need to avoid If / else statements in my code. I have searched but I could not any simple solution for that.
Its said to use vectors.But I ddont want to use those vectors. or templates.
No activity results to display
Show More
Leave a comment: