![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,209
Rep Power: 5
![]() |
Not sure about government generally, but the reason US DoD mandated ada was because they had put a lot of effort into developing it as a means of addressing many common problems. Security was only one of those: the more dominant concern was being able to have a program that is more likely to demonstrably work correctly. The catch, and the reason they have backed away from only mandating Ada, is that measurable productivity was not particularly high. Particularly with educational institutions moving more towards teaching "flavour of the month" languages rather than teaching basic software engineering principles. Ada is a challenging language to learn from day 1, as it requires such skills, so it became tough to find people with skills who could be trained so they become an Ada person, let alone find people who actually knew Ada. The fact that early versions of Ada were large complex languages and dropped in place quickly (rather than growing over a period of time, as far as industry usage is concerned) meant a fair amount of pain for industry to adopt Ada.
A lot of US DoD work is being done in C++ now. C++ is also a challenging language to learn but, unlike Ada, it grew over time from it's C roots (and C already had a good foothold) and therefore the process of creating C++ resulted in a solid uptake by industry. Which means that there is more incentive for people to learn C++, so it is easier to find/grow people with appropriate skills, etc etc. |
|
|
|
|
|
#12 |
|
Programmer
Join Date: Jan 2006
Location: Some where
Posts: 74
Rep Power: 3
![]() |
Dunno... I found C++ easy to learn... But then again I learned asm first...
|
|
|
|
|
|
#13 | |
|
Programming Guru
![]() Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,209
Rep Power: 5
![]() |
Quote:
|
|
|
|
|
|
|
#14 |
|
Programming Guru
![]() Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5
![]() |
wasn't ada actually named after a woman? (lady ada lovelace or something of that nature)
EDIT: sounds suspiciously like a porn star name
__________________
i put on my robe and wizard hat... Have you ever heard of Plato, Aristotle, Socrates?...Morons. |
|
|
|
|
|
#15 | |
|
Hobby Coder
Join Date: May 2006
Posts: 57
Rep Power: 0
![]() |
Quote:
IIRC she was a confidant of Charles Babbage, designer/inventor of the "inference engine". I'm sure Wiki has an entry for her. Adak |
|
|
|
|
|
|
#16 | ||
|
Hobbyist Programmer
Join Date: Apr 2006
Posts: 155
Rep Power: 3
![]() |
Quote:
Quote:
|
||
|
|
|
|
|
#17 |
|
Hobbyist Programmer
Join Date: Mar 2005
Location: Canada
Posts: 113
Rep Power: 4
![]() |
guys, back to the topic, could someone tell me how to allocate memory to a pointer?
|
|
|
|
|
|
#18 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,209
Rep Power: 5
![]() |
You don't "allocate memory to a pointer". The technique is to either initialise or assign the pointer so the value it contains is the address of some block of memory. There are several common techniques to do that.
One is to create an array; char data[100] Another approach is the dynamically allocate memory. For example; #include <stdio.h>
#include <stdlib.h>
int main()
{
/* initialise data so it contains the address of some usable memory */
char *data = malloc(100); /* char *data = (char *)malloc(100); in C++ */
/* all your other stuff */
free(data);
} |
|
|
|
|
|
#19 |
|
Hobbyist Programmer
Join Date: Mar 2005
Location: Canada
Posts: 113
Rep Power: 4
![]() |
thanks.
|
|
|
|
|
|
#20 | |
|
Programmer
Join Date: Jan 2006
Location: Some where
Posts: 74
Rep Power: 3
![]() |
Quote:
No, I know how to use classes have used them, very successfully, but I just can't find a very pratical use for them. Most of the stuff I've doing lately is proof of concept for work. They ask for quick, code. They don't want me to fill it with anthing that distracts. Besides, I really don't need OOP to keep oraganized. I have programming in C for as long as I can remember. Plus, I started programming computers back when I was like 12, it was one othe first languages I learned. I've been doing it for like 20 or so years, I'd say I know fairly well, by now. |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|