Questions tagged as 'c++'

1
answer

Import Python DLL in C ++

How do I compile a Python class into a DLL so I can import it into C ++, using Python features that are not available in C ++? I want to be able to import it without having Python installed on the computer     
asked by 24.09.2017 / 03:35
3
answers

If I declare a variable and not use it in the program body, will it compile?

I have a program and I left a declared variable, but I did not use it in the program body.     
asked by 19.12.2018 / 02:36
1
answer

When to use a scripting language? [closed]

When to use a script language and what is the ideal scenario for using it? I have read about script languages and thought about using them in my C / C ++ server project for one game, which leads me to another question: I know it depends a...
asked by 06.12.2016 / 23:41
2
answers

How to turn this C ++ code into C?

#include <bits/stdc++.h> using namespace std; int main() { int n, i, n1, c = 0, c1, c2, max, pos, bar[501], arr[250001], j; cin >> n >> n1; max = pos = 0; for (i = 1; i <= n*n1; i++) { cin >&...
asked by 22.11.2017 / 14:31
2
answers

Create a crossword C ++ [closed]

Who could help me with this? I'll put an example of what I want. A A R R M M A N N D D O O But the same spaces have to be horizontal, as in the vertical, have to be squared. Thank you     
asked by 24.10.2015 / 18:11
1
answer

How to do Tiles 2D collision in C ++

Hello. I would like to know how I can do to get Tiles crash in C ++. I am using an engine made by my friend, however, I would like to know how to do it. I'm using SDL 2! Thank you in advance Thiago     
asked by 23.05.2015 / 18:29
1
answer

Error: E0254 type name is not allowed

I'm getting this error in this code: bool Configuration::GetConfigBlockLine(ifstream& file, string& key, string& value) { string line; // end of file while( !file.eof() ) { // read line from config file...
asked by 07.11.2018 / 03:38
1
answer

Why do these two identical codes, one in C ++ and another and Java, give different results? [closed]

I'm trying to resolve an issue in the Online Judge URI in Java however I'm remarking 5 % error, and from what I've studied is being caused by the fact that the precision of the variables in C ++ and Java is different. I've tried everything to...
asked by 05.10.2018 / 06:30
1
answer

What is the operator for in the context of virtual memory paging?

I'm seeing the virtual memory implementation and I have this code: #define INDEX_FROM_BIT(a) (a / 8*4) #define OFFSET_FROM_BIT(a)(a % (8*4)) static void set_frame(u32int frame_addr) { u32int frame = frame_addr/0x1000; u32int idx =...
asked by 15.12.2015 / 22:35
1
answer

Converting division expression in C ++ to C #

I have the following condition in C ++ and would like to move to C #. The problem I'm having is with the div function that displays the error:    The name 'div' does not exist in the current context if (quant > 0) { return d...
asked by 01.10.2014 / 18:37