Search:

Type: Posts; User: mohsen

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,274

    Output does not print on text file fputc();

    Hello everyone
    In this program I can not print the typed value in the file
    The file creation well done but it is an empty file
    I press Ctrl +z for EOF
    Thank you in advance


    #include<stdio.h>...
  2. Replies
    3
    Views
    816

    Thank you anduril462 But one more q Can you...

    Thank you anduril462
    But one more q

    Can you tell me what is the meaning of this line (when I want to compile the C program in terminal I should use this Line
    g++ -Wall -W -Werror ANSI.c -o...
  3. Replies
    3
    Views
    816

    MACRO standard of compiler

    Hello everybody
    Is there any code I can use to determine my compiler version and which Standard
    It uses?
    I know the following code determine that my compiler followed ANSI
    But how about a...
  4. Thread: crash unknown

    by mohsen
    Replies
    6
    Views
    1,059

    Thank you but it still crashed My compiler is...

    Thank you
    but it still crashed
    My compiler is
    Visual studio 2012

    Crack happen after the printing the message "Please enter a number and a word:"
  5. Thread: crash unknown

    by mohsen
    Replies
    6
    Views
    1,059

    My compiler is Visual studio 2012 Crack...

    My compiler is
    Visual studio 2012

    Crack happen after the printing the message "Please enter a number and a word:"

    Thank you again guys
    I hate Microsoft
  6. Thread: crash unknown

    by mohsen
    Replies
    6
    Views
    1,059

    crash unknown

    Hello everybody
    The following program crash . I do not know? Why
    Thank you


    #include <stdio.h>
    #include <stdarg.h>

    void GetMatches ( const char * format, ... )
    {
  7. Replies
    1
    Views
    1,017

    input does not work properly

    Hello guys
    In the following code last input doesn't work
    And the next line output prints some negative garbage value
    why :confused:
    thank you


    // Test.cpp : Defines the entry point for the...
  8. Replies
    4
    Views
    1,154

    Thanks guys

    Thanks guys
  9. Replies
    4
    Views
    1,154

    Thanks a lot salem How I should use fgets() in...

    Thanks a lot salem
    How I should use fgets() in this program
    I try to use this but the program crashed.


    fgets(city,3);
    puts(city);
  10. Replies
    4
    Views
    1,154

    gets() function doesn't execute

    Hello everyone
    In the following code gets () function does not work and the program comes out without executing that.
    OF course if I write the gets () function in the first line
    It works. Why?...
  11. Replies
    8
    Views
    2,523

    Thanks a lot anduril462 But one more question Do...

    Thanks a lot anduril462
    But one more question Do you Know any book which explains completely undefined behavior station?
    I search all my c\c++ books , I couldn't find anything about that.
    Thanks...
  12. Replies
    8
    Views
    2,523

    Std10093 Thank you

    Std10093 Thank you
  13. Replies
    8
    Views
    2,523

    Program come out with out proper execution

    Hello everyone the following code doesn't execute properly
    ( After the second entry the program comes out)!!


    #include<stdio.h>
    void linkfloat();
    int main(){
    struct book {
    char name;...
  14. Replies
    1
    Views
    1,152

    Character pointer and integer pointer

    Hello everyone
    Here there are two codes one of them work and in others it doesn't work
    Can tell me why? (I know the rule, but I want to know the reason)



    char *ChrP="Hello";
    int ...
  15. Replies
    10
    Views
    2,261

    Thank you In pointer we do not allow to do...

    Thank you
    In pointer we do not allow to do this because maybe by next execution the program access to the memory which used by other programs
    Thanks a lot
  16. Replies
    10
    Views
    2,261

    But the program will crash only for number one...

    But the program will crash only for number one j=j+1;
    For others number it works j=j+12; or j=j+any number
    There is nothing wrong about the compiler. it is about runtime crash
  17. Replies
    10
    Views
    2,261

    one more issue

    In the following code I add 2 ,to the pointer
    then program did not crash.why not?
    line 9


    #include<stdio.h>
    int main()
    {
    int i=1;
    int *j;
  18. Replies
    10
    Views
    2,261

    Thank you But I don't understand meaning of " ...

    Thank you
    But I don't understand meaning of " one past the end pointer "??
    can you explaine more
  19. Replies
    10
    Views
    2,261

    crash program pointer

    Hello everybody
    I try these the following code
    It compiles without any error
    But in runtime the program will crash
    note:os win7 64 CodeBlocks


    #include<stdio.h>
    #include<stdlib.h>
    int...
  20. Replies
    11
    Views
    3,251

    I change the code . I follow the code I assign ...

    I change the code . I follow the code I assign just once in enter function
    I confues
    Thanks
  21. Replies
    11
    Views
    3,251

    Hi there is no compile error but in execution...

    Hi there is no compile error but in execution crash happened I use also string function after finding record in print function the program stop and close (crash)
    There is some thing wrong in ...
  22. Replies
    11
    Views
    3,251

    I fix some issue but my problem is still re mine...

    I fix some issue but my problem is still re mine
    After searching the print function does not show the value of "course"
    The new code is


    #include "windows.h"
    #include "iostream"
    #include...
  23. Replies
    11
    Views
    3,251

    print function does not work properly

    Hi
    This is my code for submitting students
    but when i use search function the course member is empty


    #include "windows.h"
    #include "iostream"
    #include <io.h>
    #include <sstream>
    #include...
  24. Replies
    5
    Views
    1,750

    Really thank you anduril.:)

    Really thank you anduril.:)
  25. Replies
    5
    Views
    1,750

    hi if use scanf & gets in both sutation it s...

    hi
    if use scanf & gets in both sutation it s worked but the last gets() do not take a new string
    the last puts() show the older ptr (ptr=a). give three different string to the program but...
Results 1 to 25 of 34
Page 1 of 2 1 2