48,985 Topics

Member Avatar for
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
749
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
138
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
113
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
232
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
598
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
350
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
158
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
134
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
129
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
633
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
Member Avatar for sandeepxd

I have written a code that uses system power broad cast messages. and when laptop is running on AC power it executes a program. What i want to know is when i try to compile the code with registerpowersettingnotification function dev c++ compiler shows errors. When i remove that function …

Member Avatar for amithunter
0
147
Member Avatar for Asim_7

i received bytes data from some other function to myfunction(const void *data) where pointer data stores the values like {0,0,0,0,0,0,0,40,20,0,0,0,0,0,0}. I created an array data1 to store the values {40,20,0,0,0,0,0,0} from the above values considering endianess issue i also reversed data1 and used memcpy to copy data1 but having problem …

Member Avatar for new_developer
0
200
Member Avatar for Moaid

the title says it all i,ve been trying functions like sleep usleep and delay all of them dont work

Member Avatar for Schol-R-LEA
0
58
Member Avatar for amin_1

i got a project in c++ and want to make graph and shaps in c++ but i got this error i am using borland 5.02 if any one knows this please

Member Avatar for Schol-R-LEA
-1
1K
Member Avatar for MrJUBU
Member Avatar for YiLiang

Hi Guys, I'm a beginner. Can i ask, how to write the code for delete or backspac in a password if i key in a wrongly? Example: Password is 123456 But I accidentally keyed 124, so how do i delete/backspace 4 so i can key in 123456 again.

Member Avatar for rubberman
0
175
Member Avatar for Rock426

How can i write a program that uses for print statements to print 6 pattern of asterisks?

Member Avatar for David W
0
92
Member Avatar for wakesin

hey there Daniweb. So I am in need of some help with a project I have. We need to create a program that will print out rows of asterisks as tall as defined by the user. [CODE]For example, if the user entered, 1 2 3 4 3 2 1 10 …

Member Avatar for Rock426
0
6K
Member Avatar for aluhnev

The containers SET/VECTOR/LIST/MAP are very similar in use,so how to choose which one to use? Is where any special cases? Thanks

Member Avatar for mike_2000_17
0
272

The End.