Diypa
error: ‘string’ does not name a type; did you mean ‘stdin’? string getText()
Diypa
Char is working, but I want to use it for a string long text
Diypa
Have included, #include <string>
Anonymous
Namespace as well?
klimi
https://stackoverflow.com/questions/16621084/how-to-return-a-string-from-a-c-function seems like it should be possible
Diypa
Yes, namespace is included
Diypa
Thank you Klimi. I try it...
Anonymous
Yes, namespace is included
actually you know , instead of guessing one by one , why not share the whole code ? if too long , pls use online pasting services
Diypa
Thank you
Diypa
It works now. 👍👍 Thank you
Emrehan
i need to scan array number from user in main funtion and i need to send my another function this number with structure pointer how can i do that
HaiNahi
Admin I'm teaching graphics designing free o can share my opinion here if you allow?
I am a programmer, you know to make 3d meshes in blender, aiming to make a video game
Anonymous
int g(vector<int> vi); void f(vector<int>&& vi) { g(move(vi)); } Why the destructor of vector is called after "g" call? Thank you.
Anonymous
Proof https://godbolt.org/z/6z1Px5s1a
Alberto
Can someone tell me why this C code gives me the error: "Redefinition of 'fpin' with a different type: 'int' vs 'FILE *' (aka 'struct _iobuf *')"? Code: #include <stdio.h> #define INPUT "Input.txt" int k=0, x0; FILE *fpin; fpin = fopen(INPUT, "r");
Anonymous
Where is object instantiation part of program. Destructor is called after scope of object ends.
The code above is full. I think a new vector is created before the "g" call. Then it is destructed in function g. But the assembly code is different (it is destructed in function f).
Anonymous
Nice
Does the construction and destruction of the arguments happen in the caller function? I thought it is destructed in the called function.
Sandeep
Yes
Sandeep
But when there is a mismatch..why Len =LPS[len-1]
Anonymous
But when there is a mismatch..why Len =LPS[len-1]
Check out example 2 in this page : https://www.educba.com/kmp-algorithm/
Anonymous
That is exactly the reason why that line is used.
کیا
سلام
کیا
دوتا تمرین دارم دوستان میخاستم انجام بدم کسی هست کمکم کنه
کیا
🙏🙏🙏🙏😢
کیا
خواهشا
کیا
PLEASE
کیا
I have two exercises, friends, I wanted to do it, is there anyone to help me?
Carel
is it C or C++?
کیا
C++
HaiNahi
Any artists here
Carel
yes
HaiNahi
I am a programmer, want to make a video game
کیا
Write a program that displays a menu similar to the one below 1- Record the score 2- Delete the score 3- Sum of total scores 4- The lowest score 5- The highest score 6- Exit Use an array for this program so that the user can enter student grades. By scoring, a score will be received from the user and stored in the last empty cell of the array. Click the delete button to get a number from the user, and if that number from the array contains a score, that score will be removed from the presentation. By tapping option 3, the menu will display the total scores that the user has entered so far. By tapping option number 4, the lowest score ever entered and by tapping option 5, the highest score entered so far will be displayed. Also exit the program by pressing option 6.
Carel
C++
nah, I didn't reach that
Carel
کیا
nah, I didn't reach that
Is there anyone to help?
کیا
MR SANCHEZ
HaiNahi
Dont use gui frameworks, go for SDL
HaiNahi
:)
HaiNahi
IDK
You are artist?
Carel
yep
Carel
check my insta: carel_dfx
HaiNahi
yep
You know to make 3d mesh in blender?
کیا
1- Record the score 2- Delete the score 3- Sum of total scores 4- The lowest score 5- The highest score 6- Exit
HaiNahi
yep
that looks like 2d
artemetra 🇺🇦
because, from the description there are buttons and clicking so it's probably a gui
artemetra 🇺🇦
کیا
Use an array so that the user can enter student grades. By registering a score, a score is received from the user and stored in the last empty cell of the array. Click on the delete button to get a number from the user and if that number from the array contains a score, that score will be deleted from the presentation.
کیا
which one?
همه شماره ها کار کند
کیا
🤨🤨🤨
class Person(Skills): name = str("Ankush Bhagat")
#india
HaiNahi
Any artists here
HaiNahi
I am a programmer, want to make a video game
class Person(Skills): name = str("Ankush Bhagat")
Android or What ?
Anonymous
Hello guys pls help me out
Anonymous
Pls I'm having a problem, I created an app with kivy using python when I run it on my pc it works but when I run it on my android phone it force stop then I checked the problem on Android studio it show me I was having an error "NoModuleFound 'request' " then I fixed the error but when I opened the app again on my android phone it still force closed again then I checked the problem on my android studio it wasn't showing me any error. Pls help me, what can I do?
Anonymous
Pls help me I've been on this for 3 days now
Anonymous
Pls help
Anonymous
.
klimi
i don't see how is this related to c nor c++... could you clarify?
Anonymous
i don't see how is this related to c nor c++... could you clarify?
Sorry, thought I could get some help here, been searching for help everywhere
klimi
Sorry, thought I could get some help here, been searching for help everywhere
if it is related to python, why don't you ask in python group?
Anonymous
.
klimi
.
pardon?
syazwanie suhaini
is there any octave group
Pavel
Sorry, thought I could get some help here, been searching for help everywhere
That's not a good way for finding help, you just wasting your time (and time of the people who will read this), and risking getting banned for offtopic