473,414 Members | 1,692 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,414 software developers and data experts.

Armed with Ora and K&R -- n00b to C

Hello,

I'm very new to C. I have followed some of the earlier programs in the K&R
book, but I am still far from even being a novice. For a long time I was
looking for a little support group that I could come to for some guidance,
it seems with this newsgroup I have found that. I've known usenet was the
way to go, but when I started on my quest to learn C, I lost my high-speed
internet connection. The only internet connection I had was the limited one
my company gives me so I can connect through VPN, but I've got the DSL back
now -- just no static IP. But that will come in time.

I'm jumping back and forth between K&R and the Ora book because I find that
some concepts are better explained by the other. It helps to have two
different teachers. I need to learn C because I'm an avid UNIX user, but
don't know how to read source code. The most I can do is bash scripting
which in itself is quite powerful.

The company to which I am employed is a Windows shop. I've written many
bash scripts from my lowly BSD system under my desk that automates many of
my tedious tasks, but they don't like it because no one understands the
scripts, and they say that UNIX is outside of the standard. I will let go
of UNIX from work as much as I can, but the fact is there are things that
need to be scripted still, and how else am I to do this, with DOS Batch? I
discovered VBScript. This has been a challenge to learn as it is my first
exposure to OOP. But I've got the hang of it now.

It seems that my natural progression as a maturing systems administrator is
to learn to program as I realize I want to spend more time outside of work
and at the same time reducing human error; or even simply I want to spend
less time working be it in the office or not. Hehehe

Also, it seems that once you know one language you pretty much know all of
them. I was a PERL programmer for a while, but even that requires an engine
to be installed in Windows... a no no to high command.

So to conclude and get back on track, I'm so glad to have found this
newsgroup!!! I look forward to learning from you guys and I hope to be able
to contribute something back too.

P
Nov 13 '05 #1
5 1651
Peter Ong wrote:
Hello,

I'm very new to C. (snip)
I'm jumping back and forth between K&R and the Ora book because I find that
some concepts are better explained by the other. It helps to have two
different teachers. I need to learn C because I'm an avid UNIX user, but
don't know how to read source code. The most I can do is bash scripting
which in itself is quite powerful.
Well, sometime most than C !-)
http://catb.org/~esr/writings/unix-k...-thousand.html
The company to which I am employed is a Windows shop. I've written many
bash scripts from my lowly BSD system under my desk that automates many of
my tedious tasks, but they don't like it because no one understands the
scripts,
This is the usual show-stopper from incompetent morons managing more or
less competent programmers. I've already heard it too many times since I
started working as a programmer, and my career began just a few years ago.
and they say that UNIX is outside of the standard.
which standard ?
I will let go
of UNIX from work as much as I can, but the fact is there are things that
need to be scripted still, and how else am I to do this, with DOS Batch?
Good luck.
I
discovered VBScript. This has been a challenge to learn as it is my first
exposure to OOP. But I've got the hang of it now.
There are really good scripting languages that run on Windows. Python -
that have a pretty good support for COM - comes to mind.
It seems that my natural progression as a maturing systems administrator is
to learn to program as I realize I want to spend more time outside of work
and at the same time reducing human error; or even simply I want to spend
less time working be it in the office or not. Hehehe

Also, it seems that once you know one language you pretty much know all of
them. I was a PERL programmer for a while, but even that requires an engine
to be installed in Windows... a no no to high command.
How does your boss expect you to work if you can't use usual admin tools
? Bad Boss, change Boss !-)
So to conclude and get back on track, I'm so glad to have found this
newsgroup!!! I look forward to learning from you guys and I hope to be able
to contribute something back too.


Welcome...

Bruno

Nov 13 '05 #2
Peter Ong wrote:
... but the fact is there are things that
need to be scripted still, and how else am I to do this, with DOS Batch? I
discovered VBScript. This has been a challenge to learn as it is my first
exposure to OOP. But I've got the hang of it now.


These newsgroups are topical for scripting in Microsoft operating systems:
news:alt.msdos.batch
news:alt.msdos.batch.nt <-- probably the best one of the two

You may find it much easier to write scripts in the provided script
environments under Windows than to write a C program for each task.

