C Board  

Go Back   C Board > Community Boards > General Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 08-09-2008, 07:29 AM   #1
System Novice
 
siavoshkc's Avatar
 
Join Date: Jan 2006
Location: Tehran
Posts: 1,075
Code Painter

Code:
//By SiavoshKC
#include <iostream>
using namespace std;
int main()
{
      int a =12;
      int b =9;
      cout<< "Hello" << a+ b << endl;
      return 0;

}
This code was painted using my Code Painter. Download it by link in my signature.
__________________
Microsoft Visual Studio 2008 Professional (On Microsoft Windows XP SP2)

Learn the language before using it. (C++ Books and C Books)
Read the FAQ before making a problem.
Then make a Google and Forum search.

My code painter new version Version 0.97 DOWNLOAD NOW! (Let the pop up, pop!)

SiavoshKC
siavoshkc is offline   Reply With Quote
Old 08-09-2008, 08:50 AM   #2
l'Anziano
 
DavidP's Avatar
 
Join Date: Aug 2001
Posts: 2,629
I'm not sure if I trust that download link.
__________________
My Website

"Circular logic is good because it is."
DavidP is offline   Reply With Quote
Old 08-09-2008, 09:01 AM   #3
&TH of undefined behavior
 
Fordy's Avatar
 
Join Date: Aug 2001
Posts: 5,218
If you are going to distribute this then it should come with the code. I dont run .exe files I download unless I am pretty sure they wont do anything nasty
__________________
"If A is success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut."
Albert Einstein (1879 - 1955)


Board Rules
Fordy is offline   Reply With Quote
Old 08-09-2008, 09:35 AM   #4
Unregistered User
 
Yarin's Avatar
 
Join Date: Jul 2007
Posts: 982
Isn't this considered spam?
__________________
May the Source be with you.
Yarin is offline   Reply With Quote
Old 08-09-2008, 10:44 AM   #5
&TH of undefined behavior
 
Fordy's Avatar
 
Join Date: Aug 2001
Posts: 5,218
Quote:
Originally Posted by Yarin View Post
Isn't this considered spam?

No...
__________________
"If A is success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut."
Albert Einstein (1879 - 1955)


Board Rules
Fordy is offline   Reply With Quote
Old 08-09-2008, 03:33 PM   #6
Devil's Advocate
 
SlyMaelstrom's Avatar
 
Join Date: May 2004
Location: Out of scope
Posts: 3,778
Well, in the mean time... just looking at the code you posted, I can't say I like the colors. Datatypes are colored the same as keywords and preprocessor directives. Libraries are colored the same as string constants. It's all a little confusing.
__________________
Terms of Service
By quoting or replying directly to this post, you consent to the fact that all of the information in the post above is completely accurate and highly intelligent and no comments will be made towards its validity, thoughtlessness, and/or grammatical structure.

Violators will be prosecuted to the fullest extent of the law.
SlyMaelstrom is offline   Reply With Quote
Old 08-09-2008, 05:28 PM   #7
MENTAL DETECTOR
 
whiteflags's Avatar
 
Join Date: Apr 2006
Location: United States
Posts: 3,293
Well it's close to the color scheme Visual Studio would use by default, not that I'm defending it.

What I don't like is the boldface, that was a mistake. If you've ever read a black & white printout of some code, you'd understand why, siavoshc. Bold can play a much more important role if you don't print in color.
whiteflags is offline   Reply With Quote
Old 08-10-2008, 01:36 AM   #8
System Novice
 
siavoshkc's Avatar
 
Join Date: Jan 2006
Location: Tehran
Posts: 1,075
I am going to upload whole source code after some clean-ups. It is in C++\CLI.
The selected color for each item is not a problem. It is too simple to change them.
Code:
#include <iostream> 
__________________
Microsoft Visual Studio 2008 Professional (On Microsoft Windows XP SP2)

Learn the language before using it. (C++ Books and C Books)
Read the FAQ before making a problem.
Then make a Google and Forum search.

My code painter new version Version 0.97 DOWNLOAD NOW! (Let the pop up, pop!)

SiavoshKC

Last edited by siavoshkc; 08-10-2008 at 01:44 AM.
siavoshkc is offline   Reply With Quote
Old 08-12-2008, 03:51 PM   #9
Dr Dipshi++
 
mike_g's Avatar
 
