Search Results

Showing results 1 to 6 of 6
Search took 0.01 seconds.
Search: Posts Made By: vijayan121 ; Forum: C and child forums
Forum: C May 16th, 2008
Replies: 8
Views: 1,625
Posted By vijayan121
> i try to avoid copying anything than 2 pointers...
swapping pointers is easy; swap pointers to arrays just like you swap any other pointers.
#include <stdio.h>

void swap( int rows, int cols,...
Forum: C Oct 9th, 2007
Replies: 18
Views: 4,245
Posted By vijayan121
>> what function which is similar to stat that asks for a FILE* fildes rather than int fildes?
the function int fileno(FILE *stream); is part of both posix and single unix specifications....
Forum: C May 8th, 2007
Replies: 2
Views: 1,127
Posted By vijayan121
get to the command line terminal, cd to the directory and type
copy /A *.txt all.txt
you will get one big text file. i'm not sure about microsoft (or any other) word, but it should be possible to...
Forum: C May 6th, 2007
Replies: 23
Views: 3,372
Posted By vijayan121
ok, jerry. here is an implementation in C++; i have written it in C++ because a. i find it easier to explain bit-wise operations in code rather than in words. b. writing it in C would be me doing...
Forum: C Apr 29th, 2007
Replies: 17
Views: 17,219
Posted By vijayan121
rand() could return a large value (RAND_MAX for instance); your program would then loop infinitely. you will have to do something like
if the value of ( RAND_MAX - largest_so_far ) is less than...
Forum: C Apr 7th, 2007
Replies: 21
Views: 2,785
Posted By vijayan121
#include<stdio.h>

int value_digits( int a, int b, int c ) { return a*100 + b*10 + c ; }
int value_sum_power( int a, int b, int c ) { return a*a*a + b*b*b + c*c*c ; }

int main()
{
for( int...
Showing results 1 to 6 of 6

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC