Search found 16 matches
- May 5th, 2020, 7:59 pm
- Forum: Everything
- Topic: Random C++ questions from a C# programmer
- Replies: 4
- Views: 2737
Re: Random C++ questions from a C# programmer
Thanks for the excellent response. I guess I have been spoiled by C#. It possesses a degree of orthogonality that often allows me to guess how something will work without looking it up. In fairness, C++ is much less familiar territory.
- May 5th, 2020, 6:33 pm
- Forum: Everything
- Topic: Random C++ questions from a C# programmer
- Replies: 4
- Views: 2737
Random C++ questions from a C# programmer
I've recently come back to Chili's tutorials after a long while and as I'm learning I keep wondering about some aspects of C++ that seem peculiar to me. So, in no particular order: 1.) Is there a consistent naming convention in the standard library? Is it defined somewhere? 2.) Why do names have to ...
- August 1st, 2018, 11:31 pm
- Forum: Everything
- Topic: I7 homework project doesn't work?
- Replies: 2
- Views: 1340
Re: I7 homework project doesn't work?
I'm not sure what went wrong, but I re-downloaded the solution and this time it worked. It's like it didn't load it as a proper solution last time. Intellisense wasn't working, the options for Debug/Release and x86/x64 weren't separated properly and it was asking which file I wanted to use to start....
- August 1st, 2018, 12:42 am
- Forum: Everything
- Topic: I7 homework project doesn't work?
- Replies: 2
- Views: 1340
I7 homework project doesn't work?
I cloned the repo and created a branch at I7 HW Start, but it fails immediately on running. I've made no changes. The error is: Filename: Sounds\Eat.wav Note: ios_base::failbit set: iostream stream error Location: Line [590] in snek\engine\sound.cpp Exception caught at Windows message loop I've conf...
- July 12th, 2018, 11:38 am
- Forum: Everything
- Topic: I6 Homework - How do I troubleshoot memory leaks?
- Replies: 10
- Views: 3745
Re: I6 Homework - How do I troubleshoot memory leaks?
Thanks cyboryxmen and albinopapa. Both of your solutions worked. You were both able to read the code and identify the problem. Is the object dump only supposed to indicate a problem without indicating where that problem might be?
- July 12th, 2018, 2:18 am
- Forum: Everything
- Topic: I6 Homework - How do I troubleshoot memory leaks?
- Replies: 10
- Views: 3745
I6 Homework - How do I troubleshoot memory leaks?
My repo is here: https://github.com/CorpseLiquor/LinkedListStack/tree/HW-Start/LinkedListStack I'm passing all the tests but I have a few leaks. Unfortunately I'm not really clear on how I take the info in the object dump and use it to figure out what I'm doing wrong. I have a feeling some of the el...
- June 20th, 2018, 2:05 am
- Forum: Everything
- Topic: FileIO homework
- Replies: 6
- Views: 2449
Re: FileIO homework
Thanks albinopapa. I added a function to limit non alphanumeric characters and fixed readw so the string is properly null terminated. Seems to be functioning a lot better now. You can see the changes on github.
- June 19th, 2018, 1:34 am
- Forum: Everything
- Topic: FileIO homework
- Replies: 6
- Views: 2449
Re: FileIO homework
Here it is on github: https://github.com/CorpseLiquor/FileIO/ ... O/Main.cpp
- June 13th, 2018, 6:36 pm
- Forum: Everything
- Topic: FileIO homework
- Replies: 6
- Views: 2449
FileIO homework
I'm getting erratic behavior with the print function shown in the tutorial. Sometimes it overwrites text written to the console previously. For example: struct nvPair { char name[10]; char value[5]; }; nvPair pairs[100]; void printChart( nvPair pairs[], const int nameLength, const int valueLength, i...
- June 13th, 2018, 11:06 am
- Forum: Everything
- Topic: read function from CStrings tutorial does not work
- Replies: 4
- Views: 2048
Re: read function from CStrings tutorial does not work
Glad it's a bug. I couldn't see what could be inserting those extra null terminators in the code.