I was looking for this answer.. Thanks for very useful information.. I love this board..
Type: Posts; User: merixa
I was looking for this answer.. Thanks for very useful information.. I love this board..
I am using C style strings like
char line[500];
I know It shouldn't be hard to write one but I don't want my program has to many lines. Also, linux should have this function in its library...
Hello guys
In visual c++, we can use StrTrim function with including shlwapi.h library for triming character from String.
Is there any function available on linux platform in c++ for the same...
Thanks for your help but I can not post my code because of some reasons.
If I knew how to convert my class to a template class, I would complete my program.
Thanks 7stud
I understood everything but how about if I have a friend iterator class in my template class, I mean when I convert my class to a template class, do I have to change my iterator...
Hi@all
I wrote my own list class now I am supposed to convert it to a template class so I can use it for another program.
In my list I also have an iterator class which I implemented.
At...
Hi@all
I wrote a program according to the algorithm that okinrus mensioned it above. When I run my program, I can not see the output. I think problem is in my add function.
Can anyone help me...
I think you can write a recursive function for this purpose..
http://www.cprogramming.com/tutorial/lesson16.html
Hi Enahs
As Daved said, cin doesn't work because of redirection. When program executes, it skips the line that includes cin command.
Hi@all
I wrote a program that reads data from a file under Linux. I am suppose to use a.out redirection to read the file. After read the file, I want to stop a.out redirection and enter some input...
@7stud..
Thanks for your help.. I think I should sleep now beause I have been studying for 4 hours and I can't think any more.. Tomorrow, I will continue.
Thanks.. I appreciate
if I follow these steps, I will create a linked list by adding a new node to the end of the list right? (I am asking to make sure that I got your point)
What I want to do is I want to create the...
thanks for replying but I already tried to draw diagrams. I got the idea but I can't put it on code. :confused: any way I like C++.. I will do it.
What I want to do for adding a new node to the...
Hi guys
I have been studying linked list tutorial. I want to add a new node to the begining of my linked list but I am making a mistake.
Can anyone show me what is wrong with my code?
...