Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 ALL


  C vs Java Complete Comparison

Similarities:Java and C have same syntax operators.Difference—thinkingTwo paradigms:Java: Object oriented languageC: Structured languageDifferences: --SyntaxNo preprocessorJava does not include a preprocessor and does not define any analogs of the #define, #include, and #ifdef directives. Constant definitions are replaced with static final fields in Java. (See the java.lang.Math.PI field for an example.) Macro definitions are not available in Java, but advanced compiler technology and inlining has made them less useful. Java does not require an&nbs...

34,681 7       JAVA COMPARISON C DIFFERENCE SIMILARITIE


  VIM Plugins for C/C++ developers

Following up on my previous post on Essential Vim Plugins for Web Developers, I have decided to tell you about the awesomeness of the C / C++ plugin for Vim in this article.Now to get things going, let’s start by thinking what are the basic stuffs that you would be carrying out as a C / C++ developer? Include header files, some functions, loops, conditional statements and a main function. These are some repetitive boring tasks that you would rather have someone else do it for you. Well, that’s what c.vim plugin is all about.For example, after installing this plugin, when you...

7,226 0       C PLUGIN C++ DEVELOPER VIM VIM FOR C


  Read white space with scanf()

Usually, when we want to enter string with white spaces in C, we need to call gets() or fgets(0 method. We usually will not use scanf(0 or fscanf() because they cannot accept white spaces when scan user inputs. But when we specify the format in scanf() function, we may read strings with white space. the code section below illustrate this:#include <stdio.h> int main(int argc,char **argv){       char name[30];    fprintf(stdout,"Please enter the name : \n");fscanf(stdin,"%[^\n]s",name); fprintf(stdout,"%s\n",name); return 0;} On a...

19,769 0       C SCANF WHITE SPACE STRING FORMAT


  The most stupid C bug ever

I have been programming for a number of years already. I have seen others introduce bugs, and I have also introduced (and solved!) many bugs while coding. Off-by-one, buffer-overflow, treating pointers as pointees, different behaviors or the same function (this is specially true for cross-platform applications), race conditions, deadlocks, threading issues. I think I have seen quite a few of the typical issues.Yet recently I lost a lot of time to what I would call the most stupid C bug in my career so far, and probably ever.I am porting a Unix-only application which uses tmpfile() to create te...

2,177 0       C BUG STUPID BUG CODE ALL


  An open letter to those who want to start programming

First off, welcome to the fraternity. There aren’t too many people who want to create stuff and solve problems. You are a hacker. You are one of those who wants to do something interesting.“When you don’t create things, you become defined by your tastes rather than ability."– WhyTheLuckyStiffTake the words below with a pinch of salt. All these come from me – a bag-and-tag programmer. I love to get things working, rather than sit at something and over-optimize it.Start creating something just for fun. That’s a great start! There’s no way you ...

2,176 0       JAVA PROGRAMMING TIPS C C++ SKILL DEVELO


  10 Tips To Make Your C Program Effective

The beauty of any code lies not only in finding the solution to a given problem but is in its simplicity, effectiveness, compactness and efficiency( memory ). Designing the code is harder than actually implementing it. Hence every programmer should keep a couple of basic things in mind while programming in C. Here we introduce you to such 10 ways of standardizing your C code.1. Avoid unwarranted function callsConsider the following two functions:view source print?1void str_print( char *str ) 2  3{ 4  5    int i; 6  7    for ...

2,768 0       TIPS C EFFICIENT SPEED INCREMENT RECURSI


  The History of Programming Languages

This post is part of our ReadWriteHack channel, which is a resource and guide for developers. The channel is sponsored by the Intel AppUp Developer Program. As you're exploring these resources, check out this helpful resource from our sponsors: AIR for AppUp: What You Need To Know Rackspace recently published a nice infographic on the evolution of programming languages. It starts with FORTRAN and COBOL and runs through Ruby on Rails (which, yes, is a framework and not a language). Unfortunately, it omits such influential languages as  Lisp,  ALGOL 60 and  Smalltalk. But inclu...

3,837 0       JAVA C PROGRAMMING LANGUAGE HISTORY


  If a programming language was a boat…

我是受最近的一个论坛帖子启发,他的想法至今仍让我感到奇特。Turing(图灵)Turing绝对是一个双人皮划艇(感谢评论里的提醒)。它很小。人力的。它通常被当作初学者的”船“。而且它非常的加拿大。Original photo by naokomcJavaJava...

4,630 0       PROGRAMMING C C# TURING