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 20,996 public repositories matching this topic...

leetcode
azl397985856
azl397985856 commented Dec 31, 2019

给你一个 n 行 m 列的二维网格 grid 和一个整数 k。你需要将 grid 迁移 k 次。

每次「迁移」操作将会引发下述活动:

位于 grid[i][j] 的元素将会移动到 grid[i][j + 1]。
位于 grid[i][m - 1] 的元素将会移动到 grid[i + 1][0]。
位于 grid[n - 1][m - 1] 的元素将会移动到 grid[0][0]。
请你返回 k 次迁移操作后最终得到的 二维网格。

示例 1:

输入:grid = [[1,2,3],[4,5,6],[7,8,9]], k = 1
输出:[[9,1,2],[3,4,5],[

calculator
milos321
milos321 commented Dec 11, 2019

In scientific mode, after pressing the Enter button, navigation menu opens instead of displaying the result.

Steps To Reproduce

  1. Go to Scientific mode.
  2. Click on C.
  3. Enter 2+2 on keyboard.
  4. Press Enter on keyboard.

Expected behavior
Result is displayed.

Actual behavior
Navigation menu is opened.

Device and Application Information

  • OS Build: 10.0.17134
simonsan
simonsan commented Nov 2, 2019

Right now we give the following information (e.g.):

openage v0.4.0-69-g9412facd
opengl
MSVC 19.16.27032.1 [/DWIN32 /D_WINDOWS /W3 /GR /EHsc /MP]
Cython 0.29.14

For future debugging on the user side we could give more information:

  • OpenGL version number
  • nyan-lib version number
  • libc
  • sdl-version
  • Qt-version
  • maybe even opus-codec version

In addition:
jj quote:

matiTechno
matiTechno commented Dec 19, 2019

Frequent bug: while sorting by y-coordinate, the vertices are sorted, but the data coming with the vertices is not.
Gouraud shading, forgot to sort intensities

In my case I was calculating a barycentric coordinate of one vertex and assigning it to a different vertex by mistake.
The artifacts looked exactly the same as you presented, if it is the same problem then the description could be

duncanspumpkin
duncanspumpkin commented Oct 6, 2019

window_scenery_tab_entries located in libopenrct2ui/windows/Scenery.cpp is an array of all of the scenery items on a tab in the scenery window. The type is uint16_t but this is actually a lie. The type is actually a struct of scenery type and scenery tab index stuffed into a uint16_t! This issue is for fixing this.

Create a new struct for the tab entry that has two fields type and `

jackgerrits
jackgerrits commented Aug 14, 2019

As as a user I would expect all of the following calls to behave indentically. Only the first two calls works, the other two are incorrect. All of these should be able to parse a multiline example.

ex = vw.parse("| a:1 b:0.5\n0:0.1:0.75 | a:0.5 b:1 c:2")
print(ex)

ex = vw.parse("""| a:1 b:0.5
0:0.1:0.75 | a:0.5 b:1 c:2""")
print(ex)

ex = vw.parse("""
| a:1 b:0.5
0:0.1:0.75 | a:0
porglezomp
porglezomp commented Oct 11, 2019

I went to godbolt in the middle of the night and found it extremely bright and started wondering if it could respect the system setting.

There is a CSS media feature prefers-color-scheme which indicates whether the user prefers light or dark mode. It might be nice to make the default dark mode if the user hasn't explicitly picked one yet be "System" and using the prefers-color-scheme settin

samwalshnz
samwalshnz commented Apr 6, 2019

User story:
I'm watching a YouTube video. The person speaking in the video pauses for a moment before sentences. The pauses are long enough to be considered as 'silent' to BackgroundMusic and therefore the music plays, but then the person speaking in the video continues speaking, triggering the music playback to stop. Note: there's also a delay between the moment the person starts speaking a

Baekalfen
Baekalfen commented Dec 4, 2019

Commit 6d9daa08142e8a61d1f098fa0039b642537e614c causes a wrong result to be calculated in the example below. There seems to be something with the negative number, which makes it act unexpectedly.

This code snippet prints 1:

x = -1
x &= 0xFF
print(x)

Before the commit, the code above would print 255, which is also the case in CPython and PyPy without Cython.

vamega
vamega commented Apr 1, 2019

The current wiki pages has a table with a series of images in it.
The links to these images seem to have rotted, and now a reading of the table does not show what is supported across the different platforms.

An update to use image links that aren't broken, or unicode characters would be wonderful.

Thanks

Created by Bjarne Stroustrup

Released October 1985

Website
isocpp.org
Wikipedia
Wikipedia

Related Topics

kalman-filter simulator rmse
You can’t perform that action at this time.