Search Results

Showing results 1 to 40 of 41
Search took 0.01 seconds.
Search: Posts Made By: frrossk ; Forum: C and child forums
Forum: C Jun 23rd, 2005
Replies: 1
Views: 2,671
Posted By frrossk
Use spawnXX or execXX functions.
Forum: C Feb 22nd, 2005
Replies: 2
Views: 5,650
Posted By frrossk
Google (www.google.com) for image file formats and image processing; it'a a lot of theory to study to get where you want...
Forum: C Jan 20th, 2005
Replies: 2
Views: 2,265
Posted By frrossk
Read the Announcement (http://www.daniweb.com/techtalkforums/announcement.php?f=8&announcementid=2)
Forum: C Jan 11th, 2005
Replies: 3
Views: 12,012
Posted By frrossk
No, probably it wouldn't...If you have any problem, why don't you post here?
Forum: C Dec 21st, 2004
Replies: 5
Views: 1,946
Posted By frrossk
You declared the head and tail variables inside of main function; they are not available for the f1 function.
When you declare a function, it should work like this:

int f1 (int a, int b)
{
int...
Forum: C Dec 21st, 2004
Replies: 5
Views: 1,946
Posted By frrossk
You declared the function f1 as

void f1 ();

but the definition specify that the function receive one parameter:

void f1 (int i)
{
...
}
Forum: C Dec 16th, 2004
Replies: 16
Views: 12,609
Posted By frrossk
First, when you post some code, use code tags:
http://www.daniweb.com/techtalkforums/announcement.php?f=8&announcementid=3

2nd, why not use a newer compiler?

3rd, here is the code posted...
Forum: C Dec 15th, 2004
Replies: 3
Views: 3,869
Posted By frrossk
int rename (const char *oldname, const char *newname)
The rename function renames the file oldname to newname. The file formerly accessible under the name oldname is afterwards accessible as...
Forum: C Dec 8th, 2004
Replies: 13
Views: 3,644
Posted By frrossk
Try DevC++ - http://www.bloodshed.net/dev/devcpp.html
Forum: C Dec 8th, 2004
Replies: 3
Views: 1,633
Posted By frrossk
A month ago you posted the same question (http://www.daniweb.com/techtalkforums/thread13807-missy.html) Didn't you try to do anything in this time?
Forum: C Dec 6th, 2004
Replies: 1
Views: 1,711
Posted By frrossk
First, read this:
http://www.daniweb.com/techtalkforums/announcement.php?f=8&announcementid=2
And, 2nd, try to explain clearly what you want (honestly, I didn't undestant anything...)
Forum: C Nov 30th, 2004
Replies: 8
Views: 2,499
Posted By frrossk
char *pt;

pt = strstr (input_string, "the");
if (pt != NULL)
printf ("Found \"the\" in the string");
else
printf ("Not found \"the\" in the string");

(just an example)
Forum: C Nov 29th, 2004
Replies: 4
Views: 6,848
Posted By frrossk
char * strcasestr (const char *haystack, const char *needle)

This is like strstr, except that it ignores case in searching for the substring :lol:
Forum: C Nov 29th, 2004
Replies: 8
Views: 2,499
Posted By frrossk
char * strstr (const char *haystack, const char *needle)
It searches haystack for a substring needle rather than just a single character. It returns a pointer into the string haystack that is the...
Forum: C Nov 24th, 2004
Replies: 8
Views: 16,381
Posted By frrossk
I think the correct relations are more like
r1 = iorig + (i - iorig)sin(angle)
c1 = jorig + (j - jorig)cos(angle)
where iorig, jorig are th ecoordinates of the rotation center.
(but I'm not too...
Forum: C Nov 22nd, 2004
Replies: 8
Views: 16,381
Posted By frrossk
>>does the address of the pixel vary or the value of the pixel vary.
Depends how you see this matter: let's assume the rotation center is the center of the image. So, rotating the image means the...
Forum: C Nov 22nd, 2004
Replies: 3
Views: 2,580
Posted By frrossk
No, we can't...I don't think somebody will do your homework... Try to do it yourself, and, if you get into troubles, come back for help.
Forum: C Nov 18th, 2004
Replies: 4
Views: 2,446
Posted By frrossk
int x
int y
This means the compiler will process a division between 2 ints, and the result will be an int (truncated, of course).
You have to typecast those 2 operators x and y
output= ((float)...
Forum: C Nov 18th, 2004
Replies: 4
Views: 2,446
Posted By frrossk
It would be better if you would post some code...But I assume you declared the result of that 7/4 division as an int, and it should be float...
Forum: C Nov 18th, 2004
Replies: 20
Views: 16,753
Posted By frrossk
You're right, but you have to know exactly how long is the file header, how the info is stored in the file, the encoding algorithm etc...
Forum: C Nov 17th, 2004
Replies: 1
Views: 2,278
Posted By frrossk
It's not a new subject...
http://www.daniweb.com/techtalkforums/thread13913.html
And, if you are patient enough, you can find much more information about this on the internet.
Forum: C Nov 12th, 2004
Replies: 17
Views: 5,108
Posted By frrossk
I assume #include <stdio.h>


int main (void)
{

int a_real,a_imaginary,j;
int b_real,b_imaginary;
int complex_number;
Forum: C Nov 8th, 2004
Replies: 8
Views: 2,256
Posted By frrossk
Thx for correction, Narue...It looks like sometimes my brain takes a break...
Forum: C Nov 5th, 2004
Replies: 8
Views: 2,256
Posted By frrossk
Just include <stdlib.h> into your .c file, then, instead "clrscr()", write "system(cls)". This is a call to a system function, that clears the screen.
Forum: C Nov 5th, 2004
Replies: 8
Views: 2,256
Posted By frrossk
"system" function is available in C, in stdlib.h. So, I guess you can use it without any restrictions.
Forum: C Nov 5th, 2004
Replies: 1
Views: 2,011
Posted By frrossk
It would be better if you will post your code...
Forum: C Nov 5th, 2004
Replies: 3
Views: 2,078
Posted By frrossk
Try use "%10.2lf" specificator format (a suggestion, you can use other values, of course :lol: ).
Forum: C Nov 5th, 2004
Replies: 8
Views: 2,256
Posted By frrossk
Try use "system(cls);" instead of "clrscr()". I assume you are using a newer compiler...
Forum: C Nov 5th, 2004
Replies: 1
Views: 1,933
Posted By frrossk
Why do you return "o" when you should return "0" (zero)?
Forum: C Nov 4th, 2004
Replies: 15
Views: 11,246
Posted By frrossk
Sure...In fact, your image (with the size 256x256 and 256 grey levels) is exactly a 2D array with the dimensions 256x256, and it has to store 256 different values, that means 1 byte => char...
Forum: C Nov 3rd, 2004
Replies: 5
Views: 3,231
Posted By frrossk
According to MSDN, the Readline method returns a string, so I think you have to do the typecast - lab1 = Convert.ToInt (Console::Readline)
Forum: C Nov 3rd, 2004
Replies: 5
Views: 3,231
Posted By frrossk
Take a look on this: http://www.myserverproject.net/forum/viewtopic.php?t=35. Maybe it will help you.
Forum: C Nov 3rd, 2004
Replies: 5
Views: 3,231
Posted By frrossk
First, I think you should declare avgt, avgl and finalAverage as float or double. But could be useful if you specify what kind of error you get.
Forum: C Nov 3rd, 2004
Replies: 15
Views: 11,246
Posted By frrossk
In fact, 1 byte = 8 bits; so a char variable can have 2^8 = 256 values; this have nothing to do with ASCII chars...
Forum: C Nov 3rd, 2004
Replies: 1
Views: 2,573
Posted By frrossk
Try this: http://www.cs.cf.ac.uk/Dave/C/node19.html
Forum: C Nov 2nd, 2004
Replies: 6
Views: 1,993
Posted By frrossk
Right, I missed it. Thx, Stack...jigvesh too :D
Forum: C Nov 2nd, 2004
Replies: 6
Views: 1,993
Posted By frrossk
I think you should move the printf ("\n"); outside of one of the 2 for loops:

#include<stdio.h>
#include<conio.h>
void main()
{
int a[3][4],b[3][4],c[3][4];
int i,j;
clrscr();...
Forum: C Oct 1st, 2004
Replies: 9
Views: 6,875
Posted By frrossk
I ment replace clrscr() with system ("cls") (it's equivalent, and it does another system call for you :cool: )
Forum: C Oct 1st, 2004
Replies: 9
Views: 6,875
Posted By frrossk
Hi, Riturajraina

I tried your piece of code in Dev-C++ 4.9.9.0 compiler (available for free download at www.bloodshed.net (http://www.bloodshed.net)), and it's working just fine (just delete the...
Forum: C Sep 27th, 2004
Replies: 1
Views: 5,139
Posted By frrossk
Maybe this will work:


#include <stdio.h>
#include <stdlib.h>

int add_it(int n);

int main()
{
Showing results 1 to 40 of 41

 


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

©2003 - 2009 DaniWeb® LLC