const ostream& Diver:: list(ostream& out_tr) const
{
cout<<"I am the trouble";
cout<<id_;
cout<<"Or me";
out_tr<<name_<<" "<<country_<<" ";
cout<<"The hole is here";...
Type: Posts; User: xephyr
const ostream& Diver:: list(ostream& out_tr) const
{
cout<<"I am the trouble";
cout<<id_;
cout<<"Or me";
out_tr<<name_<<" "<<country_<<" ";
cout<<"The hole is here";...
This is the function causing trouble,
it seems to overwrite some part of the memory...
#include <iostream>
#include <string>
using namespace std;
int _replace (string to_place, string...
I want to output c[0] and c[1] in int , should I use type casting ( and how ? ) or atoi ( it requires casting since the proto is const char * ?)
#include <iostream>
using namespace std;...
thx for the tips, pal
Agree with the rest and thanks for those :)
Some questions>>
how do you express CR in string if not '\n'
what should I use if not gets()
OH, the loop, although not gentle, saves 0.1 sec...
I tried changing "w" to "w+" , it doesn't work.
The bolded part doesn't seem to function
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define STRLENGTH 80
int main (int argc, char *argv[])
{
got access violation running this code, and the IDE jumps into a bunch of assembly lines
#include <stdio.h>
#include <string.h>
#include <ctype.h>
char dic[][40] = {
"atlas", "a...
Well, the purpose of this code is to test the maximum number of times a function can recur on my system. Is there any other ways to do so?
Upon execution, the cmd window pops up and then flashes off. I don't understand why this happen even after I put in for loops with no limiting condition :confused:
#include <stdio.h>
int...
#include <stdio.h>
int factorial(int n);
int main()
{
factorial(2);
for(;;);
return 0;
}
int factorial (int n)
got access violation when running in VC++ 6
#include<stdio.h>
void p(int n){
if(n > 0){
p(n - 2);