49,761 Topics

Member Avatar for
Member Avatar for Jsplinter

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);

Member Avatar for NathanOliver
0
182
Member Avatar for amithunter

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

Member Avatar for rubberman
0
206
Member Avatar for Katangka

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 …

Member Avatar for misi
1
10K
Member Avatar for Otani

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"; …

Member Avatar for Otani
0
779
Member Avatar for Kris_3

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 …

Member Avatar for Kris_3
0
124
Member Avatar for Kris_3

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 …

Member Avatar for Kris_3
0
216
Member Avatar for new_developer

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 …

Member Avatar for Slavi
0
260
Member Avatar for kamalashraf

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() …

Member Avatar for rubberman
0
7K
Member Avatar for amithunter

Hlo guys can u please tell me that websites can be created in c or c++ please suggest me something... thanks for the help

Member Avatar for Hiroshe
0
87
Member Avatar for Agouri

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 …

Member Avatar for BeautyBeast
0
771
Member Avatar for patrik666assassin

#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 …

Member Avatar for patrik666assassin
0
139
Member Avatar for Roots

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 …

0
114
Member Avatar for GOMEZ_1

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

Member Avatar for melissad
0
187
Member Avatar for nibiruisaplanet

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.

Member Avatar for melissad
0
296
Member Avatar for Muhammad Shahg

What is the difference between Static Variable and Ordinary Variable?Which Variable is expensive to use in c++ programming?Give some resion?

Member Avatar for melissad
0
264
Member Avatar for Jjajangmyeon

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 …

Member Avatar for David W
0
236
Member Avatar for shea279

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 …

Member Avatar for Дмитрий_5
0
198
Member Avatar for Joemeister

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. …

Member Avatar for iamthwee
0
600
Member Avatar for kalidas.rajendran.1

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, …

Member Avatar for nelsonfaboan.rios
1
2K
Member Avatar for nhrnjic6

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 …

Member Avatar for tinstaafl
0
150
Member Avatar for mrupload

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 …

Member Avatar for Schol-R-LEA
0
351
Member Avatar for furalise

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 …

Member Avatar for furalise
0
180
Member Avatar for Joemeister

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 …

Member Avatar for L7Sqr
0
159
Member Avatar for aluhnev

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.

Member Avatar for Hiroshe
0
205
Member Avatar for cambalinho

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 …

Member Avatar for cambalinho
0
135
Member Avatar for Hussein.Soufan.einstein.313

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 …

Member Avatar for jwenting
-1
130
Member Avatar for aluhnev

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 .

Member Avatar for Hiroshe
0
641
Member Avatar for Jjajangmyeon

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 …

Member Avatar for Jjajangmyeon
0
265
Member Avatar for Pazuzu156

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 …

Member Avatar for Pazuzu156
0
189
Member Avatar for Joemeister

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& …

Member Avatar for Joemeister
0
2K

The End.