c++ tag

886 questions


2 answers
27 views
0
I'm curious about grammar.

c++ cooking watching typedef HRESULT(__stdcall* endScene)(IDirect3DDevice9* pDevice); I don't know what that means.

2 years ago

1 answers
34 views
0
Receive numeric input based on c++ sin colon

When you enter scanf in c language, scanf(%d:%d, &a, &b);You can only get numbers like thisHow do I write it using cin in c++?

2 years ago

1 answers
22 views
0
C++ undefined reference error

If you run main.cpp or item.cpp, you will see an undefined reference errorI can't fix it any more here.I would appreciate it if you could tell me what the problem is.main.cpp---------------#include &l...

c++
2 years ago

1 answers
26 views
0
Vector of C++ class type and .erase()

In the update_quantity() of ShoppingCart.cpp,Using listOfItem.erase(p), if the name is the same and the newQuantity is less than 1, then the vector listOfItem is usedYou are about to erase elements of...

c++
2 years ago

1 answers
24 views
0
C++ Error: default argument given for ...

An error occurs in the write and readline parts of StringWrapper.cppThat part of the assignment was already shown as a prototype, so I put it in as it is.How can I fix this error?Thank you.main.cpp#in...

c++
2 years ago

2 answers
80 views
0
C++ Dynamic Assignment Structure Pointer, question for use with other functions

Hi, everyone.I made a simple code. I'd like to hear advice from experts who know the problem.#include <iostream>using namespace std;int CountPlayer;struct SUTDA{ char Name[20];};void Input(){ co...


1 answers
43 views
0
Why is it only executed once the repeat is turned?

#define _CRT_SECURE_NO_WARNINGS #include <stdio.h>int main(void) { int num1; int num2; printf(Enter integer 1 : ); int a = scanf(%d, &num1); printf(Enter integer 2 : ); int b = scanf(%d, &am...

2 years ago

2 answers
53 views
0
C++ Access Violation Exception Occurred

#include <iostream>#include <stdlib.h>#include <ctime>class Date{private: time_t t = time(NULL); struct tm* ptime = localtime(&t); int year = ptime->tm_year + 1900; int month ...

2 years ago

2 answers
21 views
0
I'm a beginner who just started to speak the language. The whole number and the mistake are input, but the text is not input and the text is moved on. What's the reason?

int main(){ int a; float b; char c1; printf (Enter an integer: ); scanf(%d, &a); printf(Real input : ); scanf(%f, &b); printf (Enter characters: ); scanf(%c, &c1); printf(%d\n %f\n, a, b);...

c++
2 years ago

2 answers
23 views
0
(C++) String 1st NULL

You are writing a program that removes the punctuation mark from each string by taking the string in spaces.In this process, if you change the punctuation code to NULL in a string like computer and re...

c++
2 years ago
« - 83 - »

© 2024 OneMinuteCode. All rights reserved.