Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+2
Strength to Decrease Rep
-0
78% Quality Score
Upvotes Received
4
Posts with Upvotes
4
Upvoting Members
3
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
0 Endorsements
Ranked #2K
~20.0K People Reached
Favorite Forums
Favorite Tags
Member Avatar for iblanq
Member Avatar for Kristian_2

I have solved it... Shame... -------------------------------- I have problem with this code: cin >> str; smatch m; regex e("([[:w:]]+)@([[:w:]]+)\.com"); //<- Here was the error (it was regex e("([[:w:]+)@([[:w:]]+)\.com");) silly me :(( bool found = regex_search(str, m, e); cout << "m.size() " << m.size() << endl; for (int n = 0; …

0
146
Member Avatar for Kristian_2

Hi guys, I have small problem with my example code. Any hint? #include <iostream> using namespace std; class A{ public: int a; A(int i){a = i;} A(const A& rhs) // copy constructor { a = 2; } A(const A&& rhs) // move constructor { a = 3; } }; void …

Member Avatar for mike_2000_17
0
409
Member Avatar for moaz.amin.37

my question is that when we use static data member and ststic function and nobody can not satisfy me about this question i need actual reason of using the static data member and ststic member function

Member Avatar for deceptikon
0
838
Member Avatar for moaz.amin.37

write a c++ class run that contains followin data member 1)name of runner. 2)distance covered by runner. class ha following member function 1)get function for input runner name and distance. 2)show function to display runner name and distance. the user should be able to show the name of the runner …

Member Avatar for Kristian_2
0
834
Member Avatar for eathan16

Hi guys I am currently making a simple calculator for children in turbo c++ and I do not know how to make the help screen. I want the child to be able to press the letter h which will take them to the help screen. Can anyone help me?

Member Avatar for eathan16
0
219
Member Avatar for rico.j.rico.3

How to write a program in C++ which creates a file “grade.txt” and stores student’s grade and name.

Member Avatar for ishaan3731
0
249
Member Avatar for TheFearful

I am having trouble finding out if I did the header correctly #include <iostream> #ifndef TREE #define TREE // Node class class Node { int key; Node* left; Node* right; public: Node() { key=-1; left = NULL; right = NULL; }; void setKey(int aKey) { key = aKey; }; void …

Member Avatar for Kristian_2
0
201
Member Avatar for shurooqalhodar

hello there i have a homework in c++ and a i dont know how to do can you help me please...

Member Avatar for Kristian_2
0
100
Member Avatar for syasya

Hi guys , I would you to help me to solve this problem First , user need to input 10 numbers Ex : 85 11 36 174 112 24 73 52 183 149 Next , user need to input the initial number . This initial number will determine whether the …

Member Avatar for Kristian_2
0
14K
Member Avatar for DS9596

What's the difference between: int once; cout << "ok"; and this: char twice; cout << "ok"; Is the output for the first one just ok and the second one ok ok ?

Member Avatar for Ancient Dragon
0
399
Member Avatar for SW-ENG mohamed

Given an integer n, print the following shapes using asterisks and spaces. For example, for n = 5 the following shapes are printed Input: 5 Output: * * * * * * * * * * * * * * *

Member Avatar for Kristian_2
0
163
Member Avatar for Afaf

Creat a text file that contains student number ( 9-digit number ) , year ( one of the four years: Senior denoted by SE, Junior denoted by JU, Sophomore denoted by SO or Freshman denoted by FR ) and GPA ( a floating point number greater than 0.0 ) . …

Member Avatar for iamthwee
0
228
Member Avatar for dennis.ritchie

This seemingly small code which swapps 2 numbers is giving me a headache..help!! C++ + am wondering why would one need to swapp the numbers in real life? trickery? magic

Member Avatar for Kristian_2
0
225
Member Avatar for Elharts

Hello, I am currently writing a program that estimates Pi values using three different formulas pictured here: http://i.imgur.com/LkSdzXm.png . This is my program so far: #include<iostream> #include<cmath> #include<iomanip> using namespace std; int main() { double leibniz = 0.0; // pi value calculated from Leibniz double counter = 0.0; // starting …

Member Avatar for Kristian_2
0
239
Member Avatar for kal_crazy

The aim is to create a gdb function that changes current path to the upper level i.e `C:\Windows` to `C:\` I tried to strip away characters while the buffer array != '' Here is what I tried: void gdbCommand(){ char buffer[MAXCHAR]; strncpy(buffer,path,sizeof(buffer)); char result[MAXCHAR]; for(int i = 0; i < …

Member Avatar for Kristian_2
0
213
Member Avatar for kumarprashant

hi I have a project due this Monday to make an address book. need some help with that.I have some code with me but it is not working. please help me if you can. i have attached a copy of the same and given description below. program description: develop a …

Member Avatar for Bendez Thyna
0
296
Member Avatar for infamous1987

using namespace std; int numCheck(int x); int main () { const double LAWYER = 0.10, PERSONAL_ASSISTANT = 0.03, AGENT = 0.07, TRAINER = 0.05; double athleteBeginSalary(0.0), lawyerSalary(0.0), personalAssistantSalary(0.0), agentSalary(0.0), trainerSalary(0.0), professionalTotalSalary(0.0), athleteEndSalary(0.0); int numLawyer, numPersonalAssistant, numAgent, numTrainer, x(1), y(0); string firstName[8], lastName[8]; // The number of the Professional hired: Lawyer, …

Member Avatar for Kristian_2
0
165
Member Avatar for Praveen_10

after the 1st iteration the toss is 100 and then the iteration increases toss to 200 and then 300. Why is this happening i want toss to be made only hundred times. PLease help me. #include <iostream> using namespace std; #include <cstdlib> #include<ctime> int toss(void); int main(void) { srand(time(0)); int …

Member Avatar for David W
0
375
Member Avatar for hahahanz

Hello Im quite Confused right now. I am trying to insert a Node in between nodes and it is not being displayed. Please Help. #include <iostream> #include <conio.h> #include <cctype> using namespace std; struct Node { int DATA; Node * Next; }; Node * head = NULL; void Display(); void …

Member Avatar for hahahanz
0
245