Search Results

Search: Posts Made By: santiagorf
5,454
Posted By santiagorf
thanks for the reply. I think what I was...
thanks for the reply.
I think what I was confused because I didn't know I was executing an implicit rule.
5,454
Posted By santiagorf
hello?
hello?
5,454
Posted By santiagorf
Help understanding makefile: static pattern rules
Hi all,
I'm reading the GNU Make book I cannot understand the following syntax from the book.


objects = foo.o bar.o

all : $(objects)
$(objects) : %.o : %.c
$(CC) -c $(CFLAGS) $< -o $@
...
1,113
Posted By santiagorf
that clarifies pretty much my question. thanks!!
that clarifies pretty much my question.
thanks!!
1,113
Posted By santiagorf
[Solved] Copy question
I was reading man for cp, and I found the option cp -d.
What does it mean?
According to the documentation -d is the same as --no-dereference --preserve=link.
I understand that --preserve...
710
Posted By santiagorf
Copy question
I was reading man for cp, and I found the option cp -d.
What does it mean?
According to the documentation -d is the same as --no-dereference --preserve=link.
I understand that --preserve...
1,237
Posted By santiagorf
thank you!!
thank you!!
1,237
Posted By santiagorf
[solved] Question about I/O sources
Hi all,
What is the difference between these two comands?
sed s/a/b/ <f1 >f2
sed s/a/b/ f1 >f2

Best,
santiagorf
Forum: Programming 03-15-2012
1,671
Posted By santiagorf
I changed the call of transform algorithm to...
I changed the call of transform algorithm to this:

transform(vec1.begin(),vec1.end(),vec2.begin(),vec1.begin(),suma);

and it worked. Also vec2 has to be of size 5.
Forum: Programming 03-14-2012
1,671
Posted By santiagorf
[]solved]STL transform question
Hi all,
I pass to the transform algorithm two vectors, and the suma function.


#include <algorithm>
#include <iostream>
#include <iterator>
#include <vector>
using namespace std;

class...
Forum: Programming 06-28-2010
2,465
Posted By santiagorf
The code is taken from:...
The code is taken from: http://newdata.box.sk/bx/c/htm/ch15.htm see listing 15.1 and 15.2. Most of the code is exactly the same as the one I posted with the exception of the main function. According...
Forum: Programming 06-26-2010
2,465
Posted By santiagorf
Thanks Corona688 for your prompt replay, and in...
Thanks Corona688 for your prompt replay, and in fact if I call as function( Param(2,3)) I will have the desired result. However, what I'm trying to generate is the behavior of the code below taken...
Forum: Programming 06-26-2010
2,465
Posted By santiagorf
c++ object constructor question
I have the following code


class Param{
public:
Param(int aa, int bb){
a=aa;
b=bb;
}
int a,b;
};

void function(Param);

int main(){

function(2,3);
...
Forum: Programming 05-28-2010
2,721
Posted By santiagorf
Thank you! That solved the problem!! I's been...
Thank you!
That solved the problem!!
I's been five years since I haven't programmed in C. I'll have to review the syntax since I though I was initializing both g and p.
I still wonder why if I...
Forum: Programming 05-28-2010
2,721
Posted By santiagorf
Strange behavior in C++
I have the following program:

int main(int argc, char** argv){
unsigned long int mean=0;

for(int i=1;i<10;i++){
mean+=poisson(12);
cout<<mean<<endl;
...
Showing results 1 to 15 of 15

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