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>...
Type: Posts; User: mohsen
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>...
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...
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...
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:"
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
Hello everybody
The following program crash . I do not know? Why
Thank you
#include <stdio.h>
#include <stdarg.h>
void GetMatches ( const char * format, ... )
{
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...
Thanks guys
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);
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?...
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...
Std10093 Thank you
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;...
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 ...
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
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
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;
Thank you
But I don't understand meaning of " one past the end pointer "??
can you explaine more
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...
I change the code . I follow the code I assign just once in enter function
I confues
Thanks
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 ...
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...
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...
Really thank you anduril.:)
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...