Advertisement

05.16.2008 at 01:25PM PDT, ID: 23409681
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Wie kann ich ein Element eines Struktur- Arrays über Zeiger ansprechen?

Tags: C++, Firefox 2, Probleme mit Adressierung
Das Programm im Anhang dient der Prüfungsleitung zum Vergleich mit den eingereichten Lösungen der Lernenden (2. Semester Grundbildung Informatiker Richtung Systemtechnik in der Schweiz. Teile des Programms werden auch an die Prüflinge abgeben, weil der Auftrag nur einen kleinen Teilbereich (Codeprüfung und Speichern in Textdatei9 beinhaltet.
Bis vor die Marke /* problem */  (ca. Zeile 70) funktioniert alles. Da ich in C++ keine grosse Erfahrung habe, stolpere ich immer wieder über Adressierungsprobleme. Das Programm stürzt ab und erstellt einen Fehlerbericht.

Was ist falsch?

Umgebung: Windows XP prof., IDE Dev C++
Attachments:
 
Artikel erfassen
 
Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: hrw-sgch
Solution Provided By: SeanDurkin
Participating Experts: 5
Solution Grade: A
Views: 0
Translate:
Loading Advertisement...
05.16.2008 at 01:30PM PDT, ID: 21586201

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.16.2008 at 02:10PM PDT, ID: 21586469

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.16.2008 at 02:11PM PDT, ID: 21586476

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.16.2008 at 02:12PM PDT, ID: 21586483

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.16.2008 at 02:32PM PDT, ID: 21586615

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.16.2008 at 02:35PM PDT, ID: 21586636

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.16.2008 at 02:38PM PDT, ID: 21586654

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.16.2008 at 03:32PM PDT, ID: 21586964

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.17.2008 at 11:56AM PDT, ID: 21590411

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.17.2008 at 12:00PM PDT, ID: 21590421

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.17.2008 at 01:19PM PDT, ID: 21590628

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.17.2008 at 01:54PM PDT, ID: 21590725

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.17.2008 at 04:13PM PDT, ID: 21591061

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.17.2008 at 07:19PM PDT, ID: 21591375

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.17.2008 at 08:00PM PDT, ID: 21591476

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.18.2008 at 01:37AM PDT, ID: 21591963

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.18.2008 at 07:25PM PDT, ID: 21594911

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.19.2008 at 05:23PM PDT, ID: 21602611

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.24.2008 at 04:23AM PDT, ID: 21638652

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.24.2008 at 04:38AM PDT, ID: 21638697

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.24.2008 at 05:10AM PDT, ID: 21638770

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
05.16.2008 at 01:30PM PDT, ID: 21586201
Hi,
  if you don't mind, please repost your question in english, as most experts will communicate in English, least of them know german...

thanks,
angelIII, zone advisor
 
05.16.2008 at 02:10PM PDT, ID: 21586469

Rank: Master

Your program will always fail because of this line:

>> if (fz_artDat = NULL)

You are using the assigment operator here (=) rather than the equality operator (==). What's happening is that it's assigning NULL to fz_artDat and then the if statement fails, because NULL evaluates to a false statement. Then it goes to the else and continues on, probably ending up with a crash. Change that line to this:

if (fz_artDat == NULL)

and you should end up with the functionality you want. I haven't checked anything else, so there could be other problems with the code.
Accepted Solution
 
05.16.2008 at 02:11PM PDT, ID: 21586476

Rank: Genius

>> und erstellt einen Fehlerbericht.

What error message ?
 
05.16.2008 at 02:12PM PDT, ID: 21586483

Rank: Genius

Your problem is as simple as nasty. In

           FILE *fz_artDat = fopen("MP-CH-118_art_name-vorname.txt.", "w");
           if (fz_artDat = NULL) // <----------------- here!
           {
              printf("\n Fehler! Datei wurde nicht angelegt!");
              break;
           }

you are *assigning* a NULL value to 'fz_artDat' instead of checking if it is NULL, that should be

           FILE *fz_artDat = fopen("MP-CH-118_art_name-vorname.txt.", "w");
           if (fz_artDat == NULL) // <----------------- double '==' to check
           {
              printf("\n Fehler! Datei wurde nicht angelegt!");
              break;
           }

That causes the 1st call to 'fputs()' zo blow up.

angelIII,

>>least of them know german...

Da waere ich mir nicht so sicher ;o)
Assisted Solution
 
05.16.2008 at 02:32PM PDT, ID: 21586615

Rank: Master

>> >>least of them know german...
>>
>> Da waere ich mir nicht so sicher ;o)

