![]() |
| | #61 |
| Frequently Quite Prolix Join Date: Apr 2005 Location: Canada
Posts: 7,698
| Code: Warning: main(includes/SiteConfiguration.php): failed to open stream: No such file or directory in\ /home/groups/c/cb/cboardwiki/htdocs/mediawiki-1.6.10/includes/DefaultSettings.php on line 31 Fatal error: main(): Failed opening required 'includes/SiteConfiguration.php' (include_path='.:/usr/local/share/pear') in\ /home/groups/c/cb/cboardwiki/htdocs/mediawiki-1.6.10/includes/DefaultSettings.php on line 31 [/edit]
__________________ 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. Last edited by dwks; 12-21-2007 at 07:01 PM. |
| dwks is offline | |
| | #63 |
| Woof, woof! Join Date: Mar 2007 Location: Australia
Posts: 3,295
| Well it's done, but I'll wait for the name change before I do anything more. Also should the wiki be collapsed from ./wiki to . ? So it's http://cpwiki.sf.net/void_main for example. |
| zacs7 is offline | |
| | #64 | |
| Mysterious C++ User Join Date: Oct 2007
Posts: 14,785
| Sure, that sounds good.
__________________ Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System I dedicated my life to helping others. This is only a small sample of what they said: "Thanks Elysia. You're a programming master! How the hell do you know every thing?" Quoted... at least once. Quote:
| |
| Elysia is offline | |
| | #65 |
| Registered User Join Date: Jan 2005
Posts: 7,252
| Did you guys send a PM to webmaster? He might like the idea and want to make it an official addition to the site (I would if I was him and had time). The problem might be that you guys wouldn't be able to administer the wiki, but if he has time to set it up and get it started I think that would be preferred. I don't think that will actually happen but you might want to ask just in case. >> Who are we targetting this site for? Is it going to aim at the void-mainers or the more confuzzled variety? I think there is a need for a community edited and reviewed FAQ that is based off the questions that are frequently asked on this site. Existing FAQs are quite good (like C++ FAQ Lite), but they don't necessarily cover the questions that are frequently answered here. I think this should be the initial focus of the project (or at least would be my initial focus for making contributions). I think such a project would be beneficial to this board, as it would enhance the quality of answers that can be provided quickly. Separate from that, tutorials on basic C or C++, as well as tutorials on more specific topics might be nice. The fact that they would (ideally) be edited and reviewed by members of this site is nice. But still I think the target audience should be the people that come to the cboard and ask questions. The strength of this site is the help for beginners, and I think a wiki should target that same crowd. |
| Daved is offline | |
| | #66 |
| Frequently Quite Prolix Join Date: Apr 2005 Location: Canada
Posts: 7,698
| Since no one seems to have sent a PM to the webmaster, I just did. (To webmaster, kermi3, and Salem, to be exact.) (Yes, I managed to get online a day ahead of schedule.)
__________________ 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 | |
| | #67 | |
| Mysterious C++ User Join Date: Oct 2007
Posts: 14,785
| I was thinking a simple app to catch beginner mistakes too. It doesn't need to be a code analyzer - there are professional ones out there, costing a lot of money. But just a small parser to catch simply mistakes such an indentation problem, scanf("%s", ...), void main and so on.
__________________ Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System I dedicated my life to helping others. This is only a small sample of what they said: "Thanks Elysia. You're a programming master! How the hell do you know every thing?" Quoted... at least once. Quote:
| |
| Elysia is offline | |
| | #68 |
| Frequently Quite Prolix Join Date: Apr 2005 Location: Canada
Posts: 7,698
| Detecting "bad" indentation would be a lot more difficult than it sounds. Consider that all of these Code: if(x) {
code();
}
if(x)
{
code();
}
if (x)
{
code();
}
if ( x )
{
code();
}
Assuming you had envisioned something that sophisticated. You could just count the spaces at the beginning of a line and make sure the counts are all multiples of some number like 2 or 4. Having said that, such a program would be rather interesting -- you could even make it say things like "void main() is non-standard -- you should use int main() instead: <link to faq>" when it detected void main()! You could make it into a bot which crawled CBoard, scolding everyone for using void main()! . . . and call it PedanticAutomatedBeginnerBlunderDetector.
__________________ 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 | |
| | #69 | |
| Mysterious C++ User Join Date: Oct 2007
Posts: 14,785
| I'm writing the parser right now. It's not as difficult as it sounds. Functions are a little more difficult, however, due to variable types. I'm going to program it to recognize standard types, since I don't want to make it parse and crawl through headers, as well.
__________________ Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System I dedicated my life to helping others. This is only a small sample of what they said: "Thanks Elysia. You're a programming master! How the hell do you know every thing?" Quoted... at least once. Quote:
Last edited by Elysia; 12-23-2007 at 02:26 PM. | |
| Elysia is offline | |
| | #70 | |
| C++ Witch Join Date: Oct 2003 Location: Singapore
Posts: 11,340
| Quote:
__________________ C + C++ Compiler: MinGW port of GCC Build + Version Control System: SCons + Bazaar Look up a C/C++ Reference and learn How To Ask Questions The Smart Way | |
| laserlight is online now | |
| | #71 | |
| Mysterious C++ User Join Date: Oct 2007
Posts: 14,785
| I'm not looking into making it too advanced, of course, so let's just make it complain at all void main until further notice. Of course, since this is a dev community, anyone who want to see the source or join can do so.
__________________ Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System I dedicated my life to helping others. This is only a small sample of what they said: "Thanks Elysia. You're a programming master! How the hell do you know every thing?" Quoted... at least once. Quote:
| |
| Elysia is offline | |
| | #72 | |
| C++ Witch Join Date: Oct 2003 Location: Singapore
Posts: 11,340
| Quote:
__________________ C + C++ Compiler: MinGW port of GCC Build + Version Control System: SCons + Bazaar Look up a C/C++ Reference and learn How To Ask Questions The Smart Way | |
| laserlight is online now | |
| | #73 |
| Frequently Quite Prolix Join Date: Apr 2005 Location: Canada
Posts: 7,698
| I'd like to see the source code. C++, right? As a suggestion, why don't you use an already-existing parser? Something like Elsa might be overkill, but you can download Lex+YACC specifications for C++. It might not be worth it, especially if you've never used those tools before, but it would probably be less error-prone.
__________________ 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 | |
| | #74 | |
| Mysterious C++ User Join Date: Oct 2007
Posts: 14,785
| I'll zip it up and post it (once I get rid of all compile errors, that is). I was right in the middle of redesigning the interface when finding out it didn't work with the old one. I haven't actually used another parser before, but work is proceeding smoothly. Since I use Visual Studio 2008 to compile, there may be some problems. I won't actually change any of the project settings and such - I'll keep it so that it compiles on my machine. It shouldn't be hard to change the settings and link to the library properly to use it. I'll post UNICODE version.
__________________ Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System I dedicated my life to helping others. This is only a small sample of what they said: "Thanks Elysia. You're a programming master! How the hell do you know every thing?" Quoted... at least once. Quote:
Last edited by Elysia; 12-23-2007 at 03:13 PM. | |
| Elysia is offline | |
| | #75 | |
| Mysterious C++ User Join Date: Oct 2007
Posts: 14,785
| I believe I have everything ready. http://www.eluni.net/temp There are two files there, both are for the project. In case you don't have/use Visual Studio 2008, I have the runtime (required for the DLL!) here: http://www.eluni.net/downloads/VS2008 Runtime So what needs to be done to compile? Link against the library using the included .lib. Fix up the includes so the library headers are included properly. Remember that the library is built with unicode, so unless the project is built with unicode, you'll get linking errors. Have fun
__________________ Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System I dedicated my life to helping others. This is only a small sample of what they said: "Thanks Elysia. You're a programming master! How the hell do you know every thing?" Quoted... at least once. Quote:
| |
| Elysia is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Wiki FAQ | Queatrix | General Discussions | 6 | 03-25-2007 03:39 AM |
| Wiki for Tutorials | jverkoey | General Discussions | 7 | 08-16-2005 03:03 PM |
| FAQ Check/Lock | RoD | A Brief History of Cprogramming.com | 2 | 10-15-2002 11:21 AM |