Answered 11 days AfterMar 21, 2022

Answer To: c++ coding

Sathishkumar answered on Mar 31 2022
88 Votes
uhanya@uhanya-pc:~/Desktop/code$ valgrind --leak-check=full ./proj3.out
==4008== Memcheck, a memory error detector
==4008== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==4008== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==4008== Command: ./proj3.out
==4008==
Let's Start a Game of Connect 4
P
layer One, Please enter your name: sat
Player Two, Please enter your name: uha
==4008== Conditional jump or move depends on uninitialised value(s)
==4008== at 0x40144D: boards::printBoard(char (*) [10]) (in /home/uhanya/Desktop/code/proj3.out)
==4008== by 0x400C06: main (proj3.cpp:33)
==4008==
==4008== Conditional jump or move depends on uninitialised value(s)
==4008== at 0x401477: boards::printBoard(char (*) [10]) (in /home/uhanya/Desktop/code/proj3.out)
==4008== by 0x400C06: main (proj3.cpp:33)
==4008==
|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|
==4008== Conditional jump or move depends on uninitialised value(s)
==4008== at 0x4C30F69: strlen (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==4008== by 0x4F49228: std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21)
==4008== by 0x4017D0: computerplayer::PlayerDrop(char (*) [10], player::playerInfo) (SimpleComputerPlayer.cpp:9)
==4008== by 0x400C27: main (proj3.cpp:35)
==4008==
==4008== Conditional jump or move depends on uninitialised value(s)
==4008== at 0x4C30F78: strlen (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==4008== by 0x4F49228: std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21)
==4008== by 0x4017D0: computerplayer::PlayerDrop(char (*) [10], player::playerInfo) (SimpleComputerPlayer.cpp:9)
==4008== by 0x400C27: main (proj3.cpp:35)
==4008==
==4008== Conditional jump or move depends on uninitialised value(s)
==4008== at 0x544B305: _IO_file_xsputn@@GLIBC_2.2.5 (fileops.c:1301)
==4008== by 0x54407CA: fwrite (iofwrite.c:39)
==4008== by 0x4F48EC5: std::basic_ostream >& std::__ostream_insert >(std::basic_ostream >&, char const*, long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21)
==4008== by 0x4F49236: std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21)
==4008== by 0x4017D0: computerplayer::PlayerDrop(char (*) [10], player::playerInfo) (SimpleComputerPlayer.cpp:9)
==4008== by 0x400C27: main (proj3.cpp:35)
==4008==
==4008== Conditional jump or move depends on uninitialised value(s)
==4008== at 0x544B317: _IO_file_xsputn@@GLIBC_2.2.5 (fileops.c:1301)
==4008== by 0x54407CA: fwrite (iofwrite.c:39)
==4008== by 0x4F48EC5: std::basic_ostream >& std::__ostream_insert >(std::basic_ostream >&, char const*, long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21)
==4008== by 0x4F49236:...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here