Search:
Type: Posts; User: hemant.bhargava7
Search:
Search took 0.04 seconds.
-
April 24th, 2018, 07:48 AM
I am reading something from regex format, expands it and writing it out. This list can become huge while writing it out.
While writing it out, I do not have the original regex data. So, I will...
-
February 4th, 2014, 02:02 AM
That is exactly clarification I was looking for.. I should have figured that out myself.
Thanks for your help..
-
February 3rd, 2014, 11:55 PM
Need little help..
#include <iostream>
int main() {
int bit = 1;
int init = 0xf ^ (1 << bit);
char* c = new char(2);
sprintf(c, "%x", init);
std::string initVal =...
-
February 3rd, 2014, 10:51 AM
#include<iostream>
int* func_b() {
int *c = new int;
return c;
}
int main() {
int* b = func_b();
return 0;
-
September 11th, 2013, 01:14 PM
Paul, Again thanks for quick reply. Yes. It is same as you expected.
class A {
public:
var_a;
}
class B : public A {
static func_a();
}
B::func_a() { // Need to use a; }
-
September 11th, 2013, 04:40 AM
What are the workarounds for accessing the non-static member variables of some class(Say A) inside static member functions of another class(Say B)? I am coding in c++. Class A is derived with public...
-
September 9th, 2013, 01:32 PM
Yep. Great paul. Something like this.
Let the answers keep coming from oops word. :)
-
September 9th, 2013, 05:27 AM
[QUOTE=Paul McKenzie;2129035]You should take a step back and look at your "algorithm" from a much higher level instead of trying to figure out what lines to move where.
Paul, Thanks for your...
-
September 8th, 2013, 05:50 AM
2kaud,
I appreciate your answer but to me, at least, this is not a clear solution. Because creating extra files are pain.
I wanted to something in terms of function pointers/functors, if possible.
-
September 8th, 2013, 12:57 AM
GCDEF et All. Thanks for your replies.
Not accepted because common lines lies at end of func_a and func_b as well. So, basically you are suggesting to call me two functions. :)
What I was...
-
September 6th, 2013, 12:20 PM
I really do not know how there numbers appeared into my post. Please ignore them. 1, 2 .. 7 etc.
-
September 6th, 2013, 12:19 PM
OK. Say my current algo is:
1
2
3
4
5
6
7
function func_a() {
-
December 29th, 2010, 02:35 AM
How to call a function from one program that's in another program?
Suppose i have two files A.c And B.c . Now i want to run A.c but found that B.c is having the same function which i want to write...
|
Click Here to Expand Forum to Full Width
|