Search:

Type: Posts; User: xephyr

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    955

    ostream& outrage !!!

    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";...
  2. Replies
    2
    Views
    874

    String overwriting memory?

    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...
  3. Replies
    4
    Views
    1,453

    Help with outputing char in int

    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;...
  4. Replies
    11
    Views
    2,421

    thx for the tips, pal

    thx for the tips, pal
  5. Replies
    11
    Views
    2,421

    Agree with the rest and thanks for those :) Some...

    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...
  6. Replies
    11
    Views
    2,421

    I tried changing "w" to "w+" , it doesn't work.

    I tried changing "w" to "w+" , it doesn't work.
  7. Replies
    11
    Views
    2,421

    unexpected result, no display of input string

    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[])
    {
  8. Replies
    4
    Views
    2,008

    Access Violation under VC++ 6.0

    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...
  9. Replies
    8
    Views
    1,223

    Well, the purpose of this code is to test the...

    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?
  10. Replies
    8
    Views
    1,223

    Unexpect outcome executing program in Dev-C

    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...
  11. Wrong code,sorry, Look at this

    #include <stdio.h>
    int factorial(int n);
    int main()
    {

    factorial(2);
    for(;;);
    return 0;
    }
    int factorial (int n)
  12. Recursive factorial, what is wrong with my code?

    got access violation when running in VC++ 6


    #include<stdio.h>


    void p(int n){

    if(n > 0){
    p(n - 2);
Results 1 to 12 of 13