Skip to content
#

C++

cpp logo

C++ is a popular and widely used mid-level language. It was designed as an extension of the C language.

Here are 23,672 public repositories matching this topic...

leetcode
azl397985856
azl397985856 commented Mar 24, 2020

集合 S 包含从1到 n 的整数。不幸的是,因为数据错误,导致集合里面某一个元素复制了成了集合里面的另外一个元素的值,导致集合丢失了一个整数并且有一个元素重复。

给定一个数组 nums 代表了集合 S 发生错误后的结果。你的任务是首先寻找到重复出现的整数,再找到丢失的整数,将它们以数组的形式返回。

示例 1:

输入: nums = [1,2,2,4]
输出: [2,3]
注意:

给定数组的长度范围是 [2, 10000]。
给定的数组是无序的。

来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/set-mismatch

📚 C/C++ 技术面试基础知识总结,包括语言、程序库、数据结构、算法、系统、网络、链接装载库等知识及面试经验、招聘、内推等信息。This repository is a summary of the basic knowledge of recruiting job seekers and beginners in the direction of C/C++ technology, including language, program library, data structure, algorithm, system, network, link loading library, interview experience, recruitment, recommendation, etc.

  • Updated Apr 19, 2020
  • C++
galkinvv
galkinvv commented Jan 21, 2020

The doc is great! Hoewever some areas are still missing.
C++11 intoduced raw string literals: https://en.cppreference.com/w/cpp/language/string_literal

It is useful in many different areas, like strings with quotes, multiline strings and for example windows paths without escaping backslashes:

const char win_path[] = R"(c:\some\unescaped\path)";

The same cppreference link als

axellettieri
axellettieri commented Apr 23, 2020

Library name: Open CASCADE Technology

Library description: A 3D CAD, CAM, CAE, ecc. C++ LGPL Library

Source repository URL: https://www.opencascade.com/content/latest-release

Project homepage (if different from the source repository):

Anything else that is useful to know when adding (such as optional features the library may have that should be included):

chriseth
chriseth commented Mar 26, 2020

The type checker contains multiple occurrences of

		if (noErrors)
			for (Source const* source: m_sourceOrder)
				if (source->ast)
					for (ASTPointer<ASTNode> const& node: source->ast->nodes())
						if (ContractDefinition* contract = dynamic_cast<ContractDefinition*>(node.get()))

These should be extracted into some helper "forAllContracts" or something like that, which takes

devjgm
devjgm commented Jan 20, 2020

Is your feature request related to a problem? Please describe.
No.

Describe the solution you'd like
I'd like the source code to be automatically clang-formatted according to my settings anytime the code is compiled. That is, don't require me to use the contextual menu or keyboard shortcut to format the code. Just auto-format it; just like the code is auto-compiled too.

Well, ther

ihorner
ihorner commented Apr 7, 2020

I'd like to be able to set sound source volumes via AppleScript or similar — I can't seem to find any information regarding this, and the dictionary seems to only apply to setting output.

I'm using BetterTouchTool to send volume levels from a midi device with faders, and I'd like to associate the faders with different sources in BackgroundMusic.

badda71
badda71 commented Mar 26, 2020

Is there a way to let the citra gdbstub automatically break on unmapped memory access? Right now, citra handles unmapped access gracefully and only spits out an error in the log. The real 3DS hardware will crash on unmapped memory access but the current Rosalina gdbstub will at least break with SIGSEGV and let you examine the process remains.
Would be nice if it was possible with citra as well ..

will-ca
will-ca commented Mar 17, 2020

In __init__.pxd in a package, using from . cimport modulename attempts to find modulename.pxd in the parent directory of the package.

Using from . import modulename in basic Python attempts to find modulename.* within the package itself, as does using from . cimport modulename in all *.pxd files except for __init__.pxd in packages.

Using `from .packagename cimport modulenam

Created by Bjarne Stroustrup

Released October 1985

Website
isocpp.org
Wikipedia
Wikipedia
You can’t perform that action at this time.