Welcome to Anything Forums! We are a general discussion forum that believes in freedom of expression and aim to provide a low moderation (within reasonable means) environment to discuss any topic. If you want to join, simply click HERE to be taken to our account management system where you can make an account. If you had an account at iceteks.com, anythingforums.com, uovalor.com or uogateway.com in the past it has been transfered over and you can simply do a password reset.
Computer builds, hardware and software discussion or troubleshooting, including peripherals. Essentially a general place to talk about desktop computers.
#include <studio.h>
int main(void)
{
int count;
for(count=1;count<=500;count++)
printf("I will write my lines fast.");
return 0;
{
[code]
[color=#888888][size=85]Archived topic from Iceteks, old topic ID:3980, old post ID:32678[/size][/color]
#include <iostream>
using namespace std;
int main()
{
for(int count=1;count<=500;count++)cout<<"I will write my lines fast.";
return 0;
}
[code]
Unless this is a course on C and you have to use C and not C++ then the way I did it is more "new", I guess I can say.
The using namespace std is part of every program, so no need to know what it does, just put it. iostream is used for cout<< and cin>> (get user input) and other basic stuff.
for C it's stdio.h I believe, that does all this.
[color=#888888][size=85]Archived topic from Iceteks, old topic ID:3980, old post ID:32680[/size][/color]
Honk if you love Jesus, text if you want to meet Him!
#include <studio.h>
int main(void)
{
int count;
for(count=1;count<=500;count++)
printf("I will write my lines fast.");
return 0;
{
[code] [/quote]
#include <studio.h>
[b] Does not exist, it should read:[/b]
#include <stdio.h>
int main(void)
{
int count;
for(count=1; count<=500; count++)
printf("I will write my lines fast.");
return 0;
{
[b] Your last parse should be inverted to a } [/b]
[b] I usually use count = count + 1 where you did count++, but I am pretty sure that's valid as well. As for a compilor, I use Dev C++, got it from Bloodshed's site I believe[/b]
That's all the errors I was able to pick out.
[color=#888888][size=85]Archived topic from Iceteks, old topic ID:3980, old post ID:32683[/size][/color]
#include <stdio.h>
int main(void)
{
int count;
for(count=1;count<=500;count++)
printf(%i," ) This is my message.",count);
return 0;
}
[code]
I think this might make it go like:
1)This is my message.
2)This is my message.
3)This is my message.
On to 500.
[color=#888888][size=85]Archived topic from Iceteks, old topic ID:3980, old post ID:32711[/size][/color]