I'm stuck with an error message that neither I nor any of my computer science peeps can understand. The program I wrote is meant to be a simple decimal to binary converter, but with this message it's more complicated than I thought.
Here's the code:
The error exactly says:
...\dectobin.cpp:27: error: invalid types 'bool [100][double]' for array subscript
...\dectobin.cpp:30: error: invalid types 'bool [100][double]' for array subscript
If it helps, I'm using Quincy... but only because my lecturer is using Quincy.
Any help is appreciated greatly.
PS, is there any reason why the variable k can't be of type int?
Hi I have the following script and have problem debugging the problems. The function of this script is to make sure the entire file is being received (the filesize of a data is not changing after 20 seconds) and start moving the file to another directory. This script should be started every 30mins.... (5 Replies)
I have a Perl script, that does a system call with rsh to a remote machine.
#!/usr/bin/env perl
system ("rsh remote-machine echo 99");
And I get the following:
stty: standard input: Invalid argument
99
I've tried replacing the system call with below, but I still get the same stty... (1 Reply)
Hi, I am getting the error
01.30 Invalid shell error
I am running the bash shell script in the korn login shell.
I have mentioned the #!/bin/bash statement in the my script but not sure why it is giving this error to me.. (4 Replies)
Hello everyone.
I'm stuck with an error message that neither I nor any of my computer science peeps can understand. The program I wrote is meant to be a simple decimal to binary converter, but with this message it's more complicated than I thought.
Here's the code:
#include <iostream>... (2 Replies)
Here is the question...
Create a new script, sub2, taking three parameters...
1.) the string to be replaced
2.) the string with which to replace it
3.) the name of the file in which to make the substitution
...that treats the string to be replaced as plain text instead of as a regular... (1 Reply)
Hi,
I have this script which gives me output as Invalid null command
set recent_file=`grep '^-.*xlsx$' $FTP_LOG |\
sed -e 's/Jan/1/g' \
-e 's/Feb/2/g' \
-e 's/Mar/3/g' \
-e... (6 Replies)
I'm writing a DB to manage books & dvd's for the library.
So after they added more books/dvd's, they press the print button and all newly added entries are printed.
That is, as it prints all 'printed = false' entries, which (false) is the default value for that field for each new entry.
... (3 Replies)
I have a problem at make step to install a downloaded package consisted of different programs.
In file included from kcdbext.cc:16:0:
kcdbext.h: In member function �char* kyotocabinet::IndexDB::get(const char*, size_t, size_t*)’:
kcdbext.h:1281:14: error: cannot convert �bool’ to... (3 Replies)
Discussion started by: yifangt
3 Replies
LEARN ABOUT DEBIAN
xtsettypeconverter
XtAppSetTypeConverter(3) XT FUNCTIONS XtAppSetTypeConverter(3)NAME
XtAppSetTypeConverter, XtSetTypeConverter - register resource converter
SYNTAX
void XtAppSetTypeConverter(XtAppContext app_context, String from_type, String to_type, XtConverter converter, XtConvertArgList con-
vert_args, Cardinal num_args, XtCacheType cache_type, XtDestructor destructor);
void XtSetTypeConverter(String from_type, String to_type, XtConverter converter, XtConvertArgList convert_args, Cardinal num_args, XtCa-
cheType cache_type, XtDestructor destructor);
ARGUMENTS
app_context
Specifies the application context.
converter Specifies the type converter procedure.
convert_args
Specifies how to compute the additional arguments to the converter or NULL.
from_type Specifies the source type.
num_args Specifies the number of additional arguments to the converter or zero.
to_type Specifies the destination type.
cache_type
Specifies whether or not resources produced by this converter are sharable or display-specific and when they should be freed.
destructor
Specifies a destroy procedure for resources produced by this conversion, or NULL if no additional action is required to deallo-
cate resources produced by the converter.
DESCRIPTION
XtSetTypeConverter registers the specified type converter and destructor in all application contexts created by the calling process,
including any future application contexts that may be created. XtAppSetTypeConverter registers the specified type converter in the single
application context specified. If the same from_type and to_type are specified in multiple calls to either function, the most recent over-
rides the previous ones.
SEE ALSO
X Toolkit Intrinsics - C Language Interface
Xlib - C Language X Interface
X Version 11 libXt 1.1.3 XtAppSetTypeConverter(3)