klimi
But you need a network that allows the connection
Asad
can i do it using local wifi connection?
Asad
or do i need a server? in that case i can turn my old laptop into local server. anyways i have to make that chat application.
Asad
you need to study
all right. what do i need to study?
Anonymous
all right. what do i need to study?
basic network books, IP, TCP and UDP
Asad
ok. thanks bro.
Dima
Оо Cornelius
Dima
Arthur
calculator
Calculator project starts from chapter 6, here: http://www.stroustrup.com/3rd.html
PB
/rules
NXiss7
That seems like for librarys only?
You could just try it. I haven't done such a thing before...
Anonymous
something fun: #include <cstdio> using namespace std; struct A { virtual void printA() { puts("A"); } }; struct B { virtual void printB() { puts("B"); } }; int main() { A x; B *px = (B *)&x; px->printB(); return 0; }
Nils
How can I use execve in c++?
Nils
I did not manage to use it without some weird C stuff that causes c++ errors
Dev
what is difference between array out of bounds and array out of index exception?
mbuf
/warn
Dima
bruh
klimi
Bruh
Nils
ISO C++ forbids converting a string constant to ‘char*’ gccargs[0] = "g++"; Any idea?
Nils
char *gccargs[4]; That is how I initalised gccargs
Artöm
What is the order of constructor call?
Base (recursively), then fields
Artöm
Free ban maybe?
Nils
I'am working it around now, but getting even weirder results now…
Nils
execl("/usr/bin/echo", "/usr/bin/echo", "g++", sourceoutfile.c_str(), "-o", argv[2], NULL); execl("/usr/bin/env", "/usr/bin/env", "g++", sourceoutfile, "-o", argv[2], NULL); It works like this, but as soon as I remove the upper line it fails: g++: error: �W��U: Noch such file or directory
Nils
Even with the upper line the generated build is errorneous
Nils
wait, does execl() fork?
Nils
since right after that line the program reaches its end…
Artöm
Aint gcc warns you about std::string passing to exec?
Anonymous
void * memset ( void * ptr, int value, size_t num ); So, I can't initialise any array with any value that I want other than 0.
memset is byte oriented. value will be converted to unsigned char, and then it fills the buffer pointed by ptr
Artöm
Weird
Nils
Weird
Can I somehow wait for all processes called by execl() to exit before exitting the main process?
Nils
I'd have to temper with SIGCHLD, right?
Artöm
Dunno, I rarely use linux api
Nils
Dunno, I rarely use linux api
I did not mean to ping you, sorry
Zahid
i need a litle help
Anonymous
hey guys
Anonymous
is hacking talks alloweed in group
Anonymous
?
Anonymous
I'v not read the rules but i agreed with them 😁
Asdew
No
What about the 5th rule?
Dima
What about the 5th rule?
He didn’t read the rules so no for him
Dima
Sounds logical
Lord P∆RTH
hii
M.A.S.S.É.O
hi
Lord P∆RTH
wassup
manas
Why are static_cast and dynamic_cast not a part of the std namespace?
Artöm
They are keywords and core expressions, not functions
Dima
lol, again?
Dima
idiots
manas
But it is correct
manas
nope
I mean it does look like a proper function, with templates and everything
HLEBR
One symbol to base64
Anonymous
is hacking talks alloweed in group
Not allo"weed"
Luca
can you help me #include <stdio.h> #include <string.h> #include <stdlib.h> #define MAX 1000 void cambiaNum(char l, int scelta); void main() { char ch = getchar(); int n; // numero di elementi della stringa int a; char c; int camb; long double b; printf("quanti caratteri vuoi inserire nella stringa?\n"); scanf("%d", &n); for(int i=0; i<n; i++) { printf("inserire valore\n"); scanf("%hhd", &c); a=(int)c; c=b; if(a==b) { cambiaNum(c, camb); }else { camb=0; cambiaNum(c, camb); } } } void cambiaNum(char l, int scelta) { char lista[MAX]; char *p; *p=l; while(*p!='\0') { if(scelta==0) *p='#'; else { *p=l; } p++; printf("%c\n", *p); } }i have to do an application that detects by pointers integers numbers inside a string and change them by '#'
Luca
and i'm becoming crazy ffs cuz of pointers and this "check for integers"
Luca
Luca
i have no idea dude
Luca
im becoming crazy
Deni
b isn't used
Deni
It Is ub lol
Anonymous
Does anyone have "Let us C by Yashwant kanitkar "
Dima
nopr
Anonymous
Anyone else