HI,
I am drawing a bar graph with 6 bars using GD of PERL.
I am even displaying the values on top of the graphs.
My code is as follows:
#!/usr/local/bin/perl5
use GD::Graph::bars;
use CGI qw(:standard);
my $cgi = new CGI;
my $title = $cgi->param('title');
#$title="Bar Graph"...
My A.cpp is
#include "A.h"
writeFile() {
cout<<"hello"<<endl;
}
and in A.h I defined writeFile as a static method.
Now in my B.cpp goes as follows:
#include "A.h";
int main() {
A::wirteFile();
}
I put all the header files and .cpp files in the same directory...
1300.1
Hi All
I am a novice to C++. So dont know anything about it. Now i have written a .cpp file say A.cpp and want to include it in B.cpp. Initially what I was doing was just including A.cpp in B.cpp but later I found out that it is not the right way. But i am unable to figure out how to...
I have got a strange problem.I have the following code:
I have a static method in X.cpp which is as follows:
void X::log() {
if(fs.is_open() == 0) {
fs.open("log.txt",ios::app);
fs<<"hello";
} else
fs<<"hello";
}
}
I...
I have the follwing class defined in X.cpp
class X {
public:
static bool bl_PropFile;
void static writeToFile() {
if(bl_PropFile == true) {
// do something
} else if(bl_PropFile == false) {
// do something
}
}
};
bool MonitorCode::bl_PropFile...
HI,
Whats the configuration file called in C++ to get runtime parameters? For eg its called properties file in JAVA with extension .properties. This properties file is used to get run time parameters to be specified by the client. What is it in C++? And how to read from this configuration File...
HI
How do i check in C++ whether a directory exists or not?
If exists does it have write permissions?
How do I do the above checks? Some sample code will helpful
Thanx in Advance
Hi
How to convert from char arrays to strings?
For eg: in my program I have declared as follwing:
char c[20] = "hello";
String s;
Now i want to get the value of c into s. How do I do that?
Sample code would be useful
Thanx in Advance
Hi All
How do i get the current date in "yyyy/mm/dd hh:mm:ss" format? And how do I get the time difference between two dates?I want to get the difference in hours
Q)Does ColdFusion support UDP?If yes then asnwer my next question.
Q) I have a client and server. I need to send some data packets from client to the server using UDP. The server then receives the packets. Now dont ask me y am I using UDP when its not reliable. Y cant u use TCP/IP? But thats...
Hi
I have got an application.This application has a method which is called by many other applications.How
to get the IP Address of the application calling this method?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.