itsmanjeet
Which api to play sound in cpp under linux I need feature like play only particular part of sound file
itsmanjeet
Format = any
Dima
OpenAL
Anonymous
Plus operator program please
BinaryByter
I want to be woken up by this message read aloud by siri
Dima
Anonymous
This pointer
Anonymous
Program
Anonymous
Please
BinaryByter
In C++?
Dima
maybe you want ++C?
Ritu Raj
Plus operator program please
#include<iostream.h> using namespace std; int main() { int a,b; cin>>a>>b; cout<<a+b; }
klimi
i dont get it
Ritu Raj
Ritu Raj
Wait
Ritu Raj
complex operator+(complex c) { complex temp; temp.a=a+c.a; temp.b=b+c.b; return temp; }
Ritu Raj
Please
Do you want example??..... Or you want to solve any question?
Dima
this is just the assignment
BinaryByter
my favorite homework to do is the one assigned by some random indian prof I never heard of :^)
Dima
Ritu Raj
@Saialwaysgood try to code yourself buddy..... I will tell you to correct your mistakes so that only you can correct it, not us..😂😂😂
BinaryByter
oh right, he has a profile picture about us reporting his mistakes to himself except for...
BinaryByter
well...
BinaryByter
the text is cut off
Anonymous
Z
14•08
Hahaha
14•08
Anonymous
https://shcode.de/paste/?cd105a016e7c9f40#8HhVHtzqPIiGoka5TCmHm7jttqF7f7DSRweEq1+lSmU=
Anonymous
Hey guys if any of you are using Macs do you know how to link g++ with gcc installed via Homebrew instead of using the gcc that comes shipped with apple
Dima
set env
Anonymous
I tried going to /usr/local/Cellar/gcc/8.2.0/bin and creating a symbolic link ffrom g++-8 to g++ and same for c++-8 but didn't work
Anonymous
set env
When I do which g++ it still shows me /usr/bin/g++
Krishna
How to use graphics in codeblocks
BinaryByter
/ban you just did an oopsie
Nicola
i have a problem ahah
Nicola
when I use bitset<4>
BinaryByter
why do you use bitset?
Nicola
to convert binary values contained in an array of integers into a string instead of adding 0 adds 1
Nicola
Nicola
It should be 0110 and not 1110
Nicola
just umm... use std::cout « std::setbase (2);
with setbase I do not just change the output?
BinaryByter
instead of converting your ints to some array, just use a stringstream with setbase (2) and convert that to a string
BinaryByter
voila
BinaryByter
no need to overcomplicate your life
BinaryByter
setbase (4) for base 4 representation of digits
Nicola
and where do I put it
Nicola
110 - > 0110
BinaryByter
std::stringstream a; a « setbase (2); a « myInt; std::string result = a.string();
Nicola
One moment
Krishna
class Graphics
Codeblocks doesn't contain graphics header file & class
Dima
you can use dx or opengl
Dima
it should be included with os or sdk
Dima
if you are talking about graphics.h, then we don’t like you
Nicola
Nicola
v1 is a vector of integers that contains 110 etc ... and I want my string s to be that one (add a lot of 0 forward in order to have a 4-digit number to concatenate)
BinaryByter
/ban seize having seizures!
Krishna
codeblocks is just the ide
Then turboc also a ide & it contains graphics.h
Dima
Dima
t.me/programminginc/82932
Dima
no turbo c stuff or some deprecated stuff
Dima
yeah keeping tech support guys away
Dima
14•08
yeah keeping tech support guys away
Haha Yo kinda gud and social but others admin ar very harsh