im making a prime number generator and i need to test to see if a float variable has numbers after a decimal, how would i do this?
Type: Posts; User: PHP
im making a prime number generator and i need to test to see if a float variable has numbers after a decimal, how would i do this?
and i dereference it how? :) sorry im a bit new to this lingo hehe
if i feed pointers to a function and add 1 to them for example, does it change the actual value of the variable the pointer is pointing to? :) thanx
ok, i tried searching for htis with no luck, im wondering cause u use pointers to access data for functions faster, so how do i feed a pointer to a function like so:
int function(pointer, pointer,...
its right in dev-cpp/include/c++/iostream.h right where it should be! [i think]
ok, i am using dev cpp the newest version witn mingw 3.2 and it says id ont have like any libraries (no iostream, iomanip, climits, anything).. any ideas how to fix this?
char[20] pname;
cin >> pname;
now, how can i get it to make sure that they havent entered any spaces so the program doesnt crash down? htanx again everyone for answering all my questions!
hm.. it says coord is undefined, any ideas or something i should have also done?
ok, heres the basic of what i have so far:
int right(int& x) {return x++;}
thats a refrence to x, and if they move right add one to x, but now how do i get it to restate that x is now the...
i use dev c++ 4.9.7 mingw 3.2 i beleive, and thanks for always helping prelude :D
what library do i need to use a function like setxy(x,y) to align my text, or are there any other funcions to do that out there as well?
ok, i have the player move with the virtual keys, and i want it to keep their location, it would be in an (x, y) grid, so i would have the x and y variable. My question is, while in the loop of the...
thanx prelude, thats exactly what i need :)
how can i do it, like how can i have it so it knows if have pushed like the right arrow instead of having them type r and enter it...
i have a 1000 page introduction to c++ thing and ive read over 600, done classes, starting polymorphism, all the loops, varialbles, functions, everything and i cant think of anything to make, so got...
do i only need sdl.dll or are there more files i need to download?
can anyone point me in the direction of some basic tutorials and how to include it in my programs etc? Ty ;)
ok, what all do i have to download, i had dev cpp, allegro and all the mingw installed and it worked but then iostream didnt work so i unistalled and deleated and now im trying to reinstall and...
ok, i uninstalled the dev-cpp i was running and when i go there there is version 5 but its beta and it says iostream and iostream.h both give me a ton of errors but version 4 looks not atall like...
im making a text rpg, but i want it to be more open and i want there to be somewhat villages, i would have them use the arrow keys (up, down, left, right) for movement and if they go left or right it...
how can i set it up wrong, i just clicked next, next, next and poof done
hehe, what a pitiful compiler if it cant use the most basic of includes......
dev c++, im using Sleep(50) to make it a typing effect, if you have any other ideas, ill use it instead :)
/* Quest Open RPG
* Ryan Oldenburg
* Completion: 15%
* Version 1.0
*/
#include <windows.h>
#include <iostream>
#include <string>
#include "class.h"
well every tutorial always uses c, maybe i hsould alooked more lol