To understand arguments, c and java
code for your shell externals here are
few links to some EXCELLENT INFO.
http://mindview.net/CDs/ThinkingInC/beta3
http://www.mindviewinc.com/Books/downloads.html
The first link is designed to be used to
give you the basic C knowledge needed
to learn the other
You are welcome!
I have never used c#.
JB
> On Jul 6, 2017, at 9:40 AM, Sean Cole (Pi) via use-livecode
> wrote:
>
> Hi
> Is C# any different in terms of calls and compiling?
>
> Thanks JB
>
> Sean Cole
> *Pi Digital Productions Ltd*
>
> On 30 June 2017 at 15:35, Bob Sneidar via use-livec
Hi
Is C# any different in terms of calls and compiling?
Thanks JB
Sean Cole
*Pi Digital Productions Ltd*
On 30 June 2017 at 15:35, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:
> Sow how would you do that? static char rev[MAX -1]?rev[i++] =
> *str & NULL?
> >
To compile c++ code save file with extension .mm
cd ~/Desktop
g++ -Wall fileName.mm -o fileName
This version is different that the c code version
posted but you can use either version.
The only difference is c++ has the extension
.mm and then you use g++ while c has the
extension .c and you use g
Sow how would you do that? static char rev[MAX -1]?rev[i++] = *str
& NULL?
>
>>
Bob S
>>
> On Jun 29, 2017, at 20:20 , Mark Wieder via use-livecode
> wrote:
>
>> char* getReverse(char const str[]){
>> static int i=0;
>> if(*str){
>> getReverse(str+1);
>>
Thanks for the code tip, Mark.
JB
> On Jun 29, 2017, at 8:20 PM, Mark Wieder via use-livecode
> wrote:
>
> On 06/29/2017 07:40 PM, JB via use-livecode wrote:
>
>> char* getReverse(char const str[]){
>> static int i=0;
>> static char rev[MAX];
>> if(*str){
>> getRever
On 06/29/2017 07:40 PM, JB via use-livecode wrote:
char* getReverse(char const str[]){
static int i=0;
static char rev[MAX];
if(*str){
getReverse(str+1);
rev[i++] = *str;
}
return rev;
}
Nice use of recursion, but note that you're suscep
The following shows you how to compile c code
from the terminal and run it in Livecode.
1. Open a text editor and paste the following
c code;
#include
#define MAX 100
char* getReverse(char const []);
int main(int argc, const char * argv[]) {
char *rev;
char const *str = argv[1];
Compile the following C++ code as argv_c++
#include
// When passing char arrays as parameters they must be pointers
int main(int argc, char* argv[]) {
if (argc < 5) { // Check the value of argc. If not enough parameters have
been passed, inform user and exit.
std::cout << "Usage: En