i need help for making a animation slide scroll on my scrollbar UP / DOWN. On my scroll bar actually, i’am using my functions with my DrawScrollBar() it’s look like this void DrawScrollbar(float width, float height, float x, float y) { //MY STUFFS } NewDrawScrollBar(0.558594, 0.40625, 133.438, 236); well it’s working fine, but the scrollbar ..
Category : c++
and I’m new to C++ and I’m wondering if anyone can help me to understand why enum difficulty { NOVICE, EASY, NORMAL, HARD, UNBEATABLE }; difficulty myDiffiuclty = EASY and enum shipCost { FIGHTER_COST = 25, BOMBER_COST, CRUISER_COST = 50 }; shipCost myShipCost = BOMBER_COST; are underlined in green? it says it prefers enum class, ..
I am stuck on writing a program that would output something in the middle of a box, the goal is for a user to enter their name and for it to appear in the middle like the example below. It has got to also account for odd and even lettered names and I am stuck ..
The goal of my assignment is to write a C++ program that takes in two variables, a character value and a string value. The program is then, with the use of a user-defined function called int CountCharacters() the program is supposed to count the number of times that the user inputted character value is in ..
Hi i have a decion variable with 4D X[i][j][k][l] and it’s binary.How can i declare it please?? I am using concert technology c++ 2019 with cplex12.9. Is those two versions works togedher please? Thank you Source: Windows Que..
l’m making a Money game. In it l wanna update the cout without repeating it. Is there a way to do that? Source: Windows Que..
When I am trying to store more than one word in a string variable, it only outputs one word when I tell the program to print it. This is an example: #include <iostream> using namespace std; string i; int main() { cout << "Input more than one word." << endl; //in this case the user ..
The problem: I have 2 arrays A[v] and M[w], with length v and w, respectively. Given two numbers p and q, I want to find how many combinations of the sum of two elements of these arrays satisfy the following condition: p >= A[v] + M[w] <= q An example: Let: A = [9, 14, ..
I’ve heard that ostream& is better to use than cout when outputting something (strings, etc). Why is that? I could be wrong, but aren’t ostreams easier to manipulate and work with than simple cout statements? Source: Windows Que..
enter image description here I tried to connect mysql. But it seems like something goes wrong but I cannot get it. It always outputs "Failed!" Source: Windows Que..
Recent Comments