C++

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

C++

#1 Post by Lobster »

There I was trying to learn C++ programming
and before I knew it created this:

CE Registration Program
Compiling details of available participants
for Puppy Community Edition


Here is the code:

Code: Select all

/* 
CE Registration
Compiling details of available participants
for Puppy Community Edition
* Lobster Sep 2009
 */
#include <iostream.h>
#include <fstream.h>
using namespace std;

int main () 
{

/////////////// Welcome 
system("clear");
    cout << "== Community Edition Registration == \n\n"; // This lets us show a message
    string web_name;
		cout << "Enter your Web Name: ";
		getline (cin, web_name);
		cout << "\nHi ";
		cout << web_name ;
		cout << "\nThis program will collect some details \n to help us compile talents \n for the Puppy CE editions \n\n" ;

/////////////// Questions 
system("clear");
    string skills_offered, contact_details, misc_info ;
		cout << "What Puppy Skills are you offering? \n eg. Coordinating, programming, compiling, testing, maintaining wiki, hosting, artwork, \n\n Type them in (separated by commas): ";
		getline (cin, skills_offered);
system("clear");		
		cout << "How do you prefer to be contacted? \n eg. forum (provide forum name), email (address)\n Type in contact details: ";
		getline (cin, contact_details);
system("clear");
		cout << "Any other Info? ";
		getline (cin, misc_info);

/////////////// Create file
  ofstream myfile ("registration.txt");
  if (myfile.is_open())
  {
    myfile << "Puppy Details for ** ";
    myfile << web_name ; //add variable write
    myfile << " **\n\n";
    myfile << "Skills offered: ";
    myfile << skills_offered ; //add skills
        myfile << " \n";
    myfile << "Contact Details: ";
    myfile << contact_details ; //add skills
         myfile << " \n";
    myfile << "Misc Info: ";
    myfile << misc_info ; //add skills
         myfile << " \n\n\n";   
         myfile << " Please send 'registration.txt to ed.jason@gmail.com \n or add details to wiki \n http://puppylinux.org/wikka/Puppy44 " ;
  
   myfile.close();
  }
  else cout << "Unable to open file";


/////////////// Thanks and Bye
system("clear");
cout << "\nOK ";
		cout << web_name ;
		cout << "\nA text file called 'registration.txt' \n has been created, which you can edit \n Please send 'registration.txt to ed.jason@gmail.com \n or add details to wiki \n http://puppylinux.org/wikka/Puppy44 \n" ;
system("defaulttexteditor registration.txt");
  return 0; // Quits the program
}


run the program from the terminal

Code: Select all

# ./cereg 
Years ago I did a couple of weeks of C programming
Yuk!
Luckily the most ridiculous aspect of C (atrocious string handling)
has been rectified :lol:

What I have learned so far:

C++ in easy steps is the book I used
but loads of great tutorials on the web

Make sure you have devx.sfs

Geany is GREAT as an IDE for C++
and it is in Puppy 4.3
compile and then build
and then run from the terminal with

Code: Select all

./myfirstprog.cpp
Make use of the web.
Quite often C++ wouldn't work
I looked up examples until something worked

my code uses old commands
but it compiles
Last edited by Lobster on Wed 23 Sep 2009, 12:18, edited 1 time in total.
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#2 Post by Lobster »

Objects?
Here's a Puppy class and object for you [from Tronkel]
thanks Tronkel - will have to study that . . .

Code: Select all

#include <string>

using namespace std;

class Puppy
{

private:
string colour;
int lengthOfTail;
int noOfTeeth;
string name;
string address;

public:
Puppy(); //default ctor
//set, get class data members follow e.g.

int retnoOfTeeth();



};

if you need a Puppy object;

int main()
{

Puppy aPup; //declare a Puppy instance
//do what you need here e.g.
cout << aPup.retnoOfTeeth() << endl;

return 0;

} 
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#3 Post by Lobster »

OK still working on understanding Objects

Meanwhile . . . working on the Puppy bug reporter as my second program . . .
I have been working on combining gtkdialog3 with C++
- it is in Alpha - will be gardening the rest of today
so anyone able to improve and pass the labels into the created text file - would be great :)

Code: Select all

/* * Name of Reporter:
    * Email Id of Reporter:
    * Version or Build: <Version or Build of the product>
    * Module or component: <mention here the name of tested module or component>
    * Platform / Operating System:
    * Type of error: <coding error / design error / suggestion / UI / documentation / text error / hardware error >
    * Priority:
    * Severity:
    * Status:
    * Assigned to:
    * Summary:
    * Description: <mention here the steps to reproduce, expected result and actual result>

*/

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <iostream.h>
#include <fstream.h>
using namespace std;

