[gmx-users] modify the gromacs4.5.5 code: using cout

Carsten Kutzner ckutzne at gwdg.de
Wed Nov 30 12:43:45 CET 2011


Use fprintf(stdout, "…");

Carsten


On Nov 30, 2011, at 12:27 PM, 杜波 wrote:

> dear teacher,
> 
> i want to modify the gromacs4.5.5 code ,can i use function "cout" which is introuduce in c++.
> 
> i add the code 
> 	#include <string.h>
> 	#include <iostream>
> at the head of the md.c 
> 
> but when i make , there is a error "
> md.c:103:20: error: iostream: No such file or directory"
> 
> thanks 
> regards,
> Bo Du
> Department of Polymer Science and Engineering,
> School of Chemical Engineering and technology,
> Tianjin University, Weijin Road 92, Nankai District 300072,
> Tianjin City P. R. China
> Tel/Fax: +86-22-27404303 ; +8613820062885
> E-mail: 2008dubo at gmail.com ; dubo2008 at tju.edu.cn
> 
> -- 
> gmx-users mailing list    gmx-users at gromacs.org
> http://lists.gromacs.org/mailman/listinfo/gmx-users
> Please search the archive at http://www.gromacs.org/Support/Mailing_Lists/Search before posting!
> Please don't post (un)subscribe requests to the list. Use the 
> www interface or send it to gmx-users-request at gromacs.org.
> Can't post? Read http://www.gromacs.org/Support/Mailing_Lists




More information about the gromacs.org_gmx-users mailing list