886 questions
How do I change string(char*) to int in C++?If the string is not a number, I would like to give an error in moderation rather than returning 0 (false).
I heard that writing iostream::eof in a conditional sentence is a bad ideaI usually write while(cin>>n) together and check EOF.But why can't I write iostream::eof myself and check it?From C scan...
#include <stdio.h>#include <windows.h>int wmain(int argc, wchar_t* argv[]) { LPSTR str1 = SBCS Style String 1; LPWSTR str2 = LWBCS Style String 1; CHAR arr1[] = SBCS Style String 1; WCHAR ...
I have to submit the game as a school team play this time, so I want to insert music into the game. So I searched several places, but it just didn't work (Crying)There is a function called PlaySound, ...
The chords are weird.Visual Studio 2008 is developing it, but why will it be different when it is debugged and released? int _tmain(int argc, _TCHAR* argv[]){ for( int i = 0; i < 17; i++ ) { int...
In the case of reducing the exception, it is safe to deal with exceptions.Then should I make an exception by using all those blocks as a try-catch?Doesn't that make the code too messy?
typedef struct HeapElement{ DSKEY heKey; void * heData;} } HeapElement;struct Heap{ int hpMode; /* Minimize or Maximize */ int hpSize; int hpFilled; int hpGrowBy; HeapElement** hpArray; HEAPCMPFUN...
The question is a simple question that takes 10 integers and outputs how many 60 points or more.I don't know what I did wrong. If there's something wrong with this part, it'd be better to do it like t...
In the code below,cout << itr->getId() << << itr->getName() << endl;There's an error here, but I don't know why ㅜㅜWhy does const StudentT appear in the error when there...
« | - 53 - | » |
© 2024 OneMinuteCode. All rights reserved.