still stumped.
#include <time.h>
char *asctime( const struct tm *ptr );
trying to use that but dont know how ;/
help please :confused:
Type: Posts; User: vege^
still stumped.
#include <time.h>
char *asctime( const struct tm *ptr );
trying to use that but dont know how ;/
help please :confused:
agh i tried both - no avail ;/
how do you manipulate the ones in time.h for them to return the date to you? i tried a couple things, got it to compile but then nothing happened :/
the boost.org...
yeah i have a class which calculates the timer for the game, what i needed was something to get the date ;/
gonna go try those that you gave me, thanks guys : ]
i've asked around and looked (peeked) in the standard library files but haven't found anything that returns the time to a program. I need this for a game of minesweeper im writing, for which i need...
ok ive tried a couple things but to no avail.
my problem is, i wanna be able to input a string and make the program scroll it from left to right on the screen, in a defined length (for if i only...
ty ty will try it when i get home ;D
hi, my question is really simple. Im working with streams and i dont know the "end of file" command for c++ (i dont even know if there is such a thing) any help would be appreciated ;D
oh and...
:eek: thx :D
Hi, I'm new to this board but Id like to share a Quake3 vid i made last week with you guys :)
http://www.xsn.net/obsoleet/files/inimical_mavens.avi
It's 137MB but it's 10:26 long. I hope you...
need help for when creating a C++ file. Ive done some programs before, but now i need to use the iostream and string #include's without the .h
thing is, it doesnt accept it when I use
#include...
ok nevermind, fixed it :)
i knew it had to be something stupid, i just initialized the counter to 0 after the cout :D
WOOT me so happy - proyect is done :D D:D :D: D:D:D
thx to all 8)
so you want the proggy to output every value in the array or what? for that i suggest doing
int array[5];
for (int i=0;i<5;i++)
cout << w[i];
hope i helped some
check this piece of code out:
for(int u=1;u<=5;u++){
inta=(a+(u-1)*f);
intb=a+u*f;
for(int r=0;r<n;r++)
if(w[r]>=inta && w[r]<=intb)
count++;
yeah i kinda realized it just now :/
this is what i did
f=floor(d*100)/100.0;
soz, but thx :)
i am teh dumb :/
if i have:
a=minValue(w,n)-.01;
b=maxValue(w,n)+.01;
d=(b-a)/5;
how then would i round d to 2 decimal places using what you gave me? sorry im bothering so much :/
the round function im looking for rounds a number to 2 decimal places
the professor gave us this example:
round(x*100)/100
but when i try to make a function like this
int round(int x){
...
ah thx it worked :D :D
you helped 8)
in the declaration (before main) or in the function itself?
yeah, im kinda stuck again ;/ need to sort an array in increasing order, and this is what i got so far (functions to sort arrays):
void swap(int x, int y){
int t;
t=x;
x=y;
y=t;
}
oh i almost forgot: where's the round() function :(
i mean, what #include do i have to do in order to use it :/
#include <iostream.h>
#include <math.h>
int main() {
int n, *w;
yeah i took it out to show the code: i didnt want peeps to mock me for my n00b skillz ;/
whoa
you helped :D
using MS Visual c++
this is what i got so far:
#include <iostream.h>
#include <math.h>
int main() {
while you're at it ( :) )
how can i, for example, define an array with an user-defined size?
as in, i need a proggy in which the user inputs the number of "digits" in the array, and then defines...