[complement-svn] SF.net SVN: complement: [1776] trunk/complement/explore/inquiry/shades
Status: Pre-Alpha
Brought to you by:
complement
From: <com...@us...> - 2007-10-24 16:56:47
|
Revision: 1776 http://complement.svn.sourceforge.net/complement/?rev=1776&view=rev Author: complement Date: 2007-10-24 09:56:45 -0700 (Wed, 24 Oct 2007) Log Message: ----------- sizeof static array Added Paths: ----------- trunk/complement/explore/inquiry/shades/sz/ trunk/complement/explore/inquiry/shades/sz/Makefile trunk/complement/explore/inquiry/shades/sz/Makefile.inc trunk/complement/explore/inquiry/shades/sz/test.cc Property changes on: trunk/complement/explore/inquiry/shades/sz ___________________________________________________________________ Name: svn:ignore + obj Added: trunk/complement/explore/inquiry/shades/sz/Makefile =================================================================== --- trunk/complement/explore/inquiry/shades/sz/Makefile (rev 0) +++ trunk/complement/explore/inquiry/shades/sz/Makefile 2007-10-24 16:56:45 UTC (rev 1776) @@ -0,0 +1,9 @@ +# -*- Makefile -*- Time-stamp: <04/01/09 16:53:50 ptr> + +SRCROOT := ../../.. +COMPILER_NAME := gcc + +include Makefile.inc +include ${SRCROOT}/Makefiles/gmake/top.mak + +LDFLAGS += -Wl,-rpath=${STLPORT_LIB_DIR} Added: trunk/complement/explore/inquiry/shades/sz/Makefile.inc =================================================================== --- trunk/complement/explore/inquiry/shades/sz/Makefile.inc (rev 0) +++ trunk/complement/explore/inquiry/shades/sz/Makefile.inc 2007-10-24 16:56:45 UTC (rev 1776) @@ -0,0 +1,4 @@ +# -*- makefile -*- Time-stamp: <04/04/16 20:55:38 ptr> + +PRGNAME = test +SRC_CC = test.cc Added: trunk/complement/explore/inquiry/shades/sz/test.cc =================================================================== --- trunk/complement/explore/inquiry/shades/sz/test.cc (rev 0) +++ trunk/complement/explore/inquiry/shades/sz/test.cc 2007-10-24 16:56:45 UTC (rev 1776) @@ -0,0 +1,29 @@ +#include <iostream> +// #include <string> + +char *arr[][2] = { + { "1", "1.2" }, + { "2", "2.2" }, + { "2", "2.2" } +}; + +using namespace std; + +int main() +{ + cerr << sizeof(arr) << " " << sizeof(arr[0]) << " " << sizeof(arr)/sizeof(arr[0]) << endl; + +#if 0 + string s( "01234567Tabc" ); + + string::size_type p = s.find( 'T', 6 ); + if ( p != string::npos ) { + cerr << s.substr( 0, p ) << endl; + } + + s.erase( p ); + cerr << s << endl; +#endif + return 0; +} + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |