LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Search Forums
User Name
Password

Notices


Showing results 1 to 10 of 10
Search took 0.02 seconds.
Search: Posts Made By: EdGr
Forum: Programming 01-30-2024, 06:21 PM
Replies: 20
Views: 597
Posted By EdGr
I think we have all the responses we are going to...

I think we have all the responses we are going to get. Thanks for the inputs everyone!

4 votes for plain c++
2 votes for STL
1 vote for no preference

Ed
Forum: Programming 01-29-2024, 04:12 PM
Replies: 20
Views: 597
Posted By EdGr
sundialsvcs - We keep repeating ourselves. ...

sundialsvcs - We keep repeating ourselves.

The starting point is not a blank screen but rather a large code base that has a lot of infrastructure. The infrastructure provides better solutions...
Forum: Programming 01-29-2024, 07:02 AM
Replies: 20
Views: 597
Posted By EdGr
You can't disagree with the survey. :) ...

You can't disagree with the survey. :)

Programs often use multiple data structures. For example, sorting a list is done by building an array of pointers and then sorting the array. Hash tables...
Forum: Programming 01-29-2024, 05:04 AM
Replies: 20
Views: 597
Posted By EdGr
Agreed, the data structures class was highly...

Agreed, the data structures class was highly useful. The implementation of common data structures does not require much code.

4 votes for plain c++
1 vote for STL
1 vote for no preference

Ed
Forum: Programming 01-28-2024, 05:54 PM
Replies: 20
Views: 597
Posted By EdGr
Okay, I counted three votes for "plain c++", one...

Okay, I counted three votes for "plain c++", one for "STL", and one with no preference.

I think our sample size is too small. ;)
Ed
Forum: Programming 01-28-2024, 10:11 AM
Replies: 20
Views: 597
Posted By EdGr
sundialsvcs - I knew you would say that. STL...

sundialsvcs - I knew you would say that.

STL containers and iterators are fine but irrelevant to existing "plain c++" code.
Ed
Forum: Programming 01-28-2024, 01:12 AM
Replies: 20
Views: 597
Posted By EdGr
My question is specifically about reading a list....

My question is specifically about reading a list. IME, reads nearly always outnumber writes.
Ed
Forum: Programming 01-27-2024, 06:35 PM
Replies: 20
Views: 597
Posted By EdGr
I am curious how much adoption the STL and c++11...

I am curious how much adoption the STL and c++11 methods have. I have seen both in relatively new code, while newer parts of old programs continue to use "plain c++". I have seen the macro method...
Forum: Programming 01-27-2024, 03:14 PM
Replies: 20
Views: 597
Posted By EdGr
NevemTeve - I will count that method as "plain...

NevemTeve - I will count that method as "plain c++". I used to code list traversals with "while", but then I found that putting the list traversal inside a "for" construct was clearer. K&R's "for"...
Forum: Programming 01-27-2024, 11:51 AM
Replies: 20
Views: 597
Posted By EdGr
C++ linked-list traversal

I am aware of four methods for traversing a doubly-linked list in C++.


// plain c++

for (elem = list.next;
elem != &list;
elem = elem->next) {
}
Showing results 1 to 10 of 10

 

Didn't find what you're looking for? Try Google:


  



All times are GMT -5. The time now is 12:13 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration