cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
PROGRAM CRASHES AND SWITCHES MY COMPUTER
PROGRAM CRASHES AND SWITCHES MY COMPUTER OFF
Sep 2, 2012 at 10:08am UTC
ayanda83
(97)
Hi there, I want to read the two strings in the program below into two linked lists but the program crashes and switches my computer off after I run it. Any idea what could be causing this?
Last edited on
Sep 2, 2012 at 3:07pm UTC
Sep 2, 2012 at 10:45am UTC
Peter87
(11234)
current = current->link;
Where will current point now?
Last edited on
Sep 2, 2012 at 10:45am UTC
Sep 2, 2012 at 10:55am UTC
Zephilinox
(595)
really? it shuts down? that's the worst case of undefined behaviour I've actually heard of first-hand.
Sep 2, 2012 at 2:54pm UTC
ayanda83
(97)
@Peter87, thank you. I missed that line all together. I managed to fix it. thanks
Topic archived. No new replies allowed.