15,897,718 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by iwanttoaskquestions (Top 20 by date)
iwanttoaskquestions
3-Nov-21 7:49am
View
oh ok thank you for the tip.
iwanttoaskquestions
3-Nov-21 5:47am
View
i have remade the push_back() function, can you tell me if things are wrong:
void push_back(T& is) {
if (size >= capacity) {
capacity = capacity + 10;
scores<t> newscore;
for (int i = 0; i < size; ++i) {
newscore[i] = myscores[i];
}
myscores = new T[capacity];
for (int i = 0; i < size; ++i)
myscores[i] = newscore[i];
}
myscores[size] = is;
++size;
}
iwanttoaskquestions
3-Nov-21 5:07am
View
How do I allocate more memory on this array? Could you please explain it to me?
iwanttoaskquestions
3-Nov-21 0:24am
View
Deleted
oh thanks for the solution. But I also don't know how to check if the size if equal to the capacity and I don't know how to allocate more memory. Could you explain it me?
iwanttoaskquestions
25-Oct-21 4:34am
View
oh ok thank you
iwanttoaskquestions
20-Sep-21 2:45am
View
thank you, i understand now
iwanttoaskquestions
20-Sep-21 2:44am
View
oh ok thanks
iwanttoaskquestions
3-Sep-21 1:39am
View
Thank you it works. But I am having a problem understanding why. Can you please explain it to me?
iwanttoaskquestions
9-Jul-21 8:26am
View
alright, thank you
iwanttoaskquestions
9-Jul-21 8:26am
View
oh ok, thank you i understand now
iwanttoaskquestions
28-May-21 9:06am
View
thank you
iwanttoaskquestions
28-May-21 9:06am
View
thank you
iwanttoaskquestions
28-May-21 9:06am
View
thank you for helping
iwanttoaskquestions
23-May-21 6:12am
View
thank you
iwanttoaskquestions
23-May-21 6:12am
View
thank you very much for the solution
iwanttoaskquestions
22-Apr-21 0:57am
View
thank you
iwanttoaskquestions
8-Apr-21 3:50am
View
thank you very much.
iwanttoaskquestions
7-Apr-21 3:16am
View
thanks
iwanttoaskquestions
7-Apr-21 3:16am
View
ahh i see
iwanttoaskquestions
7-Apr-21 2:30am
View
Im sorry but i still don't see why
Show More