473,404 Members | 2,187 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

C- Advice

HI,

I learned C by reading a book (C in 21 days, Sams), no I just want to go on.
Some people gave me the advice to write a program like a text- editor, is that
a good desicion?

Thanks in advance,

Christopher
Nov 13 '05 #1
7 1633
cm************@aol.com (Cmorriskuerten) wrote in
news:20***************************@mb-m27.aol.com:
HI,

I learned C by reading a book (C in 21 days, Sams), no I just want to go
on. Some people gave me the advice to write a program like a text-
editor, is that a good desicion?


No. Write a file conversion utility or some sort of text parser.

--
- Mark ->
--
Nov 13 '05 #2
Cmorriskuerten wrote:
HI,

I learned C by reading a book (C in 21 days, Sams), no I just want to go on.
Some people gave me the advice to write a program like a text- editor, is that
a good desicion?


I would recommend you to write a program of your like. If you think it
would be cool to make a text editor of your own, then go for it ;)

I personally enjoy making games. I have made a game almost with every
language I have learned. I think it makes learning fun. And when it is
fun to learn, you usually learn better.

Nov 13 '05 #3
Cmorriskuerten wrote:
HI,

I learned C by reading a book (C in 21 days, Sams),
Err...
no I just want to go on.
Some people gave me the advice to write a program like a text- editor, is that
a good desicion?


If I were you, I'd start by trying to make all the exercises in the K&R2.

Bruno

Nov 13 '05 #4

"Cmorriskuerten" <cm************@aol.com> wrote in message

I learned C by reading a book (C in 21 days, Sams), no I just want to > go on. Some people gave me the advice to write a program like a text- editor, > is that a good desicion?

Learning the syntax of a language and its support functions is generally the
easy part. You then need to practise by writing real programs.

The choice of what program to write depends on the platform, your interests,
and your level of skill. For instance a simple text editor on a
character-mapped system, where you provided with a function like printat(x,
y, ch) for writing to the screen, would be quite easy to write. Trying to do
the same thing under Windows would be a much taller order.

Generally I think that graphical programs are best because you get an
immediate visual fix on any errors. However this does mean learning
something beyond the C run-time library.
Nov 13 '05 #5
>No. Write a file conversion utility or some sort of text parser.

--
- Mark ->


What do u mean by a conversion utility, a programm that converts files in
different types of files?
Nov 13 '05 #6
W´hat do u mean by "Err"? Isn't that a good book, or what?

Chris
Nov 13 '05 #7
cm************@aol.com (Cmorriskuerten) wrote in
news:20***************************@mb-m11.aol.com:
No. Write a file conversion utility or some sort of text parser.
What do u mean by a conversion utility, a programm that converts files
in different types of files?


Yes. Convert a .jpg to .gif or something like that.

Or, far simpler, write a text parser that generates a bunch of #defines,
enums, and characters strings from a list file, e.g.

// Input, apple.str, file to my new stringer program.
[elements]
foo
bar
baz
fub

[enum]
1 // Want enum version of 'elements'
bubs

[define]
0 // Don't want #define versions

[string]
1 // Want strings
bubStrings

// EOF
usage: stringer apple.str -o apple.h

output:
// apple.h
enum bubs
{
foo,
bar,
baz,
fub
};

const char *bubStrings[] =
{
"foo",
"bar",
"baz",
"fub"
};

--
- Mark ->
--
Nov 13 '05 #8

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

Similar topics

75
by: Howard Nease | last post by:
Hello, everyone. I would appreciate any advice that someone could give me on my future career path. Here is my situation: I am a bright Junior in a very well-respected private high school, taking...
5
by: Martin Piper | last post by:
Hi all. I've recently landed myself the position of trainee C++ programmer which I'm extremely pleased about, but also nervous. According to the feedback from the interview, I have a good...
3
by: Andy Dingley | last post by:
I've just started on a new project and inherited a huge pile of XSLT (and I use the term "pile" advisedly !) It runs at glacial speed, and I need to fix this this. Platform is MSXML 4 / ASP ...
11
by: ma740988 | last post by:
I'm perusing a slide with roughly 12 bullets spread across 3 pages. Each bullet reflects 'advice'. I'm ok with all but 1 bullet, more specifically the bullet that states: " Avoid the STL unless...
6
by: J Rieggle | last post by:
Hi there, I am stuck on a problem that relates to eCommerce sites, but isnt ASP.NET specific (sorry). The ecommerce site is working in the UK, and products will be sold in pounds stirling. ...
13
by: Alan Silver | last post by:
Hello, MSDN (amongst other places) is full of helpful advice on ways to do data access, but they all seem geared to wards enterprise applications. Maybe I'm in a minority, but I don't have those...
7
by: John Paul | last post by:
I'm thinking of building an e-commerce site in php. Anyone got any advice in building one? What is the best way to implement a payment system? Are any legal issues involved? Thanks,
232
by: robert maas, see http://tinyurl.com/uh3t | last post by:
I'm working on examples of programming in several languages, all (except PHP) running under CGI so that I can show both the source files and the actually running of the examples online. The first...
3
by: mesut | last post by:
Hi colleagues, I need your advice... I have approx 1,5 years experience with ASP.NET/VB.NET 2005 and I have to switch over into C# 2005 language. I don't have experience with C# 2005...
7
by: SM | last post by:
Hello, I have a index.php template (2 columns). The right columns contains a bunch of links (interviews, poems, etc...) The left columns contains the actual article. So if I click on a link on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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,...
0
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...
0
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...
0
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,...

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.