15,906,708 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 Stefano Lodico (Top 6 by date)
Stefano Lodico
1-Nov-15 13:40pm
View
The question is: What's the problem with this code? I tried with gdb and it tell me "Inferior 1". It stop to the first step. Why this problems? Where is the error in this code?
Stefano Lodico
31-Oct-15 13:07pm
View
I updated the main post.
Stefano Lodico
31-Oct-15 13:07pm
View
I updated the main post.
Stefano Lodico
31-Oct-15 9:32am
View
Sorry
Stefano Lodico
31-Oct-15 9:16am
View
This is compiler result:
m.cpp: In member function ‘T matrix::crea()’:
m.cpp:17:15: error: expected type-specifier before ‘<’ token
auto a = new<t>*(riga);
^
m.cpp:17:17: error: expected primary-expression before ‘>’ token
auto a = new<t>*(riga);
^
m.cpp:17:24: error: invalid type argument of unary ‘*’ (have ‘int’)
auto a = new<t>*(riga);
^
m.cpp:20:12: error: expected type-specifier before ‘<’ token
a[i]=new<t>(colonna);
^
m.cpp:20:14: error: expected primary-expression before ‘>’ token
a[i]=new<t>(colonna);
^
m.cpp: In function ‘int main()’:
m.cpp:31:9: error: ‘crea’ was not declared in this scope
auto v=crea<int>(5,10);
^
m.cpp:31:14: error: expected primary-expression before ‘int’
auto v=crea<int>(5,10);
Stefano Lodico
31-Oct-15 9:14am
View
The problem is a loop. Is there something incorrect?
Show More