int main () 

{
/////////////// Open form
	FILE *stream;
	char line[256];
	
	putenv(
"MAIN_DIALOG=<hbox>"
"  <frame Generate Report>"
"<hbox><text><label>Name of Reporter:</label></text><entry><variable>NAME</variable><default>add your name1</default></entry></hbox>"
"<hbox><text><label>Version of Puppy</label></text><entry><variable>VERSION</variable><default>Put 'latest' if not sure</default></entry></hbox>"
"<hbox><text><label>Hardware:</label></text><entry><variable>HARDWARE</variable><default>CPU, Graphics card, relevant other hardware</default></entry></hbox>"
"<hbox><text><label>Type of error:</label></text><entry><variable>ERRORTYPE</variable><default>eg. program, operating ystem, driver etc3</default></entry></hbox>"
"<hbox><text><label>Description:</label></text><entry><variable>DESC</variable><default>More details rather than less please</default></entry></hbox>"
"<hbox><text><label>Suggestions:</label></text><entry><variable>SUGGEST</variable><default>Found solution or suggested area to investigate</default></entry></hbox></frame>"
"  <frame buttons>"
"  <button ok></button>"
"  <button cancel></button>"
"  <button><label>Insert Data</label></button>"
"  <button><label>GNumeric View</label></button>"
"  <button><label>Edit Record</label></button>"
"  <button><label>Configure Labels</label></button></frame>"
"</hbox>\n");
	stream = popen("gtkdialog3 --program=MAIN_DIALOG", "r");
	fgets(line, 255, stream);
	if (strstr(line, "OK") != NULL)
		printf("You pressed the OK button.\n");
	else
		printf("This is not the OK button.\n");
	pclose(stream);
	
	
/////////////// Display or load data
string NAME, VERSION, HARDWARE, ERRORTYPE, DESC, SUGGEST ;

  ofstream myfile ("errorreport.txt");
  if (myfile.is_open())
  {
    myfile << "Puppy Details for ** ";
    myfile << NAME ; //add variable write
        myfile << " **\n\n";
    myfile << "Version of Puppy: ";
    myfile << VERSION ; //add skills
        myfile << " \n";
    myfile << "HARDWARE: ";
    myfile << HARDWARE ; //add skills
         myfile << " \n";
    myfile << "ERRORTYPE: ";
    myfile << ERRORTYPE ; //add skills
         myfile << " \n";
    myfile << "DESC: ";
    myfile << DESC ; //add skills
         myfile << " \n";
    myfile << "SUGGEST: ";
    myfile << SUGGEST ; //add skills
    
         myfile << " \n\n\n";   
         myfile << " Please send 'errorreport.txt to ed.jason@gmail.com \n or add details to wiki \n http://puppylinux.org/wikka/Puppy44 " ;
  
   myfile.close();
  }
  else cout << "Unable to open file";

/////////////// Provide data
	
}
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#4 Post by Lobster »

Me again :oops: pretending to be a programmer :roll:

Created this in Glade
easy enough

Code: Select all

<?xml version="1.0"?>
<glade-interface>
  <requires-version lib="gtk+" version="2.12"/>
  <widget class="GtkDialog" id="dialog1">
    <property name="border_width">5</property>
    <property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
    <property name="has_separator">False</property>
    <child internal-child="vbox">
      <widget class="GtkVBox" id="dialog-vbox1">
        <property name="visible">True</property>
        <property name="spacing">2</property>
        <child>
          <widget class="GtkImage" id="image2">
            <property name="visible">True</property>
            <property name="pixbuf">l1.jpg</property>
          </widget>
          <packing>
            <property name="position">1</property>
          </packing>
        </child>
        <child internal-child="action_area">
          <widget class="GtkHButtonBox" id="dialog-action_area1">
            <property name="visible">True</property>
            <property name="layout_style">GTK_BUTTONBOX_END</property>
            <child>
              <widget class="GtkButton" id="button1">
                <property name="visible">True</property>
                <property name="can_focus">True</property>
                <property name="receives_default">True</property>
                <property name="label" translatable="yes">button</property>
                <property name="response_id">0</property>
              </widget>
            </child>
            <child>
              <widget class="GtkToggleButton" id="togglebutton1">
                <property name="visible">True</property>
                <property name="can_focus">True</property>
                <property name="receives_default">True</property>
                <property name="label" translatable="yes">togglebutton</property>
                <property name="response_id">0</property>
              </widget>
              <packing>
                <property name="position">1</property>
              </packing>
            </child>
          </widget>
          <packing>
            <property name="expand">False</property>
            <property name="pack_type">GTK_PACK_END</property>
          </packing>
        </child>
      </widget>
    </child>
  </widget>
  <widget class="GtkWindow" id="window1">
    <child>
      <widget class="GtkImage" id="image1">
        <property name="visible">True</property>
        <property name="pixbuf">l1.jpg</property>
      </widget>
    </child>
  </widget>