Those of us who don't know it can translate: Yahoo! Babel Fish says.. "There I would not be so safe me." Makes perfect sense! ;)
 
05.16.2008 at 02:35PM PDT, ID: 21586636

Rank: Genius

Well, the correct translation is "I wouldn't bet on that" (or literally "I wouldn't be too sure about that"). ;o)
 
05.16.2008 at 02:38PM PDT, ID: 21586654
Der Datai Name hat auch einen Punkt nach der "extension" .txt. in der folgenden Zeile:

FILE *fz_artDat = fopen("MP-CH-118_art_name-vorname.txt.", "w");

Der Punkt sollte wahrscheinlich entfernt werden:

FILE *fz_artDat = fopen("MP-CH-118_art_name-vorname.txt", "w");
Assisted Solution
 
05.16.2008 at 03:32PM PDT, ID: 21586964

Rank: Genius

Also, es würde mich schon extrem wundern, wenn der Punkt der Grund für den Absturz war.

I'd be extremely surprised if the trailing dot was the reason for the crash...
 
05.17.2008 at 11:56AM PDT, ID: 21590411
Danke für die Lösungspunkte aber SeanDurkin war der erste der das Problem mit =NULL bemerkt hat, die meisten Lösungspunkte sollten zu ihm gehen.

Thank you for the awarded points but SeanDurkin was the first to notice the issue with the =NULL, he deserves the majority of the points.

angelIII, would you please adjust the points in favor of SeanDurkin, hrw-sgch has confirmed in the points award comment that the biggest issue was =NULL instead of ==NULL and I am sure that the points were not awarded all to me intentionally; I would appreciate just a few points be left for me too regarding the dot issue. Thank you very much for your consideration and help!
 
05.17.2008 at 12:00PM PDT, ID: 21590421
hrw-sgch:
  are you ok to reopen the question and redistribute the points?
angelIII, zone advisor
 
05.17.2008 at 01:19PM PDT, ID: 21590628
bzw auf Deutsch:
hrw-sgch, würden Sie bitte erläutern, ob die Entscheidung, nur den einen Beitrag als Lösung zu wählen, bewusst so getroffen wurde, oder nur einer der Beiträge, im Unwissen dass hier bei Experts-Exchange mehrere Beiträge als Lösung ausgewählt werden können.
angelIII, zone advisor
 
05.17.2008 at 01:54PM PDT, ID: 21590725

Rank: Master

thanks, LordOfPorts :)

jeez, does everyone around here know german? :P
 
05.17.2008 at 04:13PM PDT, ID: 21591061

Rank: Genius

>>jeez, does everyone around here know german? :P

C'est une surprise pour vous? ;o)
 
05.17.2008 at 07:19PM PDT, ID: 21591375

Rank: Master

french, too?! :o
 
05.17.2008 at 08:00PM PDT, ID: 21591476

Rank: Genius

J'ai oublié la grande partie de mon Francais par les derniers vingt ans ;o)

Haven't you read the prerequisites carefully enough when signing up to EE? *eg*
 
05.18.2008 at 01:37AM PDT, ID: 21591963
Et un autre qui connais le francais ... aaaaaah....
 
05.18.2008 at 07:25PM PDT, ID: 21594911

Rank: Genius

Malheuresment, jusque un petit peu manintenant :-(
 
05.19.2008 at 05:23PM PDT, ID: 21602611
hrw-sgch,
 
jkr has asked (http://www.experts-exchange.com/Q_23410754.html) for an explanation of why you selected the
answer(s) you selected for this question.
 
Please indicate your reasoning within the next four days.  I or another Moderator will check
back in about four days, at which time we expect to see your explanation.
 
To other participating Experts: please leave your recommendations as well.
 
After reviewing the explanation and other recommendations, the Moderator may decide to
change the award for the question.
 
Thank you,
 
modus_operandi
EE Moderator
 
05.24.2008 at 04:23AM PDT, ID: 21638652
No response from Asker - question re-opened.

angelIII,
Would you please review all of the comments and let us know how this question should be closed.

hrw-sgch,
Welcome to EE.
All of the volunteers here are willing to help you, but you need to respond when make a request.

All comments from everyone involved are invited below.

Vee_Mod
Experts Exchange Moderator
 
05.24.2008 at 04:38AM PDT, ID: 21638697
my suggestion would be split SeanDurkin , jkr (the == NULL) and LordOfPorts (the "." in the filename)
 
05.24.2008 at 05:10AM PDT, ID: 21638770
Thank you.
I hope I got it right.
VM
 
 
20080236-EE-VQP-29 / EE_QW_2_20070628