Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: lcout
  • Order by date
  1. lcout

    how to fork in this case ?

    Hello I have a problem to fork ... In fact my command is like "cd /pathy/; runny -arg1 AA -arg2 BB" runny is an executable in the directory pathy. Before, I made a system call like : system("cd /pathy/; runny -arg1 AA -arg2 BB") system open a shell then run the line...
  2. lcout

    Hello Is anyone know where I can

    Hello Is anyone know where I can find the sources of a nice matrix class ... ? Thank you very much lcout
  3. lcout

    how to do pipes in C

    Oh ... Ok ... anyway I am sick today ... it is my excuse ... I should not answers ... marsd is right ... I absolutly didn't get the question in fact ... here a small example with my apologize : about popen #include <stdio.h> int main (int argc, char **argv) { FILE* flux; char...
  4. lcout

    how to do pipes in C

    There is no special tricky things to do this. On the most system, the pipe ( | ) or redirection ( < ) is the same than the standard IO of your C program. you just have to remember than the IO is a text line. if you make a program (Ony) witch return the letter &quot;T&quot; or what ever...
  5. lcout

    Read keyboard input

    here a simple code ... #include <stdio.h> #include <stdlib.h> #include <string.h> #include <curses.h> char * ready(const char *); int main(void) { char * wordy; wordy = ready(&quot;\nwrite your texte : &quot;); printf(&quot;\n result is : %s\n&quot;, wordy)...
  6. lcout

    How system() works?

    re re Hello then the best to see it is to try this #include <stdlib.h> int main(int argc, char **argv) { system(&quot;ls -l&quot;); return 0; } there is abolutly no dependances between main's arguments and what you write in the system line. except if you construct the &quot;ls...
  7. lcout

    Linking multiple executables in C++ (Unix)

    Re Hello My answers is in the other post about linking ... The only thing I want to write more is that the word &quot;link&quot; as nothing to do with the system call ... usually when you have only libraries (without main function) ... you compile with the -c option and you create an objetc...
  8. lcout

    Linking multiple programs

    Hello By the small code you wrote, the first things to say is that it is correct. Then the core dump might come from what you are putting in the system call eg : &quot;program1&quot; &quot;program2&quot; etc ... I mean the core dump come from the other programs. If I have no choice than...
  9. lcout

    Core dumped with Vector in C++

    I am not very sure if I will answer correctly ... but here there is my first answers of all. I think you forgot to feed your vector in the struc A_Bucket this what I tested : #include<vector> #include <iostream> using namespace std; struct A_key { char *key; long total; }; struct...

Part and Inventory Search

Back
Top