Search Results

Search: Posts Made By: bashuser2
Forum: Programming 12-18-2010
2,416
Posted By bashuser2
c++ assignment operator overloading
Hello everyone!

Suppose that I have something like this

A a;
a.mem=new int[100];
A b = a;


where

class A {
public:
int * mem;
A() : mem(NULL) {
}

~A() {
if...
Forum: Programming 12-17-2010
1,546
Posted By bashuser2
thank you very much!
thank you very much!
Forum: Programming 12-16-2010
1,546
Posted By bashuser2
surely, but i just want to know what happens with...
surely, but i just want to know what happens with a.a gets freed automatically after realloc succeeds? i didnt find this information anywhere and I was just curious...
Forum: Programming 12-16-2010
1,546
Posted By bashuser2
Realloc() question
b = realloc(a, 1000);

if realloc succeeds and b!=a (not in-place replacement), does realloc automatically free a or I should free both a and b afterwards?

thank you!
Forum: Programming 11-29-2010
1,494
Posted By bashuser2
sorry I didn't answer before,I was absent.Thank...
sorry I didn't answer before,I was absent.Thank you very much,I will test this,it surely is interesting:)
Forum: Programming 11-26-2010
1,494
Posted By bashuser2
I have no problem to call the function many...
I have no problem to call the function many times, I was just trying to think for a more tricky way but maybe it would be much more complex...I will try a little bit more and if I can't find...
Forum: Programming 11-25-2010
1,494
Posted By bashuser2
first of all thank you very much for your...
first of all thank you very much for your interest and your answer.

you are right,using iostream for text file IS very painful,especially for someone like me who doesnt have any previous...
Forum: Programming 11-24-2010
1,494
Posted By bashuser2
Some questions for mini game
Hello fellow programmers!:)
First of all excuse me for my English, i am from abroad...

I am trying to learn the C++ programming language as it is one of the most basic languages.So,instead of...
Forum: Programming 01-14-2010
3,496
Posted By bashuser2
ok i think i got it.thank you!
ok i think i got it.thank you!
Forum: Programming 01-14-2010
3,496
Posted By bashuser2
can you explain that?what changes i need to do in...
can you explain that?what changes i need to do in your example above in order to make it work properly?sorry for asking again,but i just began using makefiles.
Forum: Programming 01-14-2010
3,496
Posted By bashuser2
Makefile for more than 1 executable program
Can anyone give me a makefile that creates 3 exe?for example, let's suppose i have the following files:

blah1.c
blah1.h

blah2.c
blah2.h

blah3.c
blah3.h

i've searched and searched but...
Forum: Programming 12-08-2009
5,090
Posted By bashuser2
thank you for your answer! so you suggest that i...
thank you for your answer! so you suggest that i do that in a for(){} condition and that i write every byte that in each repetition occurs into the file?
Forum: Programming 12-07-2009
5,090
Posted By bashuser2
Hexadecimal to ascii
Let's suppose i have a hexadecimal array with 16 cells.for example
b3e2d5f636111780

i want to convert it to an array of ascii characters(in C) so that
i can reduce total size of the file i want...
Forum: Programming 11-02-2009
3,256
Posted By bashuser2
thank you i will check it;)
thank you i will check it;)
Forum: Programming 10-30-2009
3,256
Posted By bashuser2
2-4 trees in C
i am trying to write a program in order to learn how to work with trees and especially 2-4 trees.
the general idea is that each node is represented by 4 cells and 5 pointers? (maybe 2 arrays then? )...
1,236
Posted By bashuser2
please help in "cd" command
hello,
i am developing my own shell and i am trying to built cd command.So far:

if (strcmp(args[0],"cd")==0)
{
int i,k,j,begin=0,finish=0;
int...
2,256
Posted By bashuser2
Removing tokens from cmd line
Hi everyone.
I am trying to develop my own shell,and i am in the part of redirection.
let's say the user gives as input
cat test > test2
in the array of arguments i want to keep only...
5,219
Posted By bashuser2
Developing own shell
Hi everyone.I am trying ti create my own shell in C.So far i have managed to create a parser to separate args from cmd line of my shell.(i have done nothing different for tokens is that wrong?).so i...
3,595
Posted By bashuser2
thnks a lot!i found another solution too but i...
thnks a lot!i found another solution too but i will try this one as well;)
3,595
Posted By bashuser2
how can i remove comments in random positions in a file?(bash)
Suppose i have a file like this:

#bla bla
#bla bla bla bla bla

Bla
BLA
BLA BLA #bla bla
....
....


how can i remove all comments from every line,even if they are behind commands or...
50,890
Posted By bashuser2
hmm i am new too...but the bottom line is that i...
hmm i am new too...but the bottom line is that i must link mailx with the desired domain?
50,890
Posted By bashuser2
ok i ll have to look into that cause i have noooo...
ok i ll have to look into that cause i have noooo idea on the matter:D
thnks a lot for your help!!;)
50,890
Posted By bashuser2
actually the only thing i have done as far as...
actually the only thing i have done as far as mail is concerned,is to install mailx on my ubuntu...:D

//tried this from my command line but still no result in my inbox...

when i type mailq it...
50,890
Posted By bashuser2
thank you very much for your answers.i wanted to...
thank you very much for your answers.i wanted to tell you that i have a bunch of files that contain the first half of the address(that is without the @domain part)so ,each time one of these files is...
50,890
Posted By bashuser2
How can i send mail to multiple addresses in same domain in bash?
Suppose i have a txt file that is the list of the addresses,something like:

lala0045 john james
lala0234 george james

and i want to send an email to lala0045@blabla.com and...
Showing results 1 to 25 of 30

 
All times are GMT -4. The time now is 07:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy