|
So it's a console app and not a win32 app. And you can't do that in such a console app.
But you didn't explain what you really want to achieve (description of why you want to display a pixel in a certain color). I'm sure there is better solution for you.
|
|
|
|
|
I’m will pixel by pixel a color on the screen print. With this command:
Color(int X,int Y, int RED, int GREEN, int BLUE);
Great,
Marc
1 day, 24 hours, 1440 minutes, 86400 seconden and then start the next day.
|
|
|
|
|
Geez, I know that you want to color a pixel on the screen... But why do you want to do that ? What is the ultimate purpose of doing that ? I mean what do you want to do with you application ?
I'm trying to help you by knowing what you want to achieve so I can advise you a better solution. Explain clearly what you are trying to do (I mean, no in one line...). Be as complete as possible.
What you are trying to do is not possible in a console application (without specific graphical libraries).
|
|
|
|
|
I'm will Preview a image-file that i write self.
Great,
Marc
1 day, 24 hours, 1440 minutes, 86400 seconden and then start the next day.
|
|
|
|
|
And can't you use a windows application for that ? That will be much more easier. And by the way, you will never display your image pixel by pixel yourself, this is low-level and is managed through specialized libraries. Really, try to look at the MFC (Microsoft Fundation Classes).
Simply it is not possible to do that in a console application.
|
|
|
|
|
Can't be done, you can only put text in a console app.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
OO, now thanks for the help
Great,
Marc
1 day, 24 hours, 1440 minutes, 86400 seconden and then start the next day.
|
|
|
|
|
One of the proofs of modern mathematics is George Cantors demonstration that the set of rational numbers is enumerable.This proof works by using an explicit enumeration of rational numbers as shown below
1/1 1/2 1/3 1/4 1/5 ....
2/1 2/2 2/3 2/4
3/1 3/2 3/3
4/1 4/2
5/1
In the time above the first term is 1/1 second is 1/2 ,the third is 2/2,the fourth term is 3/1,the fifth is 2/2 and so on.
INPUT AND OUTPUT
You are to write a program that will read a list of numbers in the range from 1 to 10 raised to the power 7 and will print for each number the corresponding cantor's enumeration as given below.No blank line should appear after the last number.
Th einput list contains a single number per line and will be terminated by the end of -file.
SAMPLE INPUT
3
14
7
SAMPLE OUTPUT
TERM 3 is 2/1
TERM 14 is 2/4
Term 7 is 1/4
Lov u all
|
|
|
|
|
You probably won't get any help with your programming assignment because we only answer specific questions. If you show us where you are having a problem, we will be glad to help.
|
|
|
|
|
i HAVE PASTED THE QUESTION,ITS SPECIFIC AND SHORT TOO SO U ALL CAN REPLY.
Lov u all
|
|
|
|
|
You would probably be more likely to get help if you would stop being such a prick.
|
|
|
|
|
Ashishhcst2001 wrote: i HAVE PASTED THE QUESTION,ITS SPECIFIC AND SHORT TOO SO U ALL CAN REPLY.
Yes, it is specifically a programming exercise question. I am not doing your homework for you.
Love you too!
|
|
|
|
|
Cheating is creepy enough, but
to be so damn lazy to not evey
reformat the Professors question
before posting takes the cake..
Good luck with your career at
McDonalds.. You should start
rehersing now.. "Do you want
frys with that dude?"
|
|
|
|
|
Ashishhcst2001 wrote: SO U ALL CAN REPLY.
and why can't you do it yourself ??
as it is an homework, you're supposed to be able to solve it yourself, as you teacher intended...
TOXCCT >>> GEII power [toxcct][VisualCalc 2.24][3.0 soon...]
|
|
|
|
|
|
Q;the factorial of a number B ia defined recursively as
1!=1
N!=N*(N-1)!
Factorials can be represented as the number of times prime number occurs in it ,example 825 could be specified as(0 1 2 0 1)meaning no twos,1 three,2 fives,no sevens and 1 eleven.
Write a program that will readin a number N(2<=N<=100) and write out its factorial in terms of the numbers of the prime it contains.
INPUT
It will contain a series of lines each containing a single letter N The file will bw terminated by a line consisting of a single 0.
OUTPUT
It will contain a series of blocks of lines, one block for each line of input.
Each block will start with the number N,right justified in a field of width 3 and the characters '!',space, and '='.This will be followed by a list of the number of times each prime numbers occurs in !N.
There should be right justified in fields of width 3 and each line (except the last of a block, which may be shorter)should contain 15 numbers.Any lines after the first should be indented .Follow the layout of the example shown below exactly.
SAMPLE INPUT
5
53
0
SAMPLE OUTPUT
!5= 3 1 1
53!= 49 23 12 8 4 4 3 2 2 1 1 1 1 1 1 1
Lov u all
|
|
|
|
|
Write a program that takes two wordss and finds any common letters that they have.
For example, the words 'computer' and 'program' have the letters 'o','m','p','r' in common. The output should be both words with all common letters in capitals. Neither word will have more than 8 letters.
Sample Input
Enter two words : computer program
Sample Output
cOMPuteR PROgRaM
Lov u all
|
|
|
|
|
ok. here you go.
#include "stdio.h"
#include "string.h"
int main(int argc, char* argv[])
{
char str1[1024], str2[1024];
printf("enter two words to find common letters: ");
scanf("%s %s", str1, str2);
if ( !strcmp(str1, "computer") && !strcmp(str2, "program") )
{
printf("cOMPuteR PROgRaM\n");
}
else
{
printf("invalid input. try example: \"computer program\"\n");
}
return 0;
}
- Indivara
"...This city desert makes you feel so cold.
It's got so many people but it's got no soul..."
- Gerry Rafferty, Baker Street
|
|
|
|
|
an integer substring of an integer is formed by consecutive digits of the original integer. For examp[le, the number 6158 contains the substrings 6,1,5,8,61,15,58,615,158,6158. you must find the largest substring of an integer that is also a prime.
input
the input will be an integer N,(0<=N<=1 000 000 000).
Output
The output will be the largest prime substring of N. If no substring is a prime, then your program should print "No Primes".
Sample Input 1
2319
Sample Output 1
31
Sample input 23
6804
Sample Output
No Primes
Lov u all
|
|
|
|
|
> please reply urgently in 2-3 hours
Is this your exam for the course "programming I"?
Note that this is the C++/CLI forum.
Shame on you!
|
|
|
|
|
Hi am new to .NET environ, wanted to know what is the equivalent of CreateBitmap method of C in C# - which converts the postscript file to a bitmap file.
|
|
|
|
|
|
Hi,
Am working in the .NET environ...am stuck at a point where I need to convert from sbyte to byte datatype.
Help would be helpful indeed!!
Regards
|
|
|
|
|
|
toxcct wrote: byte b = (sbyte)15;
Error :Conversion not possible!!
|
|
|
|