Thanks for your help!!! There was something wrong with my compiler....but it works now...thanks again for the help!
Type: Posts; User: smd
Thanks for your help!!! There was something wrong with my compiler....but it works now...thanks again for the help!
The code did compile without the using namespace std, and when I ran the a.out, there was no output.
And then I ran the code posted (which had the using namespace), and that compiled as well,...
Hi,
thanks for the quick response,
I tried the using namespace std;
and I also changed the code based on what 7stud posted,
unfortunately when I run that code, I get no output at all....
Hi,
Thanks for the response.
I am still having trouble with a piece of code: I have been trying to read in a file, ignore the first 3 lines and then read in the 2 strings that follow. I can...
Hi, thanks for the response.
However, the code posted did not work and I am still having trouble figuring this out. I want to be able to ignore the first 3 line of comments.
And then want to be...
Hi,
I am having a lot of trouble with reading a file in, but being able to ignore the first few lines. This is the file I'm reading in:
######################
#something...
Hi ,
THanks a lot!!, that did work..
I do have 2 additional questions:
1) what does name.c_str() mean??? Could you please explain what exactly this means?? THanks a lot for the...
Hi ,
I have a question about passing arguments in a constructor. I need to be able to pass a string in a constructor. THis string in turn will be used to open a file by that same name. I am...
Sorry about that, I'll make sure to remember it next time. I have gone ahead instead and attached my code.
THanks for any help anyone can provide.
Hi,
I have been struggling to figure this out and would really appreciate any help anyone can give:
I have a config file:
setenv test_host somehost
setenv test_port 12345
setenv test_sub...
Thanks for the explanations!!, I understand pointers a bit more
Sorry about that,
the function is essentially:
void something(int X, double *Z) {
X = X + (*Z) }
thanks ...I tried what you both suggested and it did work. I am still fairly...
Hi ,
I am still confused about pointers. I have a simple function ,that does some math calculations, called
void something( int Y, double *Z)
{
Y = Y + Z }
I want to call it in...
Hi ,
I am confused about what typedef means ?
for example:
"typedef double something; "
what exactly does this mean??
THANK YOU!!, you were right, I'll make sure to post any future POSIX ?s in the LINUX forum.
THANKS AGAIN!!!
//another question:
void * a_thread_func (void *),
I understand that as you...
HI, thanks for your reply, unfortunately it is still giving me the same error.
I guess the attachments didn't stick, but here they are:
THanks for any help, it is greatly appreciated :
...
Sorry about that, here are the 2 attached files: 1-1.c and posixtest.h.
Thanks for any help!!
Hello,
I am still unfamiliar with some aspects with C++ programming and have a question:
I was looking at some code that is part of a test suite where there was a function:
void...
Hello,
I am new to Linux, I am mainly used to using UNIX at school and windows at home. I am thinking of installing Linux on my home computer, I was wondering what the advantages of me might be in...
Hello, thank you very much for the help...it was exactly what I was trying to do...thanks again!
Hello,
I'm fairly new to C++ and am having some trouble and would appreciate any help. I have a string ex: "ATCTCAGCGTACCGTA". I want to be able to find all the positions that have "GTA", there's...
thanks ..it worked..I had done a declaration as queue<int> q; initially in UNIX, not std::queue <int> q. I wasn wondering why my initially declaration as queue<int> q did not work with my new...
Hello I am unclear about queue and stacks, here are my questions:
1) I am using the compiler CodeWarroir: and wanted to use a queue, I have used the declaration: queue <int> q and of course...
hello,
I am just starting to use LINUX , but have been using UNIX for quite some time now...and want to know what is the difference between UNIX and LINUX?? or they pretty much the same except...
HI!
I have been struggling with this for the past couple of days, could someone PLEASE help?
I need to read in a file (I have no problems doing this), however while there are certain numbers I...