15,899,679 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 Hamza Jameel (Top 28 by date)
Hamza Jameel
4-Jan-24 11:19am
View
I wonder same code is working fine on another server 100% correctly but not here
Hamza Jameel
4-Jan-24 11:18am
View
Thank you for replying. What should I paste so you can get it?
I get a bunch of files not found errors on the 404 error page.
NotFoundError: Not Found
at /root/cashback/app.js:321:10
at Layer.handle [as handle_request] (/root/cashback/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/root/cashback/node_modules/express/lib/router/index.js:317:13)
at /root/cashback/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/root/cashback/node_modules/express/lib/router/index.js:335:12)
at next (/root/cashback/node_modules/express/lib/router/index.js:275:10)
at /root/cashback/node_modules/express/lib/router/index.js:635:15
at next (/root/cashback/node_modules/express/lib/router/index.js:260:14)
at Function.handle (/root/cashback/node_modules/express/lib/router/index.js:174:3)
at router (/root/cashback/node_modules/express/lib/router/index.js:47:12)
one common function at this location is function(req, res, next) {
Hamza Jameel
21-May-22 7:16am
View
I have updated question with "names.txt" content.
Hamza Jameel
1-May-22 14:52pm
View
Yea fixed it by redeclaring array "int arr[n]"
Thanks :)
Hamza Jameel
21-Apr-22 12:15pm
View
I am trying to create array of objects and then need to assign data to each object through array of data.All constructors are called after creating array of object. :). To assign data we need setdata function. then what is use of constructor here.
Hamza Jameel
12-Mar-22 10:51am
View
Thanks ;)
Hamza Jameel
23-Jan-22 11:56am
View
@CPallini Thankyou for helping out. I understand everything apart of logic behind declaring sum inside while loop. why can't declare it outside.
Hamza Jameel
23-Jan-22 11:55am
View
@0x01AA Yes we need to make copy otherwise it won't work :D
Hamza Jameel
23-Jan-22 11:55am
View
Deleted
I tried without it.
@CPallini Thankyou for helping out. I understand everything apart of logic behind declaring sum inside while loop. why can't declare it outside.
Hamza Jameel
23-Jan-22 11:55am
View
Deleted
I tried without it.
@CPallini Thankyou for helping out. I understand everything apart of logic behind declaring sum inside while loop. why can't declare it outside.
Hamza Jameel
23-Jan-22 9:58am
View
No it doesn't work. it still gives the wrong check digit
Hamza Jameel
23-Jan-22 9:33am
View
You mean i should explain LUHN algorithm??
I don't enter any value it generate value itself
Hamza Jameel
23-Jan-22 9:32am
View
@0x01AA my code follows LUHN Algortham step by steps. I checked it by printing that 16 digit array after every process. Without while loop (which checks that the number which we need to add in sum so it can be dividable by 10 is equal to checksum) it works perfectly. I tried running code again and again without while loop untill it generate a string whose that number is equal to checksum. then on checking on a card validator website it follows LUHN rules. Problem only occures when I try to do it with while loop so it can keep finding that number.
Hamza Jameel
23-Jan-22 4:47am
View
Solved Thanks
Hamza Jameel
22-Jan-22 11:40am
View
I broke up string and updated the code. I now have seperate numeric values but didn't get your hint to convert each one in int. To do math in numbers I have to convert them to int otherwise they show characters. I tried to use stoi() to convert to int but it is not working
Hamza Jameel
22-Jan-22 11:27am
View
Deleted
Hi I broke the string using n[i]. Can you further guide me how to convert each in int array.
Hamza Jameel
15-Jan-22 7:45am
View
It worked perfectly thanks!
Hamza Jameel
15-Jan-22 7:32am
View
I fixed it but still getting same error.
updated the code
Hamza Jameel
11-Jan-22 6:04am
View
Please See this link for example
https://ibb.co/pKWyxCt
Hamza Jameel
5-Jan-22 13:52pm
View
Thankyou so much. Solved :)
Hamza Jameel
5-Jan-22 13:33pm
View
definitely 0.0/10.0 will show 0
but for example user answers 4 answers correctly the it will be 4.0/10.0. So it should show 0.4 instead of 0 as we are taking double data type :(
Hamza Jameel
5-Jan-22 13:28pm
View
0.0(marks) divided by double total marks
0.0(whatever result) / 10.0
Hamza Jameel
5-Jan-22 13:22pm
View
http://cpp.sh/2npgr
you can see code here
name and sapid can be anything.
Press 1 to start quiz(only this one works as programe is remaining are yet to complete.
Hamza Jameel
5-Jan-22 13:17pm
View
[Error] invalid suffix "d" on integer constant
Hamza Jameel
5-Jan-22 13:15pm
View
Hi. Thanks for replying. It works perfectly individually. But putting it along with other functions in my project it still shows 0. double marks has incremenet as user tells right answers.
Hamza Jameel
30-Dec-21 13:29pm
View
Hi, Thanks for answering. it worked perfectly :)
Hamza Jameel
17-Oct-21 11:11am
View
Thanks I will keep in mind.
P.S it's for my grades
Hamza Jameel
17-Oct-21 11:10am
View
Deleted
Thanks i will keep in mind
p.s it's for my grades
Show More