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 22,129 public repositories matching this topic...

biko-the-bird
biko-the-bird commented Jul 7, 2018

The chat tutorial listed for elixir is outdated. It uses a old version of phoenix and could be confusing to new users who would be learning a oudated set of syntax, application structure, commands i.e. mix phoenix.create vs. mix phx.create.

Also it's missing some steps. For one this they never do mix ecto.create without which the postgres database is not initialized so the app doesn't wo

leetcode
azl397985856
azl397985856 commented Feb 5, 2020

假如有一排房子,共 n 个,每个房子可以被粉刷成红色、蓝色或者绿色这三种颜色中的一种,你需要粉刷所有的房子并且使其相邻的两个房子颜色不能相同。

当然,因为市场上不同颜色油漆的价格不同,所以房子粉刷成不同颜色的花费成本也是不同的。每个房子粉刷成不同颜色的花费是以一个 n x 3 的矩阵来表示的。

例如,costs[0][0] 表示第 0 号房子粉刷成红色的成本花费;costs[1][2] 表示第 1 号房子粉刷成绿色的花费,以此类推。请你计算出粉刷完所有房子最少的花费成本。

注意:

所有花费均为正整数。

示例:

输入: [[17,2,17],[16,16,5],[14,3,19]]
输出: 10
解释: 将 0 号房子粉刷成蓝色,1 号房子粉刷成绿色,2 号房子粉刷成蓝色。
  最少花费: 2 + 5 + 3 = 10。

题目地址: ht

calculator
Maxou44
Maxou44 commented Jan 24, 2020

Describe the bug

When we copy the result of a calc, we got a number with space character between numbers (Eg: "2 365 596")

Steps To Reproduce

Steps to reproduce the behavior:

  1. Calc 568 * 568 * 568
  2. Copy the result
  3. Clic on "C"
  4. Paste the previous number
  5. Invalid number ("Entrée non valide" on a French app)

Expected behavior
Remove spaces when we copy it.

Gustav0ar
Gustav0ar commented Feb 4, 2020

Until yesterday (feb 2nd) I was able to build yuzu-mainline from source. I saw that vulkan was merged today, and now I'm unable to build.
I tried Qt 5.12 and Qt 5.14 and both gives the same errors:

yuzu-mainline/src/yuzu/configuration/configure_graphics.cpp:8:10: fatal error: QVulkanInstance: No such file or directory
 #include <QVulkanInstance>
          ^~~~~~~~~~~~~~~~~
compilation 
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:

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

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

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

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

Amnesia1000
Amnesia1000 commented Feb 3, 2019

Add a Hotkey to enable/disable 3D. Besides a scroll bar (for example in the status bar) and Hotkey to change the 3D percentage. Having the 3D activated (in the monitor/TV) it is a nuisance to open the options dialog boxes (or disable and re-enable the 3D in the TV/Monitor) to modify the percentages, or enable or disable the 3D. This would make it much easier for the user to handle the 3D of the em

Created by Bjarne Stroustrup

Released October 1985

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