General C++ Programming - October 2012 (Page 33)

Making a program detect your system specs...
 
Okay, everyone should know how to check your system specs through My Computer (Properties)... How would i code a program to tell me what my computer spec are......
[1 reply] : There is no generic solution to this problem, so you need to specify w... (by andywestken)
Binary Trees
 
Can anyone help me to write this equation in C++?
[3 replies] Last: type the equation in http://www.wolframalpha.com (by viliml)
doubling output wrong
 
#include "stdafx.h" #include <iostream> using namespace std; int main(double pay) { int days; float daily; double total; cout << "This will d...
[4 replies] Last: ok and thank you guys it works now. (by Reaper1)
c++ program that accept employee
 
The distance between two cities is 500 miles. Let us call these cities as CityA and CityB. Employees live in the CityA and travel to the CityB every day in t...
[8 replies] Last: @noranata Please refer a good c++ book before start writing code yours... (by Raman009)
execution error when input matrix .using multi-level pointers
 
thank everyone!! #include<stdio.h> #include<conio.h> #include<iostream> #include<stdlib.h> using namespace std; class Matrix { private: int ...
[1 reply] : Main should be like this: void int main() { Matrix a,b; a.Nhap()... (by TheIdeasMan)
by nahla
Using a function to read a single input line into the string s.... much confused.
 
The function getline(cin, s) read a single input line into the string s. Write a program that uses getline to read input of the following exact form: FNAME f...
[4 replies] Last: TheIdeasMan wrote: The problem is to read from a file, not the keybo... (by TheIdeasMan)
Random Word
 
Hello I'm in the process of trying to create a hangman game. I've got everything working great, but I'm having a problem getting a word from a text document at...
[1 reply] : You need to write srand(time(0)); just once when your program starts... (by LB)
by krs
Making a "list box"
 
I want to make something like this. http://i.imgur.com/VwXwJ.jpg It is a "list box" that has 2 scroll buttons (scroll bar not needed). One button push, "scro...
[no replies]
Checking whether the input is of type int
 
This is my code. void exercise1() { int number_of_lines; // Initialising variable to store the number of lines. cout << "Enter a natural number." ...
[3 replies] Last: Cubbi's answer was very clear. Thank you. (by ghantauke)
Problem with variable type extern const
 
Hello again I am back, I have a homework and we were given by the professor this main program I call it "MyMain.cpp" #include <cstdlib> #include <iostre...
[9 replies] Last: histrungalot, I tried your approach and I used a minimum of 24 arrays... (by mendozae)
boost regex
 
I want to read in an article from a text file,no shorter than 500 words using boost regex I want to locate and tag locations,like <Houston> and the print out th...
[5 replies] Last: Here's what I'd do: //std::vector<std::string> list; //std::string f... (by helios)
python to C++ HELP D:
 
*************************************************************************** Hey guys! I was wondering if it is possible to convert a python program (.pl) to...
[3 replies] Last: guess i have to do it manually ;( oh well ..thanks anyway guys :) (by Rajiv Banga)
Redefinitions With Include Guards Too
 
Hey agian, Im working on a sfml project and I finnally decided to stop having huge, single file programs. So I'm using multiple .cpp files and .h's too. I have ...
[14 replies] Last: Wow, I was including the .cpp in the .h Thanks for the help (by Pickle Gunner)
little help
 
need little help. I just want to count the number of comparisons used when called with a vector of size n. vector<int> minmax( vector<int> V, int l, int u ) ...
[no replies]
by ilker
normal distribution
 
Hi all, I have the following code for getting a double from a normal distribution. I call the function during several times in a program but it gives the sa...
[9 replies] Last: @Cubbi: And also thank you very much. With you guys' help I solved the... (by ilker)
Conversion to const TYPE * const [] problem
 
Hi guys, I can't figure this one out, I created an array of FLAC__int32 and I can't pass it to a method of the libFLAC. // Buffer is a vector of BYTES (unsign...
[1 reply] : I solved, the problem is that the function expects an array of pointer... (by claudiordgz)
Help For Time in and out PRogram for payroll system
 
Hi Guys I need A code that will token this string string tin = "18:30" it will seperate 18 and 30 then it will convert it to integer datatypes ...
[no replies]
URGENT HELP PLEASE ^^
 
ifstream read("hello.txt"); string name; const char * c = name.c_str(); getline(read,name); cout...
[2 replies] Last: thanks man solved (by mrghaia)
Linked Lists/Pointers/Structs error, not sure which
 
Hey guys, so my problem is actually fairly simple but I'm afraid this post may be rather lengthy as I'm not entirely sure what my problem is and so I will mo...
[5 replies] Last: OK got this all fixed, it was a rather blind mistake on my part, cause... (by SquishyChs)
by zenteo
Java 200x faster exception handling
 
I've discovered that Java has a much faster exception handling system than C++, which suprised me since Java is managed(using Microsoft's term) and C++ is nativ...
[4 replies] Last: > I've discovered that Java has a much faster exception handling syste... (by JLBorges)
October 2012 Pages: 1... 3132333435... 50
  Archived months: [sep2012] [nov2012]

This is an archived page. To post a new message, go to the current page.