Hey everyone i have been looking into writing windows services and found a few examples around the net, but i found an article i really am interested in looking at the code for but i cannot find it....
Type: Posts; User: Charmy
Hey everyone i have been looking into writing windows services and found a few examples around the net, but i found an article i really am interested in looking at the code for but i cannot find it....
the FA option gives you a crazy amount of output.
ex.
int strlen(const char* text)
{
const char* s = text;
for ( ; *s; ++s )
You are correct here.
As for the fseek, yea it is a C function but there is absolutly nothing wrong with using File pointers and C functions in a C++ program. the file rotuines are defined in...
I have a much better suggestion for you.
Thinking in C++ By Bruce Eckel
you can get them for free online here at his website.
http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html
Or get...
I appricate the response i will look into both of those and see if i can find somthing.
As for the sound device, the problem with that approach is the way in which i wish to apply the technology....
;) I knew you were going to ask that.
The rand function is dependent on a random "seed" which to make it simple, dictates how the numbers are generated.
add the following to your code.
...
#include <iostream>
#include <cstdlib>
#include <string>
using namespace std;
string Command;
struct User
{
Re read my post =)
out.write((char *) &vectout, sizeof(vector) * 3);
Remove & before vectout. same with vectin.
You are creating these dynamically which means that the containers are pointers. Thus using the &...
Not always, if you are attempting to make an actually array of characters and not a string. then you need to leave off a null termination character "\0" otherwise it will be treated as a string.
Could you be more specific on what exactly we are looking for?
Compile wise
cout<<"You took out ">> UATK <<" points.\n"; }
should be
Hey everyone, i just need some advice here. After 3 hours on google I have declared myself a failure becuase i am unable to find what it is i am looking for. So i am hoping someone here can point me...
In my opinion the All in one books published by thomson are just ok... I own all of them and i ahve to say they help you explain the very basics of openGL and directx, but you most certainly won't be...
You need to put the struct def above the functions that use it. Also you can simplify your struct defintion and typedef into a single statement
typedef struct employeeRecord
{
char...
Actually unsigned characters and signed characters have a big difference. Most modern compilers (VC++ for example) have the /j option set in the compiler, which forces all chars to be set to...
well you can easily get that on Odd numbers.
return(value<<31)>>31;
This will return 0 on even and -1 on odd, but i need 0 on 0 and 1 on all all non zero numbers.
Thanks for the links i will...
He is indeed correct the character '\0' is called the null termination character, (ASCII code 0) the \ means the next character in line (in this case 0) is an escape character type, not the actual...
Thanks for all the respones, - is a vaild operator sorry i forgot it. As for the code posted, it doesn't work for me either, i get a constant -2134252232 or somthing. Any all good thoughts up to this...
I am just lost on this one, its got me baffled.
A function is passed a Signed 32 bit integer.
This function must return EXACTLY 1 or 0 (i.e. it returns int not bool)
You are allowed to use the...
Hey I am having an issue storing string in binary format than reading them back.
here is the code.
#include <iostream>
#include <conio.h>
#include <vector>
#include <string.h>
BGI (Borland Graphics Interface) is used to make images in 16 bit (usually dos) out of text. Alot of old dos programs that have pixel art use some of these. But the error means your program is...
I know for a fact that one call is clrscr(); but i have only ever gotten it to work with the borland compiler (On windows that is). Whenever i use MSVC i use system("cls"); as well... but clrscr()...
return simply implies that you wish for control to be returned to the caller of that function.
a void simply means that the caller shouldn't expect any value to come out of the function, but until...
Convenient if you know all the internal function calls, and easier only if you need the features it comes with.
Any formal Programming training you get on C/C++ almost never introduces std::string...
Cin has very lazy input validation, when you use cin and input a char it doesn't automatically convert it to an int for you, or god forbid you type in a string.
There are several methods you can...