- Larry Weiss
Nov 13 '05 #3
Larry__Weiss wrote:
Peter Ong wrote:
... but the fact is there are things that
need to be scripted still, and how else am I to do this, with
DOS Batch? I discovered VBScript. This has been a challenge
to learn as it is my first exposure to OOP. But I've got the
hang of it now.


These newsgroups are topical for scripting in Microsoft operating
systems:
news:alt.msdos.batch
news:alt.msdos.batch.nt <-- probably the best one of the two

You may find it much easier to write scripts in the provided script
environments under Windows than to write a C program for each task.


This is OT on c.l.c, and better suited to comp.programming (FUPs
set). For operation on windows I would suggest using the much
improved batch language (backward compatible) available under 4NT
or 4DOS command processors. They are available at jpsoft.com.
Another option is to install DJGPP and bash, which will give you
scripting largely compatible with most Unix/Linux systems. Some
appropriate newsgroups:

comp.os.msdos.4dos
comp.os.msdos.djgpp

--
Replies should be to the newsgroup
Chuck Falconer, on vacation.
Nov 13 '05 #4


Larry__Weiss wrote:
Peter Ong wrote:
... but the fact is there are things that
need to be scripted still, and how else am I to do this, with DOS Batch? I
discovered VBScript. This has been a challenge to learn as it is my first
exposure to OOP. But I've got the hang of it now.

These newsgroups are topical for scripting in Microsoft operating systems:
news:alt.msdos.batch
news:alt.msdos.batch.nt <-- probably the best one of the two

You may find it much easier to write scripts in the provided script
environments under Windows than to write a C program for each task.


How about Ch shell? a C/C++ interpreter with extended shell
capability. It supports C90 and major C99 features. I think write C program for
scripting is kinda of easy with it.

http://www.softintegration.com/docs/ch/shell/

It is free to download and runs across platform.



- Larry Weiss


Nov 13 '05 #5
"on********@yahoo.com" wrote:
How about Ch shell? a C/C++ interpreter with extended shell
capability. It supports C90 and major C99 features. I think write C program for
scripting is kinda of easy with it.
http://www.softintegration.com/docs/ch/shell/
It is free to download and runs across platform.


I dl'ed it just after you posted it, but have not found the time to install
and try it out. I'll try hard this next week to give it attention.
Thanks for the pointer.

- Larry Weiss
Nov 13 '05 #6

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

Similar topics

1
by: Matt | last post by:
I'd like to overwrite just one line of a binary file, based on a position set by seek(). Is there no way to do this? As far as I can tell I need to read the whole file, change the line, and write...
3
by: anthony hornby | last post by:
Hi, I am starting my honours degree project and part of it is going to be manipulating ASCII encoded XML files from a legacy database and converting them to Unicode and doing text processing stuff...
3
by: Anupam Kapoor | last post by:
hi all, a python n00b, so please bear with me. i have a simple question: i generally name python sources as a-simple-python-example.py. when i try to import a module named as above, i...
1
by: newgenre | last post by:
I am using a pre-built package of code for my site, which is called EasyDisc. All it does is it creates an interactive forum on your site, like any forum you see anywhere. I am having a problem...
2
by: ducky | last post by:
Hi all, The only programming experience i have under my belt so far is VB. I'm just starting out on C++ and wonder if anybody suggests and good (free) starting points for me to get going. I'm...
4
by: onefry | last post by:
Hey I have this prog that i'm working on, starting my first c++ class and kind of a n00b to programming here it is #include <iostream> #include <cstdlib> using namespace std;
6
by: Charles | last post by:
I am learning from the Accelerated C++ book. The following example doesn't work and I don't know why: #include <iostream> #include <string> int main () { const std::string exclam = "!"; const...
8
by: HardHackz | last post by:
Hey, I'm trying to learn C++, the problem is, when I do cout << "Hello World!"; it always opens dos and closes it to quickly to see...i know im a total n00b, but any help?
0
by: hockeyjk | last post by:
All, I'm writing a program that creates a histogram of data. IDLE is freezing up after the window opens (doesn't prompt user or graph anything). The window that opens is named "tk" rather than...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.