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...
How would I create an array of pointers, where each pointer in the array points to a character string in another array?
any help would be vastly appreciated
Hi,
I am trying to create an array of strings (e.g each element of the array contains a complete string), but am unable to do so the strings to be stored come from a standard array of characters called extract. extract is populated by a loop which takes characters between quotes. after this I...
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.