- Strength to Increase Rep
- +15
- Strength to Decrease Rep
- -3
- Upvotes Received
- 399
- Posts with Upvotes
- 343
- Upvoting Members
- 225
- Downvotes Received
- 17
- Posts with Downvotes
- 16
- Downvoting Members
- 15
I'm 29 and currently learning c++. I like doing mathematical computations and working on encryption methods. Now I am currently learning how to use Whittmann Robots.
- Interests
- C++, math, football (American), music (not country), playing with my god kids
- PC Specs
- Intel i5-2500k 3.3 Ghz processor, 16 GB DDR3 1600 ram, 1 GB Video PCIx2.0 x16, 2TB HD, running Windows…
Re: [B][COLOR="Red"]Simple C++ program for age calculation[/COLOR][/B] [COLOR="Green"][B]NB:Excuse me experts,,this is only for beginners.........[/B][/COLOR] Instructions//// 1.Copy the code 2.paste it in a text file 3.save the text file as agecalc.cpp and select file type all with in the text file. 4.paste this file inside your bin folder where the Turbo C … | |
Re: I am having problems using the square root function in my program. I have included <cmath> outside of main and my formula using the square root looks like this: area=sqrt(s*(s-a)*(s-b)*(s-c)); but, I keep getting an error that says 'sqrt' cannot be used as a function. I would appreciate any suggestions. … | |
Re: Hello! i'm only a beginner in programming and only have a few idea about creating a program. We have an assignment to create a hangman: Write a program that plays the game of Hangman. The program should pick a word(which is coded directly into the program) and display the following: … | |
Re: Hi All, i would need some advice from you guys from this forum to solve the reading of the CSV file that i had. for example, i have a file which consist of about 2000 records (below are the example of the records) 10/10/2013 10:25:09 AM,5.89,45,264.83,PTTTT 10/10/2013 10:25:13 AM,5.89,2000,11780.00, Some … | |
Re: /* SPRPTA Bus Ticket Reservation System C++ Software Development Project */ #include <iostream> #include <fstream> #include <cstdio> #include <conio.h> #include <cstdlib> #include <stdio.h> using namespace std; int count01 ; // class Passenger class Passenger { string str_City, str_ContactNumber, str_UserName, str_Password, str_name ; protected: string str_NIC ; public: Passenger(){} Passenger(string name, … | |
Re: Hi all, I'm having a little problem with array and some "unqualified-id" problem. I've created gazillions (okay, maybe 80) arrays before but I had never encountered such problem. Especially with static arrays. [CODE] #include <stdio.h> #include <cstdlib> using namespace std; int main() { // with addition of buffers for 3x3 … | |
Re: [B]Intro[/B] This tutorial provides a brief introduction to the random number functions that come as part of the C++ standard library, namely rand() and srand(). [b]rand() and RAND_MAX [/b] The C++ standard library includes a pseudo random number generator for generating random numbers. In order to use it we need … | |
Re: I wrote an application using pthreads which had 5 threads. 4 of the threads filled up 4 buffers and once they had been filled the main thread would be combine these together. This was achieve using barrier so the main thread would wait until the 4 worker threads had reached … | |
Re: Would anyone know how to put user input into a Char Array. I've provided the code below It doesn't work so I've tried many variations like making char wrd as char wrd[20] but still nothing. I think I'm missing a fundamental point here. All I want to do is have … | |
Re: write a c++ program to display the following pattern: a a b a b c | |
Re: Hey, i need c++ coding to print sum of this series 1 + 1/11 + 1/21 + 1/31 + ... + 1/N Would be great if someone could answer this quick, thanks. | |
Re: Hello , I've been working for an hour now searching for a solution for a problem i have for tomorrow's workshop so I wanted to be ready for it and here was the question : Write a program that reads 3 integers. Then, display: ï‚· The count of positive integers … | |
Re: Consider a base class that is derived by two sub-classes and a third class derives from the above two classes. I make the base class virtual, so as to not make copies of the base class. My question is that do I have to include the base class constructor in … | |
Re: I want to declare an ordinary pointer (not a member pointer) to a member function. I have tried but apparently I am getting errors. Is this allowed in C++? Why is it not? #include<iostream> class A{ private: int m; public: void show(void){ std::cout<<"M= "<<m<<std::endl; } }; int main() { A … | |
Re: Hello: I have just down loaded a help library for vc2010 C++ it took two days to download. I compiled a CPUID program from Microsoft. 08/25/2015 03:40 AM <DIR> . 08/25/2015 03:40 AM <DIR> .. 08/25/2015 03:35 AM <DIR> CPUID 08/25/2015 03:41 AM 26,759,168 CPUID.sdf 08/25/2015 03:33 AM 887 CPUID.sln … | |
Re: I wrote the following program to access an object's private members via its address. How is it possible that the following code did not give me *ANY* error? The code compiles and gives me the right answer. Does this mean C++ is inferior to other languages in its ability to … | |
Re: My program is to solve the simple problem in the Link[http://codeforces.com/problemset/problem/143/A] #include <stdio.h> #include <cstring> #include <math.h> #include<set> #include<iostream> #include<algorithm> #define MAXN 25 #define INF 100000000 using namespace std; struct _point { int L;int r; bool operator<(const _point &a)const{ return (this->L<a.L); } }; set<_point> up,down; int r1,r2,c1,c2,d1,d2; void solve(){ _point … | |
Re: can someone help me with this? "PROGRAM TO DISPLAY FACTORS OF A NUMBER" Use A1,A2,A3..as variable. Sample output Enter apositive integer: 60 Factors of 60 are: 1 2 3 4 5 6 12 15 20 30 60 my teacher say, that we should use stdio.h kg conio.h | |
Re: Hello, I have task to read the CSV file using C++ , the CSV file contains 10 rows x 3 colums float data and I want to read it and apply some mathematic and then the ouput should be stored in a new matrix. The thing is If can read … | |
Re: Hi! I am writing my own string splitter and i'm stuck. When I'm trying to split the same string the second time im getting only the first word. Im using Visual Studio 2013. "Name|Phone Number|Account Number|Price|Tariff" Output is : Name Phone Number Account Number Price Tariff Name and my desired … | |
Re: I recently came accross this code: Mat3D R_z(double RotAngle) { const double S = sin (RotAngle); const double C = cos (RotAngle); Mat3D U; U.m_Mat[0][0] = +C; U.m_Mat[0][1] = +S; U.m_Mat[0][2] = 0.0; U.m_Mat[1][0] = -S; U.m_Mat[1][1] = +C; U.m_Mat[1][2] = 0.0; U.m_Mat[2][0] = 0.0; U.m_Mat[2][1] = 0.0; U.m_Mat[2][2] = … | |
Re: Hi all! Whenever I am working with my code in my main.cpp file, I can call character-handling functions like * isdigit * isalpha * isspace * toupper without importing the `cctype` library. However, my C++ How to Program Book shows that the cctype library must be imported before the functions … | |
Re: #include<iostream.h> #include<conio.h> int main(void) { void hello() { cout<<"HI"; } getch(); return 0; } I am getting an error at line 6 stating that declarartion syntax error. What do I do? | |
Re: Hello all! I am trying to take a string that has mixed uppercase and lowercase chars and then convert it to lowercase. I am doing the following line of C++ code: transform(theReadMessage.begin(),theReadMessage.end(),theReadMessage.begin(),theReadMessage.end(),::tolower); //theReadMessage is a string to convert to lowercase and my C++ xCode debugger gives me this message `Too … | |
Re: Hi I have encountered a problem where I cannot think of a solution. I'm attempting to work with event tracing but the problem is that a handle is not released even when the program exit, and the API appears such that once it is opened or started, it is closed … | |
Re: Hi I am trying to do a game to children so they can notice the difference between to images and study how their memory atention etc are. I want to open the image, and make a questionair where I say if the child was able to find one two three … | |
Re: Hi All, In below code snippet i am getting segmentation fault. Could you let me know what can be cause. usually we will face segmentation fault if auto_ptr is used due to ownershpt issue (Assignee pointer becomes NULL) but why i am facing the same issue with unique_ptr move semantics. … | |
Re: For my (online) programming class, I have to format certain output in columns using setw. I am having trouble understanding how to do this. My professor says that I am supposed to be creating columns, not counting characters to align things. I haven't been able to find any examples of … | |
Re: There was a question in topcoder. Question: Three kids are playing the following game: A word is written on a sheet of paper, and one after another, the players take turns adding letters to the word. During each turn, a player must add a single letter to either the beginning … |