</glade-interface>
What c++ code will call/display that xml?
Every example I look at is in C
or calls libs I don't seem to have.

I am being tortured here. The fish are laughing at me. Help!
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#5 Post by Lobster »

OK this is my Puppy 4.4CE program
It is basically a mashup of my C++ programs so far using the YAP
program I wrote for gtkdailog3

I think this is is my third day of C++
I only do bits to avoid brain strain

I could not get to grips with interfacing XML produced
by Glade
but am finding the compiling IDE capacity of Genie Editor ideal

If you want to compile it
make sure you have devxx
and make sure the program ends on a new line
(I remember C needed this as well)

OK plan is to have a cup of tea (I am English you know)
and then turn it into something useful :)

Update:
Well the tea was nice
just had another with a cinnamon whirl
and now the program is beginning to do things - reporting bugs- not yet
but some of the pull down menu is working . . .

Code: Select all

 //      Puppy44CE.cpp v0.3 
//      Copyright Sep 2009 Lobster <ed.jason@gmail.com>
//      
//      This program is free software; you can redistribute it and/or modify
//      it under the terms of the GNU General Public License as published by
//      the Free Software Foundation; either version 2 of the License, or
//      (at your option) any later version.
//      
//      This program is distributed in the hope that it will be useful,
//      but WITHOUT ANY WARRANTY; without even the implied warranty of
//      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//      GNU General Public License for more details.

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <iostream.h>
#include <fstream.h>
using namespace std;

int main () 

