Questions tagged [C++] (5597)

0
answer

C++ Builder. Whether it is possible to put the icon of another file or create a file with the icon?

Hi all. Very briefly: I need to create a file to record the data at a low level (binary data) and put it on a icon. Whether it is possible such to implement? Added: one more thing. Is there a way to change the app version, company, etc. data?
annalise.Klein asked April 4th 20 at 14:10
1
answer

Why and how this C code works, if it should not work?

A code pastebin, which displays all words from a string separated by a space, and which have no numbers in the word. #include<stdio.h> #include<conio.h> #include<string.h> int main() { // string char s[50]; char *ptr; int i,k,w = 0; puts("Enter a string:" ); gets(s); ptr=strtok(s," "); while(pt...
stone_Krajcik asked April 4th 20 at 14:05
2
answers

Why slow the game with c++?

Hello. I write the game using c++ sfml. Doing all of the lesson. Start the game on my computer it runs slow or fast. The player then slow then suddenly jerks. Please help to understand.#include <SFML/Graphics.hpp> using namespace sf; int main() { RenderWindow window(VideoMode(480,320), "Test"); Texture t; t.loadFro...
princess asked April 4th 20 at 13:55
2
answers

C++ Builder. Analog REG DELETE in CMD. How to delete a registry branch?

Hi all. I have C++ Builder code:AnsiString params[] = {"/c REG DELETE \"***\"}; for (unsigned short i = 0; i < params->Length(); { system(params[i].c_str()); } But C++ Builder 6 when you debugge swears by "Access violation at address" . How else to delete a registry branch?
kim asked April 4th 20 at 13:53
0
answer

In QT C++ to organize simultaneous operation of n com ports?

Write a program in QT to work with the Com ports.. So as newbie do not understand much. The problem is this, fails to bind actiony (connect to com ports) to the slot. If you make the connection to the com port, the debug data is displayed only on the last connection. I'm trying to do, so that all connections to com port, we...
howard.Mertz40 asked April 4th 20 at 13:53
1
answer

Given a sequence of real numbers, which replace all of its members, this large Z, this number is correct to write?

#include "stdafx.h" #include <math.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ using namespace std; int main(int argc, char** argv) { setlocale(0, "rus"); const int n = 10; int i, q = 0; float z, A[n]; std::cout << "enter sequence" << n <&...
lourdes_Goyette asked April 4th 20 at 13:50
1
answer

How to translate the bytes in gibibyte?

Hi all. In General, I program in C++ there is a function to get free space on disk in bytes, I need to translate them into gibibyte, not in gigabytes, but in Gibibyte. Tell me how? What to multiply? Here, for example: Bytes: 892198711296 They need to translate into gibibit. Preferably explain in simple language, and I was a...
Isabel.Murray9 asked April 4th 20 at 13:49
1
answer

How to multiply between variables?

How to perform the following arithmetic operation, the compiler considers that it is not the multiplication operator and the pointer. procent cost and variable namesnow_cost = procent * (1 / 100) * cost;
Raegan95 asked April 4th 20 at 13:49
2
answers

Does not run exe dev c++?

Hooked sfml dev c++ to compile start the program, everything is fine start the exe it does not turn on says no file what the Internet looking for these files they no what to do?
Reggie.Pollich asked April 4th 20 at 13:48
2
answers

C++ in visual studio code, how to start?

Can't run code on cpp9.jpeg" alt="image"/>
garret.DAmore asked April 4th 20 at 13:41