473,808 Members | 2,816 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

i am student of MCA. i want to know what ....

i am student of MCA. i want to know what things are needed to be a
efficient programmer in c and c++.

Aug 28 '07 #1
2 1389

<ha************ **@gmail.comwro te in message
news:11******** **************@ x40g2000prg.goo glegroups.com.. .
>i am student of MCA. i want to know what things are needed to be a
efficient programmer in c and c++.
The C language doesn't take long to learn. However it takes a long time to
be really effective. The only answer is to write lots of code.

--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm

Aug 28 '07 #2
>>>>"MMcL" == Malcolm McLean <re*******@btin ternet.comwrite s:

MMcL<ha******** ******@gmail.co mwrote in message
MMcLnews:11**** *************** ***@x40g2000prg .googlegroups.c om...
>i am student of MCA. i want to know what things are needed to
be a efficient programmer in c and c++.
MMcLThe C language doesn't take long to learn. However it takes
MMcLa long time to be really effective. The only answer is to
MMcLwrite lots of code.

There's more to the answer than that. If you write code uncritically,
you don't learn C very well, and you wind up with a great steaming
pile of bad code. Examples abound, and if you pay attention for a
week in this group you'll find several.

Read other people's code - but don't assume that just because it's in
production, or because it's published, or because it's part of a
high-profile open source project that it's good. Compile and run your
code in as many different environments as you can, so you can avoid
the "all the world's a Vax^W^Wan x86" misconception. Use the best
automated code-checking tools (such as lint and gcc -Wall) that you
can find. Read through the C standard that you're adhering to; you
probably won't understand it at first, but the more C you learn, the
more you'll understand it. Have more experienced programmers review
your code and comment on it, and pay attention to and learn from their
comments. Remember that if a dozen experts disagree with you, there's
a damn good chance that you're wrong and they're right; to be Galileo,
it is not sufficient that the establishment disagree with you, but for
the establishment to be wrong.

And programming is a separate skill from knowing the syntax and
semantics of a language. Far too many people think that they are
programmers when they have a loose grip on the syntax and no grip at
all on the semantics of a single programming language. The more you
equate "learning C" with "learning to program" the worse you will end
up doing at both.

Further good advice: http://norvig.com/21-days.html

Charlton

--
Charlton Wilbur
cw*****@chromat ico.net
Aug 28 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1878
by: Mojo | last post by:
Ok, I don't want to much help but I need a push. I am supposed to write a program with 3 classes: 1. Controlling class 2. Student class 3. Grades class Controlling class instantiates a student ( I need 5 of these) object and gives it a name and studentID. Then I need to create a Grades object that goes with the student that holds 5 grades. So far I have the Controller creating the student and then in the student
1
6417
by: Louis | last post by:
Hi, I am a first time poster here. I have been given an assignment to do from college and it is ot create a student gradebook. I have planned all the tables etc. to what I believe to be correct. I have also set the relationships etc. I have three tables here that are causing the most problems. These are: Students - contains information on students Assignments - this is the actual work the students should be doing Results - These are...
15
3410
by: Sean Botha | last post by:
Hi I have just started vb.net (june 2003) and me and my fellow students are playing some tricks on each other(not harmfull) I have already managed to shut down the pc without saving anything when the program is run can anyone suggest anything else i can do. If you do not whant to give the code that is fine just give me a idea and i will try and figure it out on my own ... good way to learn the language.
6
1536
by: Chris | last post by:
Could someone point me to an example or at least outline of a solution to the following problem: I want to be able to compile the body of a method written in C++, submitted by a possibly malicious CS student, and if it compiles correctly execute it within a sandbox with limited privileges (e.g. no I/O, or I/O only to certain directories). I know Java and its security manager system pretty well, but I'm just learning .NET. I know...
5
3608
by: Bill | last post by:
Can I do this in one SQL statement? If so, please tell me how. I have wasted a ton of time on this but there has to be an easy way to do it. I should have done it with more than one statement and been done with it but I can't stop thinkin about it. Table: Grades Columns: StudentID
2
9701
by: sallyk07 | last post by:
Modify the Student class so that each student object should also contain the scores for three tests. Provide a constructor that sets all instance values based on parameter values. Overload the constructor such that each test score is assumed to initially be zero. Provide a method called setTestScore that accepts two parameters: the test number (1 through 3) and the score. Also provide a method called getTestScore that accepts the test number and...
15
1872
by: MissHex | last post by:
Hello everyone, am building a housing system and i want to be able to seach the data base for empty rooms then assign no more than 2 students in each room i have a table Student that contains Student ID and a table Room that contains the room ID i built another table that contains the roomID and the StudentID but how can i limit the entries to the rooms to make no more than two?
31
16438
by: Warly girl | last post by:
Hi i have a qustion plz help me to understand and solve it Phase One Problem description You are required to implement a student registration system. The system keeps information about the students including their id, which is an automatic number issued by the system, a name, and current number of courses. It is important to keep the count of courses a student is currently enrolled in since he is only allowed to register for 4 courses at...
2
2438
by: nirav11 | last post by:
# include <iostream> # include <fstream> # include <iomanip> # include <cstdlib> // needed for exit () using namespace std; int main() { ifstream inFile; ofstream outFile;
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9600
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10631
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10374
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10114
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9196
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
4331
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3859
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.