Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 12-14-2005, 02:00 PM   #1 (permalink)
Salchester
Salchester
 
Salchester's Avatar
 
Join Date: Jul 2005
Location: In a house
Posts: 230
Salchester is an unknown quantity at this point
Data Structures

Hello,

What data structures are there, and what are they for.

for example: Int, Char etc
__________________
Many Thanks, in advance!

Salchester.
The Future Is Here - Are You Ready?
Salchester is offline   Reply With Quote
Old 12-14-2005, 02:58 PM   #2 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
Better buy a book or search for an online tutorial. These are the very basics. Learning from scratch from a forum is far from efficient I'm affraid.
__________________
Valmont is offline   Reply With Quote
Old 12-14-2005, 06:51 PM   #3 (permalink)
Salchester
Salchester
 
Salchester's Avatar
 
Join Date: Jul 2005
Location: In a house
Posts: 230
Salchester is an unknown quantity at this point
I'm not a beginner, i have used and programmed in C++ many times, only now i need to decide whether to use arrays etc. But, can't decide unless i know what they are, and how they work.
__________________
Many Thanks, in advance!

Salchester.
The Future Is Here - Are You Ready?
Salchester is offline   Reply With Quote
Old 12-15-2005, 02:12 AM   #4 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 598
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
you contradict yourself.
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Old 12-15-2005, 05:20 AM   #5 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,726
redhead is on a distinguished road
Didn't we have a conversation about this in another thread... Can't remember which, but the function sizeof() will be valuable to you, if it's structure-size you're concerned about.
Basicaly any type you create your variable as, can hold info on anyother type, but the size on a specific type prevents it from beeing usefull in comparison to the type intented to be used.

As for usage, it's kinda selv-documenting...
char, oh what do you know, it holds a single char or an int value from 0 - 255, given that it's 8 bit (or a byte if you want to count it that way)
int, oooh... let me guess, please let me, me, me, me..... I guess it would hold an integer... Yay what do I win....
double/float, is for fraction or floating values as it is known in the computer world.
Then theres ofcause all the further extension on the byte-size of the type, with long, unsigned, short.

But if you get any teaching book, I guarentee you it will hold a table with every type, its size, and what it's for.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 12-17-2005, 03:36 PM   #6 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 598
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
I think he means composite structures like linked list or multi dimensional arrays.
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Old 12-17-2005, 06:48 PM   #7 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
In that case, he should find an online toturial on vector, list, map, stack and so on.
One wants to find out what datastructure fits the problem domain. The concrete code is the final part (testing not included, duh).
Find out about STL guys.
__________________
Valmont is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading chunks of data in a servlet??? j.gohel Java 2 09-10-2005 02:40 PM
Printing File Data (Via a Printer) Salchester Platform/API C++ 6 09-07-2005 02:31 AM
? About data types... slashdot Standard C, C++ 2 04-15-2005 10:57 AM
Problem with very large data structures in C++ ziggi Standard C, C++ 6 04-07-2005 01:25 PM
Would this data be of use too you? SiteTutor Lounge 3 08-02-2002 06:58 AM


All times are GMT -8. The time now is 12:09 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting