hello i cannot understand whats the benefit of saying that
int x=new int rather saying
int x;
i know that new allocates memmory but please tell me the different of the above codes
Type: Posts; User: ddimit02
hello i cannot understand whats the benefit of saying that
int x=new int rather saying
int x;
i know that new allocates memmory but please tell me the different of the above codes
#include "stdafx.h"
#include <stdlib.h>
#include <stdio.h>
int _tmain(int argc, _TCHAR* argv[])
{ int i; char *pa;
pa[0]='a';
for(i=1;i<26;i++){
im speaking from linux system
i have made a c program and i wondering how can i compile it for being able to run on mac
sorry for double posting in 2 sections but i think here is the right section...
ok thank you
anyway
anyone other here can help me ?
i think im asking something normal
just a half of sentence with one simple thing
what should i send you?
the whole program?
anyway any other can help me please?
how to do it
type an example please
i have wrote a code and im wondering if its possible to define table in c
because i have made a lot of functions and its very diffucult to transfer in every function the table
i want to define it...
is any other combination for this? x = (rand() % 9000) + 1000;
or is the only way i can do it
i want to use rand function for finding random number with 4 digits how can i do that
im only knowing how to find the maximum number which is x=rand()%10000 but how can i tell it for finding minimum...
what is the different between scanf and sscanf
one different that im not sure if im correct is that with sscanf you can you "\0" to find if the string has ended?
no.. i dont know how 10110101 works
any easiest way?
im reading 2 numbers and i want to check if both numbers are powers of 2
for example 2^0=1 2^1=2 2^2=4 2^3=8 2^4 16 2^5 32 .......64 128 256....
how can i check that? in c?
if im not...
<< snipped untagged code >>
is there any good tutorial here to explain all about pointers?
wow dude it worked
thanks!!
#include <stdio.h>
float test(int a,int b)
{ return a/b;
}
int main()
{ int k,l;
k=5;
l=2;
printf("%3.2f",test(k,l));
btw my circle is smaller than the photo how can i make it the same size (same rows number)
oh god
i tried the code i typed here and is correct ..lol
anw thanks for your help dude
believe me i had 4 similar problems to solve and solve them all
but that one i cant do anything because i dont undestand anything
at least write me the half code and let me continue
i dont...
you cant give me the two for loops?
if i see the solution i think i will understand the exercise
im still unable to succeed:(
i did nothing
i just need the two for loops
how can i find the other posts because there are many threads here
can you link me to them?
hello in the univercity we have an exercise for how to print that
http://i55.tinypic.com/2dipvlk.png
the exercise says im only allowed to use two for loops
Print a 2D draw from -5 up to...