Beginners - May 2014 (Page 30)

by dan2n1
Game of Craps
 
Hello everyone, I am needing help on a game of Craps. Below is the code I have written, but when the player runs out of money and the game end it show the last...
[no replies]
alphabetical characters.
 
hi, i have updated some code, and i need help compressing the second part of the code, the first that i have checks each character and outputs valid name for ea...
[2 replies] Last: ok thank you ill do some work right now, ill replay back if i run into... (by JulyZerg)
by quayda
Seperating/Storing Parts of String
 
I'm trying to store different sets of characters of the string scientificNotation. So far, I've captured the values prior to the 'E' and stored them as function...
[4 replies] Last: Aww, but you changed my original code. Say you enter "-0.1234E20". Le... (by long double main)
Progam blows up during clean up
 
I have been working on this problem for four days and though I've made progress I still have not solved the problem. The quick and short of it is that I have a ...
[2 replies] Last: EUREKA!!! IT WORKS!! Thank you cire, JLBorges, AbstractAnon and every... (by Khillz3000)
Data input
 
Hi, I have to write a program where my input data will be "send" like this: 5 2 43 5 54 5 3 54 5 34 43 4 12 32 3 6 The first numbers says how many rows there wi...
[12 replies] Last: //Free memory: for( int i = 0; i < n; i++ ) { delete table ;//d... (by closed account j3Rz8vqX)
Visual Studio not working
 
I tried to download visual studio for windows but it is not working. I downloaded the installer (wdexpress_full.exe) but when I tried to opening it just shows t...
[2 replies] Last: You could also try Google: http://lmgtfy.com/?q=visual+studio+2013+h... (by Codermik)
Tree
 
Can someone help me how to construct a tree like this with recursion: http://i.stack.imgur.com/uUnVi.png The input for this example is 1 5 0 3. That means...
[2 replies] Last: You shouldn't really be bumping the post up. Anyway, its always best... (by Codermik)
Need help aligning this table.
 
I know what the problem is, I just don't know how to fix it. Any help would be very appreciated, Thank you. #include <iostream> #include <string> #incl...
[1 reply] : use setw :) http://www.cplusplus.com/reference/iomanip/setw/ (by Codermik)
by quayda
Truncate ofstream failing
 
I'm trying to truncate "The Big Picture.txt" so that it will be data free from the beginning, thus allowing the program to rewrite the same data onto an empty...
[9 replies] Last: Awesome, thank you. (by quayda)
Classes, static in private
 
I cant get this to work, anyone know how? I get the following error: error: ‘double Account::interestRate’ is private static double interestRate; ...
[3 replies] Last: Sorry guys, there were a few errors, fixed them. Thank you guys. Here ... (by closed account EwCjE3v7)
Plotting graph using ccc_win
 
Hi Everyone, Using the ccc_win library, i want to make a program that takes a polynomial equation from the user as a string and substitutes in it from x=-10 ...
[3 replies] Last: Horstmann's Graphics Libraries are a specialized thing that is designe... (by Duthomhas)
Need a Little help on a current date Program
 
I can't figure out how to switch the month from its current form of MM to the full month name like MAY or JUNE. is there a simple way to do this or do I have to...
[2 replies] Last: ahhhh I feel like an idiot haha thanks tho!! :) (by Torched420)
Delegated Constructors
 
I am confused about delegated constructors, as you can see when I supply a string to the class, it calls the first constructor first, then the second one. I do ...
[10 replies] Last: No, no no Peter. You do not get what I mean. I know that but please t... (by closed account EwCjE3v7)
Writing to a file at some point
 
Say I have a file with some information in it and after my program runs I want to 'update' this information. Using seekp function I can set the position where t...
[9 replies] Last: Ok thanks guys. (by Void life)
by binf
Need a conversion of code
 
I want to write a program that reads two lists and aligns listB to listA such that if listB has the same ID the grades will be shown at the end listA, nothing o...
[no replies]
by danzal
cmath help !
 
how do i write the formula in c++ y= xpower2 - sin power 4 * 3x in c++ and slope = 2x - 12 sinpower3 * 3x cos 3x #include <iostream> #include <cmath...
[2 replies] Last: 3x - you may want 3*x instead of x * x * x ? (by wildblue)
by quayda
Alphabetzing: Please, Elmo, Please
 
This code copying the data from two input files onto one output file. I thought I could figure out how to alphabetize, but it's been a couple hours and I've got...
[7 replies] Last: Well what I was referring to was something like this: #include <... (by Codermik)
by h4ever
How to send HDC handler within message?
 
Is there some message which I could use to send a special message which should bear information about HDC handle to external Window? I have application to captu...
[5 replies] Last: U got your answer. (by h4ever)
by h4ever
How to set character spacing of button?
 
Hello, I am using ahk script which used gdip. Many of example of gdip on MSDN are for C++ hence I come to ask you if you know the function which I should use to...
[15 replies] Last: I'm still not skilled to get own solution. But in AHK somebody bring s... (by h4ever)
Analyzing the largest number among many.....
 
As what the title said..... Is there any function to do this ?
[3 replies] Last: [quote=Chervil]Also in C++11 you can do this, using the initialiser li... (by Peter87)
May 2014 Pages: 1... 2829303132... 55
  Archived months: [apr2014] [jun2014]

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