Because of the way it's compiled at runtime, you can make binary executables and distribute them, so people who don't have a Python installation to run a program written in it.
i didn't know that. are you sure??
Because of the way it's compiled at runtime, you can make binary executables and distribute them, so people who don't have a Python installation to run a program written in it.
i didn't know that. are you sure??
thanks for the replies. i think i'm going to buy "C Programming Language : ANSI C Version, by Brian W. Kernighan, Dennis Ritchie".
i wonder why anyone would want to write non-standard code.
i'm using gentoo linux and mozilla 1.7.3. thanks a lot!
yes, it must be a bug with google. i noticed it on another site as well.
i've been reading a lot of the posts here to help me learn C. the problem is, much of the code is written for other compilers (i use gcc). i didn't know there was compiler-specific code until i tried to compile code from questions asked here.
this seems so backwards, coming from a background in interpreted languages. please shed some light on the issue.
int fgetc(FILE* stream);
Returns next character from (input) stream stream, or EOF on end-of-file or error.
http://www.infosys.utas.edu.au/info/documentation/C/CStdLib.html
here are the screenshots. i think that explains it best.
i didn't notice a difference. are you using mozilla?
i decided not to do any ranks/titles for the time being. maybe i'll start a thread on the topic later on. i think a lot of the people who are using it are used to email lists and they might not like being called a n00b, newbie, or apprentice.
plus i've heard the argument that it's quality, not quantity that counts, and phpBB doesn't have a reputation system built in.
i'm trying to decide what my ranking system will be and am not sure what post-intervals to use. i've noticed that popular forums have larger intervals. should i wait to see how popular the site will be before i set the ranks?
good suggestions.. thanks. i think one thing that really helps a forum get started is word of mouth. i've been trying to spread the word lately and have been getting more posts.
could the "sponsored link" boxes be made just a few pixels taller? when i'm scrolling down a page with the mouse wheel and go over a box, the page stops scrolling, and the "sponsored link" box starts scrolling. it seems pretty minor, but it's annoying when you have to dodge the ads with your eyes and your mouse.
no wonder. i'm using gcc.
has anyone used embedded mysql in their app? please share your experiences. i'm contemplating whether or not to do it.
i may just use XML. i know it's improper, but a lot of commercial apps do it!
To log into msn messenger with gmail account, first you have to register an account at https://register.passport.net/default.srf?sl=1 After reigstering, you should be able to log in.
Hope it helps.
if i register my gmail account here, will i get all the junk mail that hotmail users get?
okay, i understand. thanks for explaining. great job on these forums by the way.
this is a pretty standard first program:
#include <iostream.h>
int main() {
cout << "Hello, World!" << endl;
return 0;
}
i use fluxbox. it's all i need. when i look for any software (or just about anything) i expect it to do one thing, and do it well.
thanks for the replies.
i just read the forum policy, after seeing that my forum URL had been removed from my original post in this thread. so why is it that threads like this haven't been edited?
and why do so many long-time users of these forums have blatent advertisements in their signature??
...and It runs, but the awnsers not what i'm looking for.
what is the answer? i get these errors when compiling the program:
gcc -o dates dates.cpp
dates.cpp: In function `int DayCalculation(int, int, int, int, int, int)':
dates.cpp:67: warning: converting to `long int' from `double'
/tmp/ccLb60he.o(.text+0x1b): In function `main':
: undefined reference to `std::cout'
/tmp/ccLb60he.o(.text+0x20): In function `main':
: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
/tmp/ccLb60he.o(.text+0x2e): In function `main':
: undefined reference to `std::cin'
/tmp/ccLb60he.o(.text+0x33): In function `main':
: undefined reference to `std::basic_istream<char, std::char_traits<char> >::operator>>(int&)'
/tmp/ccLb60he.o(.text+0x42): In function `main':
: undefined reference to `std::cout'
/tmp/ccLb60he.o(.text+0x47): In function `main':
: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
/tmp/ccLb60he.o(.text+0x55): In function `main':
: undefined reference to `std::cin'
/tmp/ccLb60he.o(.text+0x5a): In function `main':
: undefined reference to `std::basic_istream<char, std::char_traits<char> >::operator>>(int&)'
/tmp/ccLb60he.o(.text+0x69): In function `main':
: undefined reference to `std::cout'
/tmp/ccLb60he.o(.text+0x6e): In function `main':
: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char,
......
Compilation exited abnormally with code 1 at Wed Dec 8 18:28:49
i'm not sure how my post is totally irrelevant. perhaps i shouldn't have said that we're on the "topic" of scripting languages, but instead that this is a thread in the c/c++ forum and i'm continuing with the off-forum-topic discussion.
anyways, that python code prints what you want. if you know python it will probably help you out when writing the php code.
mikeandike22,
did you read the question?
while we're on the topic of scripting languages, here's a dirty hack in python:
l = []
for i in range(1,10):
if i % 2 != 0:
l.append(i)
for i in range(1,6)[::-1]:
print "".join([str(x) for x in l[0:i]])
books are expensive.
i have a forum for a relatively small (but rapidly growing) niche of researchers worldwide. it's been really slow getting it going.. very low traffic. do you think people will use it? are low traffic forums useful? the address is << url snipped to comply with forum policy >>
i think another problem is that a lot of old-school scientists aren't used to posting questions to a web-based forum. they ask on newsgroups or search the literature.
>pls can u give me some definition and information about c language
Get a good book. Online tutorials have a tendency to suck ass.
not from my experience. every time i buy a programming book, it ends up sitting on the shelf while i find the best documentation online.
do you know about texmacs? it seems to be just what you're looking for. here's a site describing how to get it running on windows: http://www.fmi.uni-passau.de/~seidl/texmacs/tmtour.html
i'm also a bit confused. for example, all of the following code works just fine:
#include <stdio.h>
main()
{
char c[100];
scanf("%s", &c);
printf("test %s", &c);
}
#include <stdio.h>
main()
{
char c[100];
scanf("%s", &c);
printf("test %s", c);
}
#include <stdio.h>
main()
{
char c[100];
scanf("%s", c);
printf("test %s", c);
}
please explain which is best and why.
can C programs use iostream? i've done it in C++, and read that it can be done in C, but i keep getting compilation errors.
#include <iostream>
using namespace std;
main()
{
cout << "test";
}