%#%*%*
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
%#%*%*
int arr[256]; its ok to use arr['A'] 'A' - is translated to 65
If i want to store ..say.. character corresponding to 65 in a[2] block only then ?
Alex
If i want to store ..say.. character corresponding to 65 in a[2] block only then ?
if you want store character in array just use a[0] = 'A' or a[0] = 65
%#%*%*
if you want store character in array just use a[0] = 'A' or a[0] = 65
And if that 65 is stored in a variable t then i should write a[0]=t ,shouldn't I ?
Alex
yes
su
If you don't understand my question don't answer
If you cant make a question property, do not expect answers as well
Dima
lmao
ברני
If you cant make a question property, do not expect answers as well
Yes, Probably my question was off, anyway I figured it out, ty anyway :)
Shvmtz
What is the best IDE supported in linux ?
Dima
crossplatform ones
Anonymous
does anyone do Audio plugin/host dev
su
Visual Studio Code
Anonymous
Visual Studio Code
It's not an IDE
Shvmtz
Visual Studio Code
It is not an IDE
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
Anonymous
it is
It is not
su
It is not
prove it
Anonymous
prove it
https://code.visualstudio.com/docs Visual Studio Code is a lightweight but powerful source code editor
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
Shvmtz
What is the actual difference between code-oss and visual studio code ?
Anonymous
it is not a code editor, it is a full featured IDE
Can't say it's a FULL FEATURED though
Anonymous
#ot
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
What are pointers used for?
ברני
@unterumarmung why you're not disable the picture option?
Anonymous
Point to a specific variable.
Anonymous
Point to an object
Anonymous
Anonymous
@Neko_cpp
Anonymous
Point to an object
Ok, may say that it is a memory address.
ברני
This is good question, I don't know
It will be easy for not get people ban, and also teach them to actually look for a way to write a code and use Google 🙈
Anonymous
Java does not use pointers, I think that is the main difference between the two language isn't it?
Anonymous
It uses pointer and call them references
But can I use Java to access the memory directly?
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
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
Your own *stagadish*
Sorry I didn't understand.
ברני
Sorry I didn't understand.
Sorry bad joke, in the indestry you ussaly use your own laibrerys
Dima
@Neko_cpp
lol great idea actually
Dima
nice
ברני
lol great idea actually
Thank you ☺️