General C++ Programming - October 2013 (Page 17)

Having an issue with program.
 
So the question for the program is: Make a program that opens "random.txt" and have it pick the largest number, the smallest number, give the amount of number...
[3 replies] Last: I can't understand what kind of a retarded compiler allows you to def... (by MikeyBoy)
by Q69
Terminating a c++ program with text files
 
Good day! I've written a program that writes into a text file and reads from the same file. When I run it and put the required content of the file, I don't k...
[4 replies] Last: Hi, Apologies for the late response. Thank you very much for your h... (by Q69)
Polynomial graph
 
Hey! I'm trying to come up with a code that asks the user to enter the values of the coefficients a,b,c,d of the polynomial function a*x*x*x+b*x*x+c*x+d and di...
[4 replies] Last: I can't seem to be able to show the graph properly, it seems that I'... (by MikeyBoy)
by IOSDEZ
Class safeArrayType print function not working when called. Need help!
 
I've created a function where you can choose any bounds for an array based list (positive or negative, as long as the first position is smaller than the last po...
[1 reply] : so it's solved? (by coder777)
Mac and PC
 
I wrote this program in class today, a simple paper, rock, scissors game. When I compiled it and ran it in class everything worked. I tried compiling on my Mac ...
[2 replies] Last: I just compiled this using clang, which is what Xcode uses and I'm get... (by agt)
how to display this?
 
so im building this app, but im completely new to sfml (its 1.6 btw; dont ask. i am required to use it) and am having trouble with the tutorial. heres my code.....
[10 replies] Last: damn oh well. ill just make it window based then (by closed account Dy7SLyTq)
by tommyo
Find all Prime numbers in a range
 
Im trying to create a program that lists all prime numbers within a range of two number. Can someone please let me know why the below program isn't working? ...
[3 replies] Last: But I think your code does not work properly. You need to implement a ... (by CroCo)
SFML 2.0 restrict screen scrolling
 
I have screen scrolling up and running but it keeps going after the background finishes. how do you fix that?
[4 replies] Last: @Cronnoc: To scroll in SFML, you have to give SFML a Vector2f contain... (by Disch)
Video Game Scores
 
I'm pretty new to c++ and yes this is an assignment but don't worry I am not asking you to do it for me. I just need help figuring out a few things. I was taske...
[10 replies] Last: Cool thanks for everything guys you were a big help :) (by Opjeezzeey)
Float/Double to String Conversion Problem!!
 
I want a code that can convert floating/double value into string/char array(char arr ) and also it can be run on Boreland C++ 5.02 Here I've a code but it do...
[5 replies] Last: http://www.cplusplus.com/reference/cstdio/sprintf/ http://www.cplusplu... (by tntxtnt)
by Ace93
Template errors?
 
My load function isnt working. I've tested it and returned it as an int and it worked but when i tried to compile when i changed it to a template i started gett...
[1 reply] : The diagnostic is quite clear about what is wrong, isn't it? candidat... (by JLBorges)
please help
 
#include <cassert> #include <iostream> #include <string> #include <cstdlib> #include <cstring> using namespace std; void get(const string& askfor, s...
[3 replies] Last: You're very welcome, elhamalz (by whitenite1)
by tommyo
Determining if a Float is odd/even
 
I need help determining if a value entered in loop is an odd or even number. Also, the value can't be int because it may be a decimal value(therefore i cant use...
[1 reply] : According to Wikipedia, parity (being even or odd) is a property of an... (by Zhuge)
Problems with Dynamic array problem
 
This part was written for me and for some crazy reason it won't work, and I have no clue why not #include<stdio.h> #include<stdlib.h> //array_accommodation //l...
[2 replies] Last: Thank you so much for answering my question, sorry about the format I'... (by aloosha)
Need help with struc coding
 
I need help with this piece. I have not learned enough of "data structure?", if that's whats it's called. I manage to get some of it done with some help from my...
[14 replies] Last: It looks like this is far as this goes i guess. I really appreciate y... (by closed account ETA9216C)
Calculate Tension in Cables
 
Honestly I am yelling for help. I am really lost and frustrated. I just don't understand C++. Determine the Tension of each of strings. Website : http...
[no replies]
Newton–Raphson method
 
hi guys.I have a question.I created a program but this program execute for some input files but this program does not execute another input files. for example ...
[no replies]
Dijkstra's algorithim
 
I have no clue how to write dijkstra's algorithim in C++. Need help understanding it. Help someone.
[no replies]
Problem in multifile project
 
I am working on a multifile project, I used STL, SFML, Box2D. and planning to use boost... A few days ago I encounter a problem that shouldn't be there b2Bod...
[1 reply] : ¿ http://www.parashift.com/c++-faq/static-init-order.html ? (by ne555)
SFML install help
 
I used the tutorial on the sfml website for installing sfml on code::blocks on my 4.9.9.2 dev-c++. I followed the instructions changing it up by not linking dyn...
[6 replies] Last: Oh sorry. Now I get it. (by closed account NUj6URfi)
October 2013 Pages: 1... 1516171819... 46
  Archived months: [sep2013] [nov2013]

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