- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 3
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Re:
Hey guys,how can i retain the output window when stdio is used as my header? |
|
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; … |
|
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 … |
|
Re:
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 |
|
Re:
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 … |
|
Re:
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? |
|
Re:
How to write a program in C++ which creates a file “grade.txt” and stores student’s grade and name. |
|
Re:
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 … |
|
Re:
hello there i have a homework in c++ and a i dont know how to do can you help me please... |
|
Re:
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 … |
|
Re:
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 ? |
|
Re:
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: * * * * * * * * * * * * * * * |
|
Re:
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 ) . … |
|
Re:
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 |
|
Re:
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 … |
|
Re:
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 < … |
|
Re:
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 … |
|
Re:
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, … |
|
Re:
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 … |
|
Re:
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 … |