49,761 Topics
| |
I do not understand what the following code does: enum testEnum: unsigned char { FOO_ENUM, BAR_ENUM }; unsigned char sideFilter1 = 1 << FOO_ENUM; unsigned char sideFilter2 = (1 << FOO_ENUM) | (1 << BAR_ENUM); | |
Actually i am confused with concept of database conectivity in c++ with any traditional Dbase server is it possible if yes then how....pls help Thanks for the help in advance | |
Hello! I've seen a thousand dicsussion about how to make an .exe file from your .cpp source code, but none of it seems to help me: since I have the .exe file, I just can't run it on any other computer. Can anybody help me out, what libraries should I … | |
Hello, I'm a beginner in this site. I was just hoping that someone might be able to answer my question regarding to debugging a payroll. Here: #include <iostream> #include <conio.h> #include <string> #include <windows.h> #include <stdio.h> using namespace std; const string userName= "Username"; //assigns the username const string passWord= "Password"; … | |
Hey guys. So I have made a little project but I want to give it to a friend to test it out. I am using Code::Blocks and I want to save the file so that when you click it it comes out like the window I get when I run … | |
Hi guys , so I just started learning C++ so I am trying to do something but id does not turn out quite how I want it to be. So my idea is to create a text game and I'm at the very beggining and I have a lot of … | |
Hi there, I need explanation for the range of data type say character which is 1byte ranges from -127 to 127 or 0 to 255. I did not understand what it means and how can I check the range of characters. Does it means it can store only values from … | |
hi, below is the code for binary search in case of array is sorted in ascending order. what changes i have to do if array is sorted in descending order. #include<iostream> using namespace std; void getdata (int a[], int size); int binarysearch (int a[], int size, int key); int main() … | |
Hlo guys can u please tell me that websites can be created in c or c++ please suggest me something... thanks for the help | |
Hello gentelemen, I'm sure many of you are experiencing what I am experiencing right now. I'm halfway into Christmas break, back at my parents', with the paperbacks I brought along depleted, the roguelike I downloaded unable to start after an OS upgrade and literally nothing else to do for the … | |
#include <iostream> #include <string> using namespace std; int main() { int nap; cout<<"Milyen nap van ma?\n "; cin>>nap; if (string nap =="hétfÅ‘") { cout<<"Szar rizzsel"; } return 0; } I just begun to explore the wonders of C++. I'm trying to write a simple code but I always run into … | |
Hello. I am trying to calculate the distance between coordinates. I am detecting the movement from camera/video, using for tennis ball tracking and saving the coordinates of all candidates so that means the ball movement and also the player or whatever noise there could be. My final goal is to … | |
Hi Brethrem, am kind of new in the C++ world, so far am learning about functions but am stuck on the difference between call a function by reference and call it by value. I will appreciate your help | |
I'm required to learn it for a degree. I already know a bit of Java. But I'm just kind of wondering if it's a waste of time or not. | |
What is the difference between Static Variable and Ordinary Variable?Which Variable is expensive to use in c++ programming?Give some resion? | |
My instructor provided this class for us to use. He hasn't answered the e-mail I sent, and this is due soon. I keep getting an error. I haven't touched the file, just included it. G:\ManageActivities\Date.h|23|error: 'string' does not name a type| #ifndef DATE_H #define DATE_H #include <string> #include <sstream> class … | |
OK so I'm using the function SetDlgItemText() to change the text in a static text control of my window. Problem is, when it updates from a longer string to a shorter string ("Sup Y'all" -> "Hi"), the previous, longer string persists leaving "Hip Y'all". However, remaining bit of the old … | |
I am trying to transform a infix mathematical expression into a postfix expression using the shunting yard algortihm but can only get so far by writing the pseudo code because I know exactly what to do through logical thinking but can't write the code that will help me do it. … | |
i am lookng for some sample c coding for fuzzy logic, can anyone help me in developig fuzzy logic in c,.. i had developed my fuzzy rules in matlab, now i hav to develop the c coding for the developed model, can anyoe help me in developing the c code, … | |
Am having real problem understanding what the problem is. Here is the code : Stack.h : #ifndef STACK_H #define STACK_H #include<Node.h> typedef int Stack_entry; class Stack { public: enum Error_code{succes,overflow,underflow}; private: int counter; public: Stack(); ~Stack(); //Stack& operator=(const Stack &Stack_copy); bool empty_stack()const; Error_code push(const Stack_entry &item); Error_code pop(); Error_code top(Stack_entry … | |
Hi I am beginner in c++ , I have a console project and want to convert it to windows application , after 6-7 days trying I couldn't convert it and when I compile project I have many more errors This is my console project: http://uploaded.net/file/8yv5u1s7 Please convert it for me … | |
Hi there. I have found how to declare a two dimensional vector like below: vector < vector < vector<int> > > myvector; My question is, how do I declare a three dimensional vector? Is it as per below? I just thought there may be a standard for this. Thanks vector … | |
I am working on how to convert a infix to postfix expression and then calculate that converted postfix expression. I have the following thought process on how to do this. 1. Receive a infix expression (Through the main file) 2. Instantiate the variables in this expression through a function called … | |
Hi,can you explain the use of **for_each and lambda** in c++11.What are they for,how to use? I have seen a few examples but do not get the meaning.Thank you. | |
i'm trying to understand some joystick structure: http://msdn.microsoft.com/en-us/library/windows/desktop/dd757112%28v=vs.85%29.aspx but isn't easy. at least these image help me more(joystick layout): https://onedrive.live.com/?cid=C3EF456E15C8DEB6&id=C3EF456E15C8DEB6!1259&v=3 but i need ask more: 1 - the Hat and X and Y coordenates are the same or they can be programmed in separed ways? 2 - i can't find … | |
Problem 1: You are given n you are required to print the following rhombus. Example: n=5 1 121 12321 1234321 123454321 1234321 12321 121 1 Problem 2: Max Subsequence sum using 3 nested for loops. (n^3) Max subsequence sum using 2 nested for loops. <-- Challenge (n^2) You shold print … | |
Hi i started the book c++ from ground up,but looks like it's too old.I came across the bonded array.Question- what are they,where to use them,how and are they still used in c++11? Thank you . | |
I'm trying to run a program with command line arguments. I keep getting the following error: This application has failed to start because libgcc_s_dw2-1-.dll was not found. Re-Installing the applicatiob may fix this problem. I have no clue what to do with this. The code works on the school computers … | |
I'm sure this question has been asked before, but I'm at a loss here. I've been attempting to get a piece of C++ code to work. It works perfectly on Windows AND Linux (Multiple distros tested on) however Mac is proving a pain. I'm executing a Jar from C++, and … | |
Hey all, I was wondering about this piece of code on how to make it simpler to find the needle in the haystack for example "abbaabbaabb", "abba" - the needle, "abba" is found 2 times in the haystack "abbaabbaabb". I have this code: unsigned int substringCount(const std::string& strng, const std::string& … |
The End.