Beginners - October 2011 (Page 24)

Copy the SFML development files to your Code::Blocks installation directory?
 
I'm trying to download and use the SMFL static library. It tells me to "Copy the SFML development files to your Code::Blocks installation directory" What in e...
[3 replies] Last: Wow... that was so long. I've given up on using STATIC libraries becau... (by hellohellomoon)
Loops help
 
V_y = V_y - ( 9.81 * t ); ycord = ycord + V_y * t; These two equations need to be run 100 times and I need to output the 100th answer. Do i need to use loops o...
[2 replies] Last: application of mathematics instead of loop makes very fast calculation... (by Bibek Subedi)
Finding Lowest score from a txt file
 
#include <iostream> #include <iomanip> #include <fstream> using namespace std; int main() { ifstream gradeFile; gradeFile.open("ScoreData.txt"...
[no replies]
Writing a Arabic Numeral to Roman Numeral Conversion Program
 
Hi, I'm new to C++ obviously. I was given an assignment to write a program where I need to write a program that converts Arabic Numerals into Roman Numerals....
[2 replies] Last: http://programming-technique.blogspot.com/2011/08/conversion-of-decima... (by Bibek Subedi)
new to interface/implementation files -- error:cannot open source file
 
I'm trying to write a header file and an implementation file so that they work together but I get an error saying cannot open source file "dtime.h" . The follo...
[1 reply] : nevermind, I named my header something other than "dtime.h". Thanks an... (by bool maybe)
How to make executable type file with xcode?
 
So I made the Folowing program: #include <iostream> using namespace std; int main() { cout << "You Have 3 Guesses to guess the right number\nGuess T...
[1 reply] : and i need to fix a bug with entering a correct answer before the last... (by air penguin)
Need Help, cant get the average to work right. Thanks
 
my code pulls numbers form a txt file and displays them, i have my average number in the right spot but its not averaging, its just displaying the number 5. ...
[2 replies] Last: When it comes to displaying, that is all graphical stuff. You have to ... (by WilliamW1979)
Reducing Fractions
 
I am working on a homework assignment that is asking me to write a program that reduces fractions to the lowest form. For example 9/12 will be 3/4, 5/10 will be...
[12 replies] Last: Forget the negative numbers and just change everthing to an unsigned i... (by WilliamW1979)
Can a string be a function? Or only chars?
 
I'm trying to do this string getname(); { string name; ifstream getTheName("name.txt"); getTheName >> name; //using pointer from L23 ...
[6 replies] Last: Hi William. Thanks for the reply. Oh, I'll definetely keep that in con... (by hellohellomoon)
Passing an object as a pointer?
 
#include <iostream> #include <stdlib.h> using namespace std; class IntStack{ static const int INITIAL_SIZE = 100; int i; int st_arr ; public: ...
[3 replies] Last: Now I need to dereference the pointer, but how, and to what? How do I ... (by ZGalhardo)
Bubble/Insertion/Selection Sort
 
I made this program for school having a few problems and it's saying segment fragment fail, I'm pretty lost :( here's what i have #include <iostream> usi...
[1 reply] : I compiled your program here and it ran fine. You only had a warning. ... (by WilliamW1979)
Alphabetizing Names
 
Hello! I have come across a programming assignment in which I am struggling to complete. The problem states: "A teacher has asked all her students to line up ...
[15 replies] Last: There is a special feature when working with <fstream> when you are ou... (by WilliamW1979)
Token problems
 
I'm currently trying to learn about using Tokens in basic programs but having a tough time figuring them out. The book I'm learning from is kind of confusing me...
[3 replies] Last: Bump :> (by Trashcan42)
PlaySound not working?
 
So i've included the winmm lib inside of CODE::BLOCKS. I also set my file in this directory C:\buzz.wav its as simple as it can get. My code is this #i...
[1 reply] : Hey guys, for anyone who's interested, I've found the solution to my p... (by hellohellomoon)
Libs, DLL, APIs, etc?
 
So, I was trying to create a console game, and an experienced programmer referred to me a link that talked about how it's better to get into game programming ri...
[3 replies] Last: Wow, thank you Disch and thank you shacktar for both of your long, wel... (by hellohellomoon)
by Nexrus
case statements
 
You guys were a great help with my first problem so I thought I'd post this one as well. Its pretty obvious what I'm going for here. If I enter m then Marry w...
[5 replies] Last: Hope this helps and feel free to ask if there is something you did no... (by Nexrus)
source file name?
 
i am trying to compile my first c++ program and i am using c++ -o executable_ filename.out sourcefi lename.cc what is source file name?
[8 replies] Last: [quote=Disch]Save yourself the headaches and get an IDE. Only masochis... (by stridexr)
Functions: Prime
 
Hi I'm writing a program with two functions: int getNumberFromUser() that asks user for input and ensures the number is >2 and bool isPrime(int n) that returns ...
[4 replies] Last: This is a better function for prime evaluation: #include <cmath> boo... (by stridexr)
Safe website to download wav. sound?
 
Does anyone know a safe website to download a wav. sound? I want to practice inputting sound into my console programs. Thanks in advance!
[4 replies] Last: Oh i see. I use CODE::BLOCKS too. I'll keep that in mind. Thanks str... (by hellohellomoon)
How do I change console background color?
 
So this code #include <windows.h> SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 0); //replace the 0 with a number for the color you want w...
[5 replies] Last: Thank you Stewbond, for the answer :). And thanks guys for your input.... (by hellohellomoon)
October 2011 Pages: 1... 2223242526... 59
  Archived months: [sep2011] [nov2011]

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