
#import <Foundation/Foundation.h>
int main(int argc, const char * argv[])
{
@autoreleasepool {
NSLog(@"Hello World"); //NSString
}
return 0;
}

'Programing'에 해당되는 글 16건
![]() #import <Foundation/Foundation.h> int main(int argc, const char * argv[]) { @autoreleasepool {
NSLog(@"Hello World"); //NSString
} return 0; } ![]() ![]()
![]() ![]() 삼각형 예제
#include <stdio.h>
for(i=1;i<=5;i++) for(j=1;j<=i;j++) } }
역삼각형 예제
#include <stdio.h>
for(i=5;i>=1;i--) for(j=1;j<=i;j++) } }
삼각형 예제
#include <stdio.h>
for(i=1;i<=5;i++)
![]() ![]() #include <stdio.h>
for(i=1;i<=9;i++) for(j=1;j<=9;j++) } }
![]() ![]() 이클립스 실행시 생기는 에러
위와 같은 경고창이 뜬다면 이클립스 설피 폴더로 이동후 eclipse.ini 파일을 메모장으로 연다. -startup plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519 -product org.eclipse.epp.package.jee.product --launcher.XXMaxPermSize 256M -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m -vmargs -Dosgi.requiredJavaVersion=1.5 -Xms40m -Xmx512m 맨아레 512 부분을 256으로 수정 -vmargs 아래에 자바 설치 폴더 bin 폴더 안에있는 javaw.exe 경로를 추가시켜준다. ex) -startup plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519 -product org.eclipse.epp.package.jee.product --launcher.XXMaxPermSize 256M -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m -vmargs C:\Program Files\Java\jdk1.6.0_21\bin\javaw.exe -Dosgi.requiredJavaVersion=1.5 -Xms40m -Xmx256m 위와같이 변경 ![]() |
|||||||||||||||||