Is possible to make a function with 3 arguments, but one of them being optional? like this:
string stringsum(string s1, strings2, strings3){
return (s1+s2+s3);
}
so if i use stringsum("I...
Type: Posts; User: Probose
Is possible to make a function with 3 arguments, but one of them being optional? like this:
string stringsum(string s1, strings2, strings3){
return (s1+s2+s3);
}
so if i use stringsum("I...
Yes, i tought about it when i went to sleep. I'll try it right now :D
but those functions just add more chars, they cant remove the "*"
I know that is not a good idea mix both tipes, its because im working with some win32api functions: FindFirstFile, FindNextFile, FindClose
The code is very big and confusing, because its not done
but here is the code snippet
char * pch;
pch=strrchr(DirSpec,'*');
memmove (pch-DirSpec+1, arquivos[i].nome.c_str(),...
Ok... lets say that we have a char string that hold a directory, and its leght depends on user input (C:\aaa, C:\bbbb, etc)
Now i must add a "\*" in the end of that string, then replace this *...
K, i got it risby =] Thanks
And sorry for posting in the wrong section.
Cya
Hi guys... im trying to understand some win32api functions and i saw this code in msdn page:
#include <windows.h>
#include <stdio.h>
#include <strsafe.h>
#include <malloc.h>
#define...
Hello c++ people!
Well... Have you guys ever seen when you right click on a folder and see it proprieties?
I want to make a program that will check for the folders in a root (for example: folder 1,...
Well. I Dont understand how the code count how much of each letter we have in the examined text file =]
What you mean by ident?
Hi! I Downloaded and modified this opensource.
It basically, read a txt file and tell how much characters it has and it also tell how much of each letter (from A to Z) it has.
But... I Cant...
Guys, see that code:
int main ()
{
int x;
int resultado = 0;
cout << "Coloque um numero a ser fatorado e descubra se ele eh primo: " << endl <<"(Quanto maior o numero, mais demorado o...
Ok im trying to hook that function
void __stdcall ZCharacterManagerFindHook(MUID uid)
{
}
I want to know how do i store the arguments value to use it latter.
Thanks :)
if i have that function defined:
typedef void (__cdecl* RequestSuicide_func)(MUID*uid);
RequestSuicide_func RequestSuicide = (RequestSuicide_func)ADDR_RequestSuicide;
How do i call it?
Yeah thanks too, i discovered before you post but thanks ^^
Ok, i want that when someone say /teleport 045 120 039, store the 3 values (x y and z) in a float[3]. How i do that? thanks ^^