Anonymous
https://bit.ly/2MMzNny Someone answer this
https://www.quora.com/How-do-I-find-all-contiguous-subsequences-of-a-given-array-in-C
Alignant
Do not post short links
Illegal username!
Anonymous
Illegal username!
Yes bro call the police I don't care
Anonymous
https://bit.ly/2MMzNny Someone answer this
No one will write code for you
Alignant
https://bit.ly/2MMzNny Someone answer this
It's not a difficult algorithm, look up substring search
Ayebakuro
I've read the rules and I agree with them
Alignant
Is it possible to build a p2p network with ASIO? If yes, then I'd like to see a repo. Cuz I looked up torrent and BTC, they all write their networking libs from scratch.
Brown
Guys what is the reason for using manual memory allocation in C ?
Somaly
void Product::retailPrices(string bookFormat, double retailPrice) { if (bookFormat == "a") retailPrice = (wholesalePrice + 43) / 100; if (bookFormat == "e") retailPrice = (wholesalePrice + 8) / 100; if (bookFormat == "h") retailPrice = (wholesalePrice + 45) / 100; if ((bookFormat == "s") && (bookFormat == "p")) retailPrice = (wholesalePrice + 27) / 100; } Hello guys I’d like to get the value of retailPrice which is in the base class and print out to the other text file The code below I get the whole sale price first because I don’t know how to get the value of the retail price which I calculated already on the top. How to fix it? for (int i = 0; i < 25; i++) { if (inProduct[i].bookFormat == "a") { outFile << setw(25) << left << inProduct[i].getIsbn() << setw(35) << inProduct[i].getTitle() << setw(15) << inProduct[i].getSurname() << "$" << setw(24) << inProduct[i].getWholesalePrice() << setw(15) << inProduct[i].stockLevel; outFile << "\n"; } }
Imma
Hello am new here
Imma
Please I need to learn how to create apps using code blocks c++
Imma
Thanks
Imma
I'm learning the Language too
U will teach me small please
Imma
Carry me along
Anonymous
Carry me along
Do you know C++, are you a beginner?
Imma
Do you know C++, are you a beginner?
Yes I am a beginner but I have great passion for it
Imma
I can create a simple calculator n do other simple things for now
Imma
But I want to learn n grow in it
Álvaro
https://forms.gle/bMBLmnWjFXFdECTu8 Hi! I would like you to participate in this survey. It is about choosing a name for a community, it takes less than 1 minute. Thank you! 😄
Anonymous
I can create a simple calculator n do other simple things for now
That's Great, you should learn all the basics stuff first, loops, functions, pointers, object oriented like classes, and all data types too, primitive and derived like array, linked list, stack, queue. Learn all the Basics..👍
Anonymous
Can someone please guide me where to study Struct line {*its details } Main{ vector<line> } Like programs .. Cause i cant solve suck questions...and been through real hard time
Anonymous
So you created data type with struct and used it to make a vector..👍
Anonymous
yes
Anonymous
i cant implement vector properties like sorting , deleting and pairing.
Anonymous
with this datattype
Anonymous
I see you didn't declare a vector. And didn't insert any elements too..
Anonymous
I see you didn't declare a vector. And didn't insert any elements too..
i just give example of program related i wanna study but in actual i have declared vector , algorithm libraries
Anonymous
u know any sources, or been through these type of problems before???
Anonymous
if so we i can share the question in personal cause i reallly wanna complete it by myself
Anonymous
Nah Man Sorry..
Anonymous
its okay UwU
Anonymous
anyone please !!!!!!
Good
Good
In the above program I am trying to invoke the function using threads and its working fine
Good
if I invoke the same function directly instead of threads I am getting the below error
Good
Good
Can you please help me what is the problem on line number 20(I commented the code)
Thomas
Hello everyone, I'm new to programming in C so please be patient with me if I don't understand things right away. I'm trying to assign zeros to an array that has n elements(number of elements in Daten). It's not working though as I get the following error: variable-sized object may not be initialized. I found this website: https://stackoverflow.com/questions/3082914/c-compile-error-variable-sized-object-may-not-be-initialized but I can't seem to wrap my head around what I have to do so that my code works.
Thomas
Dima
you need to enable VLA (variable length arrays) or allocate dynamically
Thomas
yeah
Thanks!
Anonymous
Hi😊
Stephen
Hi😊
Hi too
Sandro
How should I initialse the Sum?
First of all initialise the variable sum as 0, then I thing is better to use a do while cycle instead of while, put the weight value in sum with +=, increase the count, when the cycle do while is out you have to calculate the average as avg = sum / count. At this point you can print the total weight with sum variable, the number of input with count and the average with avg. That's all
Prince
Hii
ملهــم | Molham
😭😭
Spirit
So, the for loop in the switch case?
for (int i=0; i<5; i++) switch(i%2) { case 0 : printf("******"); break; default : printf("\nUITM\n"); }
Anonymous
Hii
...
Why does the compiler does not take char input in an 2D array while it is an integer input it is taking ?
...
Why does the compiler does not take char input in an 2D array while it is an integer input it is taking ?
#include<stdio.h> int main() { int n; scanf("%d",&n); char a[n][n]; int i,j,b[n][n],k=0; for(i=0;i<n;i++) { for(j=0;j<n;j++) { scanf("%c",&a[i][j]); } } for(i=0;i<n;i++) { for(j=0;j<n;j++) { printf("%c",a[i][j]); } } return 0; }
Spirit
Switch cases test against constant expressions
Sorry, switch(i%2), and case 0: ?, Wouldn't that fix it
Spirit
Edited
also for loop should have had i<5 not i<4
Spirit
whoopsies thats what i get for tryng to do other peoples homework, and im noot a programmer just a construction worker
Aarush Singh
/programming
Anonymous
How should I initialse the Sum?
-ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowning-it-will-be-removed-from-clang
Anonymous
Hello
Nilo
hello, I just joined, but I want to read a lot first.
Rahul
https://www.hackerearth.com/problem/algorithm/longest-common-subsequence-2/description/
Rahul
Can anyone explain this problem
Anonymous
How can I generate a random number of range 1 to 1e9 in cpp, rand function seem to have a RAND_MAX which is atleast 32767, any insights
Anonymous
INBOX FOR PERMANENT ONLY
Dishant_18cs160
Long challenge anyone
Hackman
please how to use the object field of a class in an object belonging to another class
Kobbina
Can I get the Admin pls ?
Anonymous
What?
Clang has automatic variable initialization
Anonymous