Posts
 
Reputation
Joined
Last Seen
Ranked #779
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
5
Posts with Upvotes
5
Upvoting Members
5
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
5 Commented Posts
~22.0K People Reached
Favorite Forums
Favorite Tags
c++ x 90
Member Avatar for Tommybb

I know the general answer would be a Programmer, But more specificlly what types of jobs would you program for? What fields benifit from C++ programmers ?

Member Avatar for parul26sha
0
1K
Member Avatar for thilinam
Member Avatar for pirbhat.ariya
0
234
Member Avatar for clutchkiller

The question is in the title. Rather then making a call to the OS, is there a more efficient way to do this? Thanks Edit: Just though of something else to. Does Sleep(2000); make a call to the OS as well? If so is there another way to do this …

Member Avatar for Narue
0
2K
Member Avatar for jiten_raulo

I spend 6 to 7 hours each day practicing c++ and visual c++ but end of the day I think I don't have any Test or homework. Please anyone can provide with some site helping with the same. Thanks in advance JIten

Member Avatar for jiten_raulo
0
139
Member Avatar for esesili

Hi all, I am having problem about file operations. There are a few numbers in my txt file. I want the program to calculate average of these numbers in the txt file. The code I have written is as below. Number of numbers in the file is 5. When I …

Member Avatar for mrnutty
0
125
Member Avatar for kelechi96

Ok I need to know how to set my class to read only the values after the = sign. Here's my class so far. [CODE] #include <iostream> #include <string> #include <fstream> using namespace std; class Config { int pos; string search; public: char * confname; void configsearch () { fstream …

Member Avatar for kelechi96
0
167
Member Avatar for FREEZX

I need to write a program that will count how many numbers within an interval have an even sum of digits. you are given two numbers, a and b. i wrote a little program that is a little slow.. it checks for the sum of the digits for every number …

Member Avatar for mvmalderen
0
1K
Member Avatar for archiphile

I am not only new here, but, I am a complete newbie to programing. I was on the hunt for some beginner tutorials today on the web. I found what I thought would be a simple yet in depth problem. I spent the last hour making sure that I had …

Member Avatar for RayvenHawk
0
172
Member Avatar for soulbee1

Forgive my ignorance, I am learning. I am writing a C++ BlackJack program for school project. I have googled and incorporated the following code into my project. My results are I am getting a value for the cards of 2 - 5 and i do not understand why. If someone …

Member Avatar for nucleon
0
716
Member Avatar for wuzj1988

this is my program [code=cplusplus] // // custorderscf2.cpp // #include <cstdlib> // student ...... Jones, Patricia #include <iostream> // section ...... MW row .... 4 #include <fstream> // due date ..... xx/xx/xx #include <iomanip> // refer to ..... Gaddis Ch3 void SetPrecision(int); // procedure prototype using namespace std; // avoid …

Member Avatar for wuzj1988
0
128
Member Avatar for SmokyMo

i have following code, i am starting a college project and need help [CODE]#include "stdafx.h" #include <iostream> #include <string> using namespace std; class ba146{ private: int capacity; int totalSeatWindow; int totalSeatAisle; int totalSeatMiddle; public: string timeOfArrival; string timeOfDeparture; string departureCity; string arrivalCity; string flight; string seatType; int occupiedSeatWindow ; int …

Member Avatar for SmokyMo
0
131
Member Avatar for badboizEnt

please i need help with my code below, when ever i enter a wrond password first it gives me an error which its suppose to, but when entering the correct code next it still gives me an error message. could someone help me counter this problem. cheers [code]#include "stdafx.h" #include …

Member Avatar for badboizEnt
0
160
Member Avatar for Clockowl

Hey guys, I've this code: [code=cpp] #include <iostream> #include <fstream> #include <sstream> #include <string> using namespace std; bool load_file(const string &filepath, string &dest){ ifstream file; file.open(filepath.c_str(), ios::binary); if(!file.good()){ cerr << "Fatal error while opening file." << endl; return false; } //get filesize in bytes from ifstream //seek end, get pointer, …

Member Avatar for Clockowl
0
990
Member Avatar for rudolph2004

Hi, I have been asked to create a small programme that asks a user how many students information they would like to enter and then asks the user to enter all their information storing it all into a struct. The above is all good I know exactly know how to …

Member Avatar for unbeatable0
0
128
Member Avatar for queensrose

Hi guys! I've worked so hard on this really long program. I think I'll just post the relevant subprograms. I hope it's still easy to understand. This is just before the main function. [code] #include <iostream> #include <iomanip> #include <conio.h> #include <string> using namespace std; //function prototypes int cashier(); //generates …

