%#%*%*
Actually i have to change the case of the specific indices in a string stored in an array ..so I am using the ascii code to change the cases of those required indiced characters ..thus when I am getting the ascii codes of changed case characters in a variable then I need to again assign those characters which the modified ascii code corresspond to after changing the case thus i need to store those characters with the help of their ascii codes ..
Alex
int arr[256]; its ok to use arr['A'] 'A' - is translated to 65
Alex
Alex
yes
Dima
lmao
su
Shvmtz
What is the best IDE supported in linux ?
Dima
Dima
crossplatform ones
Shvmtz
Anonymous
does anyone do Audio plugin/host dev
su
Visual Studio Code
su
Shvmtz
V01D
Anonymous
or rather, this would be a wrong approach to plugin processing right? (in pseudocode)
while(true) {
if (sampling) sampling = sampler.process(in,out);
for every frame in frames {
if (event(frame)) {
sampler.reset();
sampling = sampler.process(in, out);
} else {
if (!sampling) {
writeSilence(out, frame);
}
}
}
}
Anonymous
I know this kind a bit ez but Im just confuse with the problem How can I perform this?.
Anonymous
Problem 1
The user will identify the teams and the players lefts overs. Write the pseudocode and draw the corresponding flowchart given the following conditions
How many players do you wish per team?
(Enter a value in the range 9-15):4
How many players do you wish per team? 12
How many players are available: -142
Please enter a positive number: 142
There will be 11 teams with 10 players left over.
just me
Hello friends, how are you? I have an application code that I want to adjust to make the latest version of the application work. There is a jailbreak. Does anyone know what ..?
Alex
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
-- Configuring done
terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::replace: __pos (which is 18446744073709551615) > this->size() (which is 130)
Aborted (core dumped)
what is the possible issue? no results in google
OS: Ubuntu
cmake .. works fine
su
Anonymous
su
Anonymous
prove it
https://code.visualstudio.com/docs
Visual Studio Code is a lightweight but powerful source code editor
Anonymous
Shvmtz
it is
Visual studio code is a code editor
whereas Visual studio is an IDE supported in windows.
Shvmtz
Btw I have a doubt
su
Shvmtz
What is the actual difference between code-oss and visual studio code ?
Anonymous
su
Anonymous
Anonymous
Anonymous
#ot
V01D
Cristi
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<time.h>
#include <curses.h>
int** allocArrayMatrix ( int nl, int nc);
void showArrayMatrix(int ** a, int nl, int nc);
void formArray(int ** a, int nl, int nc);
int SumArray(int ** a, int nl, int nc);
void freeMemoryArray(int** a, int nl);
int main() {
int **a, nl=10, nc=10;
int f;
int *p;
a = allocArrayMatrix(nl, nc);
if (a == NULL) {
puts("Memoria p/u tabloul 2-D nu a fost alocata");
}
else {
puts("Memoria a fost alocata cu succes");
}
formArray(a,nl,nc);
printf("\nTablul bidimensional format:\n ");
showArrayMatrix(a,nl,nc);
p = SumArray(a, nl,nc );
for (f=0;f<nc;f++){
printf("%d\t",*(p+f));
}
freeMemoryArray(a,nl);
}
int ** allocArrayMatrix( int nl, int nc) {
int i;
int** a=(int **)malloc(nl*sizeof (int*));
if (a==NULL) return a;
for (i=0; i<nl ;i++)
{a[i] =(int*)malloc(nc*sizeof(int));
if (a[i]==NULL) return NULL;
}
return a;
}
void showArrayMatrix(int ** a, int nl, int nc)
{
int i,j;
for (i=0;i<nl;i++){
for (j=0;j<nc;j++) {
printf ("%d\t", a[i][j] );}
printf("\n"); }
return;
}
void formArray(int ** a, int nl, int nc)
{
int i,j;
for (i=0;i<nl;i++){
for (j=0;j<nc;j++)
a[i][j] = rand()%100-50 ;
}
return;
}
int SumArray(int ** a, int nl, int nc)
{int i,j, Sum;
static int b[10];
for (i=0; i<nc; i++){
Sum = 0;
for (j=0;j<nl;j++){
Sum = Sum + a[j][i];
}
b[i] = Sum;
}
return b;
}
void freeMemoryArray(int** a, int nl) {
int i,j;
for (i = 0; i < nl; i++) {
free(a[i]);
}
free(a);
}
I have a problem, Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
gulshan
Hi
Cristi
I need to get sum of all elements per column of a bidimesional Array and put in anothe onedimensional array. I have a prblem with the second
S
Ok😉
Anonymous
Dima
Bruh
Anonymous
Bruh
Anonymous
Anonymous
What are pointers used for?
Anonymous
ברני
@unterumarmung why you're not disable the picture option?
Anonymous
Point to a specific variable.
Anonymous
Anonymous
Point to an object
Anonymous
Anonymous
@Neko_cpp
Anonymous
Java does not use pointers, I think that is the main difference between the two language isn't it?
Anonymous
Anonymous
Anonymous
Anonymous
Anonymous
Anonymous
Also Java has the garbage collector.
Anonymous
That manages memory automatically.
Anonymous
So you came here to state facts about Java or what?
Anonymous
Anonymous
Forget about Java in thus chat
It's offtopic here
Anonymous
What is the best library to use to build user interface?
ברני
Anonymous
If you need to discuss Java, find an appropriate group here @en_it_chats
Anonymous
Anonymous
Dima
nice
ברני