i always wanted to know - does
for(int i = 0;i < 3;i++){
//code
}
does the same as:
Type: Posts; User: gftmc
i always wanted to know - does
for(int i = 0;i < 3;i++){
//code
}
does the same as:
it does more than that. it prepares the code for proccessing - it includes comment striping, but it does more. for example, every line that starts with a # is a preprocessor directive.
I understand. thanks.
I see what you mean. anyway, is there's any way to define the last character or to detect the end of a dynamicly allocated array?
this is the full code. it started as a small test, when i realised it did'nt work. it compiles, but gives unexpected results: 3 and 1. i hope i rest my case this time/
i have been working on a certain program the other day when i noticed a wierd problem: strlen doesnt work with new, so
char * b;
char * c;
b = new char (12);
c = new char (12);...
that doesn't seem to make any sense. you dont need it, as much as i understand, it won't even compile. anyway, usually rand() is used with modulus (%) and the highest number you will accept+1. then...
if you know how to read MP3 tag, and how to search for files in directories, what use can you possibly have for a DB? (assuming that DB is a DataBase).
ok, you didnt understood me. i like to reproduce functions, only because i feel better when using them. i use stl Classes always. i dont intend to make use of them in a large project. (something with...
first, it is a good practice. second, im more content to use something i prduced. in small functions like this, it is easy.
well, the heap is just for practice... and i prefer not to use functionality i can produce myself. anyway, i just wanted to know if you have any idea on how to improve it.
this is a function imade the other day. i would like to know what do you think about it, and if you have any ideas how to improve it.
#include <iostream>
#include <string>
std::string...
thanks for your posts. i think ill simply use void* and overloading. thanks.
im pretty new to this kind of C++ and i was wondering if there is a way to determine what is the type of a pointer. say i got a void* that points to an int. how can i detect that? or pass an int* to...
what about _unlink? or is it only for borland? btw you will need fstream for that...
of course this is possible, but then where is the chalenge? anyway, ill try a union, never realy worked with them before
this is just a part of my code. i wanted to post a small, important code, not all the I/O procedure. anyway, thanks for the reply ill try it.
i've got a question... i want to make a REAL small scripting language by using a void * vector. i would like to know if this code is safe (causing memory leaks maybe?) and if there is any...
isnt there is the gl thing?
global bool keys[256]
LRESULT WINAPI MsgProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam )
{
switch( msg )
{
case WM_DESTROY:
...
im not sure but wont
#include<iostream>
int main(int argc,char *argv[]){
if(argc !=2){
cout<<argv[0]<<endl;
}
}
You can store the passwords binaricly... this will prevent normal people from reading them and will be easier to use
then big people with black suits and dark cars will knock on your door. OR you will use default.
If you realy have no idea you can put each digit in a one array cell and then make a loop wich will output the array from the top to the bottom.
It doesn't seem that hard.... OGL and some classes(each program)... the rest seem quite simple..
I create programs with no real meaning - a login program to somewhere that isnt exists (to practice files I/O) and all kind of "Hello World" in difrent ways - open gl, normal window, files etc....