Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 17:03

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[C] Quicksort Zeitmessung -> Dumping stack trace

Discussion on [C] Quicksort Zeitmessung -> Dumping stack trace within the C/C++ forum part of the Coders Den category.

Reply
 
Old 12/10/2013, 22:09   #16
 
Belur's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 3,441
Received Thanks: 1,473
Also ich hab selbst mal ein bisschen rumprobiert und mir ist Folgendes aufgefallen:

Ich hatte die Variable int xl ja erst für die erste Dimension festgelegt.
Damit ich die Länge dementsprechend variabel halten kann.
Wenn ich int xl =100 setze wird auch noch alles generiert.

Wenn ich int xl = 1000 setze kommt schon der Stack Trace Error.

Wenn ich jetzt direkt angebe:

PHP Code:
#define xl 1000
#define yl 2


int daten[xl][yl]; 
und dann generiere, kann ich die Zahlen beliebig groß machen.

Vllt hat das irgendwas damit zu tun?
Belur is offline  
Old 12/11/2013, 07:15   #17

 
Delinquenz's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,160
Received Thanks: 232
Quote:
Wozu long int? int auf x86 architekturen hat 32bit. 2^32 = 4294967296 abs values (unsigned).
Nein, der C-Standard garantiert nur 2^16 und an dem sollte man sich auch halten.
Delinquenz is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[C] Quicksort mit Int funktioniert nicht bei großen Zahlen
12/07/2013 - C/C++ - 3 Replies
Hey, ich musste ein bestimmtes Array erzeugen, dieses mit Quicksort sortieren, und dann sortiert ausgeben. Wir hatten einen vorgebenen Quicksort für Chars. Den sollten wir nur eben für int anpassen. Habe also die paar "char" durch "int" ersetzt. Habe mir dann erst ein Testarray erstellt mit kleinen Zahlen: Bsp: int daten={5,4,3,2,1}; Ausgabe:
[Selling] Zkey stack 11 eur/ Ecto stack 10eur
07/18/2013 - Guild Wars Trading - 1 Replies
closed
Koopa's Discount-Offer:Ectos 13,99€/stack! Lpicks 3,99/stack!
04/04/2012 - Guild Wars Trading - 0 Replies
Hey ;) My special offer until monday or sold-out. Enjoy :) Ectos in stock: 10 Stacks http://gwah.onlinewelten.com/images/Ektoplasmakuge l.png 8 stacks sold 1 Stack = 13,99€
Koopas Special -> Ektos für 15/€ Stack -- Dietriche 4,99€/Stack
04/03/2012 - Guild Wars Trading - 1 Replies
Servus ;) Ich biete euch hier die einmalige Gelegenheit, Ektos und Dietriche zu einem sehr günstigen Preis zu kaufen. Ektos auf Lager: 15 Stacks http://gwah.onlinewelten.com/images/Ektoplasmakuge l.png 1 Stack = 15,00€
[REQUEST!!!] Any program for tracing people, and i dont mean trace trace like ingame.
09/20/2010 - SRO Private Server - 0 Replies
i am searching for a program to trace people. Like to fill in a name, and that the program than says where he is. Can anyone post/make this? Thanks!!!



All times are GMT +1. The time now is 17:05.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.