{
/////////////// Open Program
	FILE *stream;
	char line[256];
	putenv(
"MAIN_DIALOG=<hbox>"
// "<window title="Puppy44CE" window-position="1">"
"  <vbox>"
"<menubar>"
"    <menu>"
"       <menuitem>"
"            <label>Set Up Puppy</label>"
"               <action>/usr/sbin/wizardwizard &</action>"
"         </menuitem>"
"          <menuitem>"
"             <label>Help</label>"
"               <action>defaultbrowser file:///usr/share/doc/index.html &</action>"
"         </menuitem>"
"         <menuitem>"
"             <label>Puppy Desktop</label>"
"               <action>defaultbrowser http://pupweb.org/desktop/ &</action>"
"         </menuitem>"
"         <menuitem>"
"              <label>Not yet used . . .</label>"
"                 <action>wavplay sound/gong-burmese.wav &</action>"
"         </menuitem>"
"         <menuitem>"
"               <label>Not yet used . . .</label>"
"                   <action>wavplay sound/gong-chinese.wav &</action>"
"         </menuitem>"    
"              <label>First Steps</label>"
"          </menu>"
"      <menu>"
"         <menuitem>"
"            <action>wavplay /usr/share/audio/2barks.wav &</action>"
"            <label>Woof Woof</label>"
"            <action>exit</action>"
"         </menuitem>"
"           <menuitem>"
"            <action>defaultbrowser file://`pwd`/videos/mudra.swf &</action>"
"            <label>Not yet used . . .</label>"
"            <action>exit</action>"
"         </menuitem>"
"         <menuitem>"
"               <label>Not yet used . . .</label>"
"                <action>wavplay sound/cyberspace_1.wav &</action>"
"            <action>defaultbrowser file://`pwd`/videos/vajra.swf &</action>"
"               <action>exit</action>"
"         </menuitem>"        
"         <menuitem>"
"                <action>defaultbrowser file://`pwd`/html/chant.html &</action>"
"                <action>defaultbrowser file://`pwd`/sound/tarafast.swf &</action>"
"            <label>Not yet used . . .</label>"
"         </menuitem>"
"         <menuitem>"
"            <label>Not yet used . . .</label>"
"               <action>defaultbrowser file://`pwd`/videos/taraom.swf &</action>"          
"         </menuitem>"   
"         <menuitem>"
"                 <label>Not yet used . . .</label>"
"                      <action>wavplay sound/cyberspace_1.wav &</action>"
"                     <action>wavplay sound/cyberspace_1.wav &</action>"
"                      <action>defaultbrowser file://`pwd`/videos/shingon.swf &</action>"
"                      <action>exit</action>"
"              </menuitem>"  
"         <label>Programs</label>"
"    </menu>"
"    <menu>"
"        <menuitem>"
"           <label>Wiki</label>"
"              <action>defaultbrowser http://puppylinux.org/wikka/ &</action>"
"        </menuitem> "
"        <menuitem>"
"           <label>Forum Thread</label>"
"               <action>defaultbrowser http://www.murga-linux.com/puppy/viewtopic.php?t=46497 &</action>"
"        </menuitem>"
"            <menuitem>"
"            <label>Not yet used . . .</label>"
"              <action>wavplay sound/cyberspace_1.wav &</action>"
"              <action>defaultbrowser http://buddhism.kalachakranet.org/meditation_practice.html &</action>"
"        </menuitem>"  
"        <menuitem>"
"                    <action>wavplay sound/cyberspace_1.wav &</action>"
"            <label>Not yet used . . .</label>"
"              <action>defaultbrowser http://www.youtube.com/watch?v=F3g4cNJgVwo &</action>"
"                 <action>exit</action>"
"        </menuitem>"   
"        <menuitem>"
"           <label>Not yet used . . .</label>"
"               <action>defaultbrowser file://`pwd`/html/faqs.html &</action>"
"         </menuitem>"
"                    <label>Info</label>"
"   </menu>"
"  </menubar>"
"  <frame>"
"       <pixmap>"
"         <input file>runpup.gif</input>"
"       </pixmap>"
"       <text><label>4.4 Community Edition</label></text>"
"       <text><label>Sep 2009 </label></text>"
"   </frame>"
"  <frame Generate Report>"
"<hbox><text><label>Name of Reporter:</label></text><entry><variable>NAME</variable><default>add your name1</default></entry></hbox>"
"<hbox><text><label>Version of Puppy</label></text><entry><variable>VERSION</variable><default>Put 'latest' if not sure</default></entry></hbox>"
"<hbox><text><label>Hardware:</label></text><entry><variable>HARDWARE</variable><default>CPU, Graphics card, relevant other hardware</default></entry></hbox>"
"<hbox><text><label>Type of error:</label></text><entry><variable>ERRORTYPE</variable><default>eg. program, operating ystem, driver etc3</default></entry></hbox>"
"<hbox><text><label>Description:</label></text><entry><variable>DESC</variable><default>More details rather than less please</default></entry></hbox>"
"<hbox><text><label>Suggestions:</label></text><entry><variable>SUGGEST</variable><default>Found solution or suggested area to investigate</default></entry></hbox></frame>"
"  <button ok></button><button cancel></button>"
"  </vbox>"
"</hbox>\n");


/////////////// Call gtkDialog3
	stream = popen("gtkdialog3 --program=MAIN_DIALOG", "r");
	fgets(line, 255, stream);
	if (strstr(line, "OK") != NULL)
		printf("You pressed the OK button.\n");
	else
		printf("This is not the OK button.\n");
	pclose(stream);
	
	
/////////////// Generate text report
string NAME, VERSION, HARDWARE, ERRORTYPE, DESC, SUGGEST ;

  ofstream myfile ("errorreport.txt");
  if (myfile.is_open())
  {
    myfile << "Puppy Details for ** ";
    myfile << NAME ; //add variable write
        myfile << " **\n\n";
    myfile << "Version of Puppy: ";
    myfile << VERSION ; //add skills
        myfile << " \n";
    myfile << "HARDWARE: ";
    myfile << HARDWARE ; //add skills
         myfile << " \n";
    myfile << "ERRORTYPE: ";
    myfile << ERRORTYPE ; //add skills
         myfile << " \n";
    myfile << "DESC: ";
    myfile << DESC ; //add skills
         myfile << " \n";
    myfile << "SUGGEST: ";
    myfile << SUGGEST ; //add skills
    
         myfile << " \n\n\n";   
         myfile << " Please send 'errorreport.txt to ed.jason@gmail.com \n or add details to wiki \n http://puppylinux.org/wikka/Puppy44 " ;
  
   myfile.close();
  }
  else cout << "Unable to open file";
}
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

C++ in Puppy

#6 Post by gyro »

I use Codeblocks 8.02 and wxWidgets 2.8.10, both compiled on Puppy 4.1.2. to produce a "wx_cb.sfs" file which I use alongside the "devx" ".sfs" file.

gyro

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#7 Post by rarsa »

Advice:

Keep the resources (strings, UI Definition) in external files so you don't have to recompile to change wording or translations.

