what i mean as far as I know belongs in unix, I want to make page for --help for my program.
to clarify try >man --help
this will display not a man page but short page on the command lines for the man utility
i'm running winME and Miracle C Compiler (r3.2)
and this is the minimumal code.
This line creates the compiler error
----> double expon(){
#include <stdio.h>
#include <stdlib.h>
main()
{
printf("\nreturned: %.0f", expon());
}
double expon(){
double temp;
temp = 1...
I wrote this function it should return a double but the compiler returns this error:
line 38: incorrect function return type
this is my code line 38 is the second line
double expon(int n, int m, int o, int p)
{
int i;
double temp;
temp = 1;
for (i = 1; i < (m + 1); i++)
{...
i'm writing a c implementation of RSA that needs to deal with large int values can i extend the number of bits assigned for int type to handle these large numbers?
this code is surrposed to create a pipe place two messages on it then read them off.
[code]
#include <unistd.h>
#include <stdio.h>
#define msgSize 8
char *lock = "1";
char *unlock = "2";
main(){
char inbuf[msgSize];
int p[2], j;
/* open the pipe */
if (pipe(p) ==...
I have used this line of code but am unable to set the scrollPane to always visible. Can anyone help?
this.getContentPane().add(new JScrollPane(TA));
where TA is the name of the JTextArea.
Is theis the correct code to create an array of pointers using malloc
b = malloc(256 * sizeof(char*));
if so how do I set the memory address pointed to by each pointer.
e.g
b[i] = &extract[i];
trying to create a two dimensional array of strings using malloc.
I use this line to try and create a 2d array of strings
char a[256];
char b*
b = malloc(10 * sizeof(a));
this should create an array of ten rows where each row contains a string of up to 256 characters.
if this is correct do...
I wrote this code it is surposed to take an input string like
a"bcd"e"fgh"i
and extract the strings that occur inside the " " and tsore them in an array once the whole input string has been examined the function dumpstring should print out all the extracted...
thanks for the help
this will not work in my problem my string array ispopulated by a loop and looks like this if input strings are "one" "two" "three"
on the first pass the array will contain
oneNUll
on the second
oneNULLtwoNULL
on the third...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.