Questions tagged [ch]

Ch is a C/C++ interpreter and scripting language.

Ch is a proprietary C/C++ interpreter and scripting language environment used by teachers, students, engineers and scientists around the world to learn math, numerical computing, C/C++, and write cross-platform code and embedded scripts quickly and efficiently. It is an alternative solution to a C/C++ compiler.

Ch is now developed and marketed by SoftIntegration, Inc.

12 questions
1
vote
1 answer

Assigning a single line of user input into a multidimensional array in C / CH

The problem I am having is I need to be able to store 2 values from a single line of user input into a single char array. The format will be "input1 input2" where the input1 is a string like 'C2' and input2 is an integer or double like '1.25' and…
Codero
  • 11
  • 1
0
votes
0 answers

Add Content menubar form in C#

I want to add content headers export from word file in this way picture in the attach the word file included headers but i dont know how [enter image description here(https://i.stack.imgur.com/fNxxI.png)] I read about CH file but I cant to applied
Sara
  • 3
  • 3
0
votes
0 answers

adding a method called 'isLetter' which takes a parameter ch of type char and returns a value of type boolean

Add a method called 'isLetter', which takes a parameter 'ch' of type char and returns a value of type boolean. If 'ch' is a letter from a..z or A..Z then it returns true otherwise it returns false I tried adding the method but i just kept getting…
0
votes
2 answers

MF_MT_AUDIO_BITS_PER_SAMPLE Always Returns Zero for PCM Audio

I've been trying to retrieve the bits per sample in the Media Foundation Framework but it always returns 0, or gives an 'requested attribute not found' HRESULT. Here's the code I've tried, the DWORD streamIndex = 0, flag = 0; LONGLONG audioTimestamp…
pma07pg
  • 516
  • 1
  • 4
  • 16
0
votes
0 answers

Listing all currently imported headers (includes) in C++

I think that many people faced problems linked to some missing header file or library and find themselves with the compiler complaining about some undefined symbol or saying that some function has not been defined in the current scope...Furthermore,…
jihed gasmi
  • 279
  • 4
  • 9
0
votes
0 answers

what's difference betwen int ch vs char ch

why for in following function used 't' for int ch"? ch is int, why use char? Synopsis: #include char *strrchr(char *string, int c); Example: #include int main() { char *s; char buf [] = "This is a testing"; s = strrchr…
0
votes
0 answers

Strings, CSV/Excel, eventually DB, but statistics needed -which tool(s) (Ch, python, ceemple?)

I am currently working on aligning text data, mostly hidden in CSV or Excel files from multiple sources. I've done this easily enough with python (even on a Raspberry Pi) and Openoffice. The issues are: transforming disparate names to unique names…
Mike K
  • 9
  • 1
0
votes
1 answer

What does #ifdef _CH_ preprocessor directive do in C?

Specifically, what is _CH_? I'm pretty sure it is related to some sort of #include safety. This is the form of the code I found in a header file: #ifndef FOOBAR_H #define FOOBAR_H // Function prototypes #ifdef _CH_ #pragma importf…
AndrewH
  • 3,418
  • 2
  • 15
  • 27
-1
votes
3 answers

How to ignore line in shell script and print only required lines

Thank you for looking into my concern! I have developed a script run.sh which is creating a output.txt file and storing output in that file. But the output has multiple unwanted lines.. I want script to ignore those lines and only paste the required…
Saurabh
  • 1
  • 3
-1
votes
1 answer

C - error on reclaring variable

I'm using the Ch C compiler/environment to learn C. I note that when I want to redeclare variables with the same name I get an error: /Users/srm> int c = 1 /Users/srm> c++ /Users/srm> c /Users/srm> 2 /Users/srm> int c = 3 ERROR: identifier 'c'…
srm
  • 548
  • 1
  • 4
  • 19
-2
votes
1 answer

Count of field of 3 tables

I have 3 table EMPLOYEE,HOME,OFFICE in Employee 2 fields available EMP ID,TAG ,Home has 2 filed Home ID,HTAG and office has 3 fields EMP ID,TAG,OFZname EMPLOYEE EmP ID TAG 1 yellow 2 pink 3 green Home Home ID HTaG 1 …
-3
votes
1 answer

Remove whitespace before *

i'm trying to write a function that changes HTML-code to a new markup-languange. Where br and /br is replaced by *. Although, after the first * (br) no whitespace is allowed and before the second * (/br) no whitespace is allowed. An example is given…