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?
hi
I have a properties file called info.properties in the following format:
Status = on
Path = c:/somedir
Now from my Code I need to read the above two parameters from this file. How do I do that?Some sample code would be helpful
hi
I have a properties file in the following format:
Status = on
Path = c:/somedir
Now from my Code I need to read from this file the above two parameters. How do I do that?Some sample code would be helpful
Thanx in Advance
I am running my application from JWS(java work shop). I have put my source in c:/somedir. When i run my application from JWS it takes c:/Java-WorkShop20/jws/intel- win32/bin/ as the current directory instead my source code directory. SO i want to get the path of my source code(ie c:/somedir) at...
First of all Thanx for the code. I would see whether that is helpful to me.
Let me make things more clear.
I have a properties file. That file goes this way:
Path = "c:/somedir/somefile
Now, I need to the valus of the path from this file and write to the file specified in the Path...
I need to log to a file say a.txt the following values:
current date,current time,string,string
For the path of a.txt, i need to read from a file called info.properties which has a lot of parameters and their values in the following format:
Status = on
Path = here is the path of the a.txt
Now...
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.