Good for you! C++ is an awesome language. just make sure to use OO judiciously instead of using it as if it was plain C.

When I learned I used Bruce Eckel's Thinking in C++

and Scott Meyers Effective C++: 55 Specific Ways to Improve Your Programs and Designs

Those books take you beyond the syntax to show you the idiosyncrasy of the language and how to use it properly.

You will learn the language faster if you "understand" how it was meant to be used.
[url]http://rarsa.blogspot.com[/url] Covering my eclectic thoughts
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#8 Post by Lobster »

Very good advice, Thanks Rarsa - this in particular looks excellent
Bruce Eckel's Thinking in C++

Strangely I understand why OO is useful
how a Quantum computing language is likely to owe much to OO
It is how to make use of it that will need to be implemented

It really was an accident how I started
I joined up to do some Tai Chi Chuan at a local college
and joined their library
Looking at their books
nothing very much on Linux
Very easy looking book on C++
OK I will try
This thread is me trying
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#9 Post by Lobster »

OK has all come together in this simple 44CE development portal program
Image

Download with source code here:
http://www.murga-linux.com/puppy/viewto ... 973#343973
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#10 Post by Lobster »

I am working on this head/tail (or 0/1 at the moment)
random event generator (that RNG is not so random incidentally)
and am trying to get a gtkdialog3 output
the problem is this type of line

Code: Select all

"<window title="Question" icon-name="gtk-dialog-question">"
the compiler sees this as complete
"<window title="Question" icon-name="
rather than part of the gtkdialog3

Is there a simple solution?
here is the complete code

Code: Select all

#include <cstdlib> 
#include <ctime> 
#include <iostream>

using namespace std;

int main() 

////////////// run head tail program
{ 
    srand((unsigned)time(0)); 
    int random_integer, running_total_ones; 
    
    for(int index=0; index<2000; index++)
    { 
        random_integer = (rand()%2)+1; 
        cout << random_integer-1 << endl; 
      if (random_integer == 1)  
          {
           running_total_ones = running_total_ones++;
	      }
    } 
    cout << running_total_ones;

/////////////// Open Program
	FILE *stream;
	char line[256];
	putenv(
"export DIALOG='"
"<window title="Question" icon-name="gtk-dialog-question">"
"  <vbox>"
"    <hbox>"
"      <text>"
"        <label>Label:</label>"
"      </text>"
"      <entry activates-default="true">"
"        <default>Default text</default>"
"	<variable>ENTRY</variable>"
"      </entry>"
"    </hbox>"
"    <hbox>"
"      <button cancel></button>"
"      <button can-default="true" has-default="true" use-stock="true">" 
"        <label>gtk-ok</label>"
"      </button>"
"    </hbox>"
"  </vbox>"
"</window>"
"'"
/////////////// Call gtkDialog3
	stream = popen("gtkdialog3 --program=MAIN_DIALOG", "r");
	fgets(line, 255, stream);
	pclose(stream); 
}
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#11 Post by rarsa »

Lobster wrote:

Code: Select all

"<window title="Question" icon-name="gtk-dialog-question">"
the compiler sees this as complete

Code: Select all

"<window title="Question" icon-name="
Is there a simple solution?
Try escaping the inside quotation marks (so the compiler interprets it properly)

Code: Select all

"<window title="Question" icon-name="gtk-dialog-question">"
Or using single quotation marks inside. In XML double and single quotes can be used to delimit attribute values.

Code: Select all

"<window title='Question' icon-name='gtk-dialog-question'>"
Both should work.
[url]http://rarsa.blogspot.com[/url] Covering my eclectic thoughts
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#12 Post by rarsa »

Oh, but I see that you are single-quoting around the whole thing

Code: Select all

"export DIALOG='"
So you'll need to escape all double quotes.

If you want to use single quotes, there are other solutions such as doing the assignment in "steps"

First assign the content of the XML to a variable (changing all double quotes to single quotes
From <window ..
to </window>

then concatenating it with the export string.

Or even better.

Define the XML in an external file using double quotes or single quotes (your choice) and then just load it and use it.
[url]http://rarsa.blogspot.com[/url] Covering my eclectic thoughts
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#13 Post by Lobster »

Try escaping the inside quotation marks (so the compiler interprets it properly)
Thanks rarsa that seems to have worked :)

Now onto the next problem :roll:
it's compiling but getting probs with gtkDialog3
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#14 Post by Lobster »

More praise for Geany as an IDE :)

highlight code with shift and keyboard (or mouse)
and ctrl + e to toggle comments on off

Click on error message to go to that error in edit space
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

Post Reply