Member Avatar for unbeatable0
0
137
Member Avatar for iammfa

Hi all, what is the bug in the following code: [code=cplusplus] #include <iostream> #include <string> int main() { string str = "Hello World!" cout << str << endl; cout << float x = 5.0f * str << endl; int 65Num = 65; cout << "65Num = " << 65Num << …

Member Avatar for stephen.id
0
137
Member Avatar for hurbano

i have my program doing what i want it to do untill it gets close to the end. the ouput that is transferred to the word document is not right. i have random charactes appearing before the "Date:". how can i fix this minor problem?? Thanks [code=cplusplus] #include <iostream> #include …

Member Avatar for hurbano
0
165
Member Avatar for hurbano

hello im having problem trying to get this to do what i want it to do. after the program asks if the user has had any work up to date, i want it to ask for specification if the answer is yes, or go to a next question if no. …

Member Avatar for mvmalderen
0
200
Member Avatar for arunciblesp00n

Hello, Firstly I better warn you I'm quite new to C++ and to Linux so I'm sorry if my terminology/general understanding of how things work is a bit confused. I've downloaded a code which is in C which is helpful for a course I'm doing on stellar structure, but I'd …

Member Avatar for ArkM
0
5K
Member Avatar for ademsaykin

Dear All Although my tutor said that it takes 25 minus, I have been trying to understand for more than a week that how to do my task. I have done something as you said before in terms of "putting at least some efforts". Please see the codes below and …

Member Avatar for ademsaykin
0
295
Member Avatar for Icebone1000

I have a file with record times, i need take each time and compare it whit the actual player time, so if the player time is < then the best time:input player time on top, if is >, then compare whit the next time and so... the problem is until …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for Cpp_Addict

Hey guys. I am making a simple console canender program for an exercise from a book, and it is going ok so far but I am having trouble with the spacing of it. I have made a simple function that creates on day block like a normal calender would have, …

Member Avatar for unbeatable0
0
119
Member Avatar for Agni

This code here is giving segmentation fault. Any clues why? also any general tips for writing good multi-threaded code are welcome. [code=c++] #include <windows.h> #include <process.h> #include <iostream> using namespace std; unsigned __stdcall Display(void* p) { Sleep(500); cout << "Display" << endl; cout << *((int*)p) << endl; return 0; } …

Member Avatar for Salem
0
186
Member Avatar for new2c++
Re: game

hello, i have just started trying to learn c++ and have been told to create a game of connect four player vs comp. i have managed very little and am stuck on trying to get the computer to recognise that when the cell is occupied rather than not put the …

Member Avatar for MosaicFuneral
0
97
Member Avatar for tomtetlaw

Hi all, I am making a text game in c++ and i am trying to get the player's attack to ba a random number between 1 and 7, but when i try to compile it, it gives me this error: 49 C:\Documents and Settings\Games\Desktop\C++ Tutorial\Combat\main.cpp void value not ignored as …

Member Avatar for Narue
0
289
Member Avatar for Shinedevil

I have no idea how to make somthing like this, and i'm kind of new with file I/O. How would you start somthing like this? O.k. here is what I have to save, I have roughly 56+ variables that need to be counted in this. But what I am having …

Member Avatar for daviddoria
0
137
Member Avatar for dextrew

create a program that includes two functions named calcavg() and ariance(). The calcavg() function should calculate and return the average of the values stored in an array named testvals. The array should be declared in main() and include the values 89,95,72,83,99,54,86,75,92,73,79,75,82,73. the variance() function should calculate and return the variance …

Member Avatar for William Hemsworth
0
190
Member Avatar for rkumaram

Hi, I want to know what exactly happens when constructor fails. Do we have mechanism which will provide us information regarding failure of constructor other than exception. What happens with the memory already allocated to the object when in some circumstances construction of object fails.

Member Avatar for rkumaram
0
167
Member Avatar for ninja_gs

I have problem in getting outputs plz give me suggetion or correct error if any and make it working....... plz help......... there is no error........in this program.........when i compiled. [code=c++] #include<iostream> #include<cstdio> #include<cstring> #include<cstdio> #define IS_STRING 1 #define IS_CHARACTER 2 #define IS_INTEGER 3 #define IS_FLOAT 4 //using std::cout; //using std::cin; …

Member Avatar for ninja_gs
0
118
Member Avatar for 30Caliber

Hi everyone, I'm new to this site and programming, and i was wondering if i could get some help with a programming problem of mine. I have to print 10000 random numbers ranging from 0 to 10000. The numbers should be put in the console screen and a txt. file. …

Member Avatar for 30Caliber
1
2K