Friday, May 21, 2010

What is the most popular programming language, how different to C?

Trick question - C _is_ the most popular programming language.


Well to be honest, Java and VB are probably more popular in general (i.e. including home user hobbyists), but in the industry you'll find that C/C++ are more widely used.





Rawlyn.

What is the most popular programming language, how different to C?
c is chinese
Reply:JAVA and PL/SQL but they cannot replace each other.
Reply:PHP for scripting language, JAVA for real prog language. C is the grandfather of those programming language (but still powerfull).


Where can I get basic learnig tools on programming with c#?

1. download the visual c# express edition, it is FREE...


http://msdn2.microsoft.com/en-us/express...


2. Try to surf the link I have given and find the tutorials for begineers there


3. Search and download some examples


www.planetsourcecode.com

Where can I get basic learnig tools on programming with c#?
Have a look at http://www.programmersheaven.com/zone30/... it's a good resource for code snippets, articles and general help. Should get you going.

potential break up song

In Linux c programming, can we read a single charecter into a char variable without pressing enter key ?

I wrote the following program but I have to press enter key to get read the value into the variable.


#include%26lt;stdio.h%26gt;


main()


{


char c;


while(c!='n')


{


scanf("%c",%26amp;c);


fflush(stdin);


printf("ok");


}


}


Is there any solution for this? Why?

In Linux c programming, can we read a single charecter into a char variable without pressing enter key ?
Use curses library. Its a wonderful library for exactly what you are looking for. Using this library you can handle keystrokes i.e. a char is trapped as soon as it is pressed, you dont have to wait for enter key press.





if curses.h is not availble in your machine, then re-run Linux setup, select custom libraries, there you will find ncurses library.





You get more info at:


http://www.gnu.org/software/ncurses/ncur...


http://www.unet.univie.ac.at/aix/aixprgg...


http://www.gmonline.demon.co.uk/cscene/C... -%26gt; great one to start off with





Good luck.
Reply:use the getch() function if you want to read a single char and not have it written to the console. If you want to read a char and have it written to the console then use getchar(). Neither function have any arguments to deal with and they only return characters from the keyboard, if either function returns zero it means that multiple keys have been pressed like Alt, if it dose return zero then you have to call the function again to find out what non-graphical keys were pressed. getch and getchar may not appear in your library of functions but it is in mine in the conio header.
Reply:Have you tried kbhit();


Factoring with C programming?

I am trying to write a C programming code to factor between 1-100. Can anyone give some hints/pointers to solve this?

Factoring with C programming?
Check out this small Javascript I made that does what you want.





http://answers.yahoo.com/question/index;...





I wouldn't use that script for large numbers because it is horribly inefficient, but for small numbers it works well enough. All you would need to do is convert it to C.
Reply:Can u please clarify the question with inputs and outputs. Are you trying to find out the factors of a given number? e.g .if input is 65 output is 5,13.
Reply:Are you sure that description is correct? You can't factor a prime by definition.
Reply:Factoring as in factorising a number?


To check if A is divisible by B, try it! If the result is an integer, then you have found a factor!!! If no factors are found, the result is prime. You only ever need check for prime factors, and only ever for factors less than or equal to the square root of the number you are checking. Refer back to your school maths textbooks for more info.





Rawlyn.





In response to your additional remarks: A prime number by it's own definition has only two factors - itself and one. Therefore factorising primes is a trivial matter, not something you need to write a program to do. Try reading my post again, all the information you need is right there.


Where can i find ppt on fundamentals of c programming language?

I dont think the fundametals of programming in any language could be written vaguely enough to fit in a ppt. Just my opinion, but have you googled it?

Where can i find ppt on fundamentals of c programming language?
Here's one on *just* String I/O that was used in my computer architectures class. As the other responder said, fitting all of C's fundamentals into 1 ppt would be hard (especially if you want it to be for someone who's never programmed and has no concept of the stack, heap, buffer overflow, stack underflow, variables, pointers, memory, etc)


What do I need to include in a C program source code distribution?

I'm working on a C programming project, using Dev-C++. What files do I need to include if I want to distribute the source code? Besides the .c, .h, .rc files I wrote, there're .manifest, makefile... Which of those are needed in order to let others compile successfully, using any compiler they like?





And what is the use of those Dev-C++-generated files like .manifest, makefile?

What do I need to include in a C program source code distribution?
The makefile describes the build instructions and dependencies. You always want to include this.





Throw in the any other tool-generated files as well - it can't hurt, and if someone is using dev-c++, it would be welcome.





If you use a special library (like sdl), you may want to include it. This is up to you, and may depent on your target audience.





Document anything like that - include urls for where get libraries and and other stuff even if you do include them.

ovary

C Progaramming or Basic Programming Language?

I dont know anything not a single thing about C programming nor about Basic Programming Languge but i wannt to learn a programme so with which should i start C or Basic or anyother language. Pease advise me....

C Progaramming or Basic Programming Language?
Just to be clear, there's a difference between BASIC and VISUAL BASIC.


BASIC is a 2nd generation language..outdated with almost no practical use anymore as far as business usage.





VISUAL BASIC 6.0 is a 5th generation language which is still a good tool for applications and is a good choice for a first language to learn. It's simple to use yet teaches logic and syntax.
Reply:LEARN C# (C SHARP) !!!
Reply:Start learning C first. Basic is just a toy. C is one of the most powerful and flexible languages out there. By learning C, you can get a great handle true programming. If you can't tell C is my favorite language. I love it :)
Reply:BASIC, why? its easier. and is a good start. get visual basic 6 enterprise edition, and goto www.planetsourcecode.com when you need help.





youll learn variables , and stuff like that.





when tired of basic, and feeling strong learn C, then C++ :-)





And get lots of books on visual basic!





Good Luck!





CodeSeeker
Reply:Go with C.
Reply:Start with java.. it's the easiest language to understand..
Reply:start with C...


it might be a litte harder but, youll adjust.
Reply:Start with Vbasic. C programming is difficult to learn as a first programming language.








Update who ever gave me the thumbs down doesnt know much about computer programming. Any college counselor will agree.