Recently I started naming my modules like this:
1. Class Module:
Foo\Foo.class.h:
#ifndef FOO_FOO_CLASS_H
Type: Posts; User: borko_b
Recently I started naming my modules like this:
1. Class Module:
Foo\Foo.class.h:
#ifndef FOO_FOO_CLASS_H
Not really ...
The ASCII is one byte char...
but the UNICODE char is two bytes:
sizeof(wchar) == 2
this is Bad...
look at the string class to see how its done ...
it should be like this :
//file: SavingsAccount.h
class SavingAccount
{
You forgot to "use" the standart namespace ...
//...
#include<string>
using namespace std;
//...
Just look here :)
char Calcgrades(char lgrade,char ngrade); // <- this shouldn't be here! :) :)
{
if (ngrade >= 90)
{ lgrade = A;
}
else if (ngrade >= 80 and < 90)
try using : Acool_cStRiNg_loocA :)
One last thingy to add :) :
use :
#include<iostream>
instead of:
You obviously forgot to implement a standart constructor for your class... (the code you posted isn't correct, because there is no declaration of cSTRING::cSTRING(void) ...)
so just include...
First of all look at this:
...
DerivedClass test();
...
test[i] = 12;
...
int offset;
sometype mystruct, *ptr;
char buff[32768];
memcpy(&buff[offset], &mystruct, sizeof(sometype ));
or
Come on guys!!
there must be someone fluent both in ASM and C!!
help pls!
Hi there...
heres my problem:
i wrote a win32 dll and i ported it to ASM
it got realy faster and alot smaller
BUT
Most probably Notepad is written in C..
with the Win32API...
... The functions in Win32API are called with standart C call
No.
Do you believe that an asteroid is going to smash us?
try this one...
int extract(char *src,char *dest,int dest_sz) {
char *psrc =src;
char *pdst = dest;
while(*psrc && *psrc!='(') {
psrc++;
}
if(!*psrc) return -1; /*ERROR! '(' not...
int flip_str_to_str(char *in,char *out) {
char *pin,*pout;
int len = strlen(in) ;
pin = in ;
pout = out+len;
*(pout+1) = '\0';
while( *pin) {
*pout =...
:) :)
Calm down you all ! :)
He is going to kill himself now! :)
uhm!
first
isn't that t-h-eor-et-ical question? :)
second
What exactly do you mean???
by:
"lets say that i want to write a operating system and i know what to do when i wrote it how will i...
% is used for getting the remainder of a division...
5 / 2 = 2 <-quotient
5% 2 = 1 <- remainder 5 = 2*2 +1
10/3 = 3
10%3=1 -> 10 = 3*3 +1
64/8=8
64%8=0 -> 64= 8*8 + 0
Don't use :
float f = 0;
use :
char *arrayOfStrings[256] =
{
"String number 1",
"String number 2",
"String number 3",
"String number 4",
"String number 5",
"String number 6"
};
OOPS!!
...
while(pstr!=) {
...
should be:
int find_firstlast(char *str,char chr,int *first,int *last){
char *pstr = str;
int len = strlen(str);
*first = -1; *last = -1; /*invalid */
/*find first*/
while(*pstr){
...
unfortunately i do....
i tried a few times to quit... (3 times)
but no success...
I started when i was teen , and i regret it...
>>...I want to write a program that can print only the vowels ...
!!!!
Did you tried any of the code posted here???
Your code didn't change to much