Join Date: Oct 2006
Location: On me hyperplane
Posts: 1,219
This looked like fun so I had a go too. So far it only works with C and the tags create a lot of bloat, but it seems to work ok, which is the main thing. I put the code on webpage generated by the prog. Heres a link to my syntax highlighter.

Cheers.
mike_g is offline   Reply With Quote
Old 08-12-2008, 04:47 PM   #10
Woof, woof!
 
zacs7's Avatar
 
Join Date: Mar 2007
Location: Australia
Posts: 3,295
Doesn't even come close to codeform by dwks
__________________
"I.T. gets the chicky-babes" - M. Kelly
bakefile | vim
zacs7 is offline   Reply With Quote
Old 08-12-2008, 05:08 PM   #11
The superheterodyne.
 
twomers's Avatar
 
Join Date: Dec 2005
Location: Ireland
Posts: 2,215
Or its painted self... http://dwks.theprogrammingsite.com/m...m/formself.htm
And online self... http://dwks.theprogrammingsite.com/myprogs/cfonline.htm
__________________
I blag!
twomers is offline   Reply With Quote
Old 08-12-2008, 08:56 PM   #12
int x = *((int *) NULL);
 
Cactus_Hugger's Avatar
 
Join Date: Jul 2003
Location: Banks of the River Styx
Posts: 902
Is this an installer... inside a WinRAR self extractor... that's been run through UPX? >.<
Furthermore, your program wants admin privileges to install >.>

So, like, a 1.5MB executable to ship ~80KB exe?

Some comments:
1) Word counts are off - Try typing some whitespace in the box, you'll see.
2) You seem to be missing a few keywords (typename, catch, default being the three I noticed.)
3) // Comments, on the last line, are not highlighted
4) You write to C:\Program Files\Your\Dir ... it gets redirected to C:\Users\blah\AppData\Local\.....
__________________
long time; /* know C? */
Unprecedented performance: Nothing ever ran this slow before.
Any sufficiently advanced bug is indistinguishable from a feature.
Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
The best way to accelerate an IBM is at 9.8 m/s/s.
recursion (re - cur' - zhun) n. 1. (see recursion)

Last edited by Cactus_Hugger; 08-12-2008 at 08:58 PM.
Cactus_Hugger is offline   Reply With Quote
Old 08-13-2008, 04:44 PM   #13
Frequently Quite Prolix
 
dwks's Avatar
 
Join Date: Apr 2005
Location: Canada
Posts: 7,698
Glad to see codeform has a following. (Don't forget the clipboard Perl scripts!)

By the way: in the latest version of codeform (1.2.0), tags that are the same colour are merged together, eliminating the "bloat" that I assume mike_g was referring to. I can't remember how I did it, but I'm sure you could find out by looking at its source. (Basically, record the starting tag, allow skipping over whitespace, and check if the next tag is the same as the previous one.)
__________________
dwk

Seek and ye shall find. quaere et invenies.

"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell


Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net

My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
dwks is offline   Reply With Quote
Old 08-14-2008, 06:14 AM   #14
Dr Dipshi++
 
mike_g's Avatar
 
Join Date: Oct 2006
Location: On me hyperplane
Posts: 1,219
Quote:
Basically, record the starting tag, allow skipping over whitespace, and check if the next tag is the same as the previous one.
Yeah, thats the same as what I had done. It chopped a third off the size. Last night I added colouring to the brackets and all the space I had saved was lost again :/ I might see if I can shrink the tags using xml.
mike_g is offline   Reply With Quote
Old 08-15-2008, 01:48 PM   #15
Frequently Quite Prolix
 
dwks's Avatar
 
Join Date: Apr 2005
Location: Canada
Posts: 7,698
I guess that's the price you pay for coloured brackets.

BTW, if you're generating HTML, CSS can really reduce filesizes. Plus it makes the output more easily customizable. Of course, this doesn't work for, say, BBCode.
__________________
dwk

Seek and ye shall find. quaere et invenies.

"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell


Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net

My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
dwks is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Enforcing Machine Code Restrictions? SMurf Tech Board 21 03-30-2009 07:34 AM
Obfuscated Code Contest: The Results Stack Overflow Contests Board 29 02-18-2005 05:39 PM
Obfuscated Code Contest Stack Overflow Contests Board 51 01-21-2005 04:17 PM
Interface Question smog890 C Programming 11 06-03-2002 05:06 PM
Who will map the scan code (inserted by VKD_Force_keys) to virtual key code? Unregistered Windows Programming 0 02-21-2002 06:05 PM


All times are GMT -6. The time now is 11:51 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22