-
Posts
8 -
Joined
-
Last visited
Reputation Activity
-
rexist reacted to DXMember in Help with C++ loop
while (variable != 'A') { //CODE } // variable can't be A, B, C and D at the same time, when you do logical OR on those conditions // you always get True, // because if the variable is 'A' then it's not 'B' so the condition is true // You have to make sure the variable is none of those values at the same time while ((variable != 'A') && (variable != 'B') && (variable != 'C') && (variable != 'D')) { //CODE } Here's a great article explaining the difference between Logical AND and Logical OR operators
https://msdn.microsoft.com/en-us/library/z68fx2f1.aspx
-
rexist got a reaction from IvanSnipedYu in Can someone explain to me why this wont work? [Java]
your condition for do...while loop is wrong
let's say your input's string is = "This App Won't worK"
the length would be 19
if your x start from 0 to <= 19 that would be 20 loops for only 19 characters.
the first 1 was already close thou.
it should be while(x<k)
-
rexist got a reaction from LukeTim in Programmers Lounge
Just signed up.
I'm a beginner, mostly use PHP, VB, C++.
and some experience in Java, Clips, Prolog, Python.
I create some program once in a while.
Now try to fiddle around php using mysql database using PDO to see how to actually create a secured, neat, effective dynamic e-commerce wether it's from the database, server or programming pov.
I'll be glad if someone would guide me
-
rexist reacted to VZX in I would like some C++ help
I wonder if this can even be called "projects".
Sounds like a homework question for me.
-
rexist reacted to Jirajha in E-Commerce Building
Think of a modular design:
You have a module that's responsible for stocks, one that is for item- and product data, one that does the connection to ebay, one for amazon etc.
Each module consists of it's own data structures. Each module also has it's own frontend (a form or in your case: a webpage), or a page within the frontend to be precise.
So each module typically has a table that just stores its own permissions for a user or a role.
user (user_id, user_name)role (role_id, role_name)user_role (id, user_id, role_id)role_generalPermissions(rgp_role_id, rgp_canInvoice, ...)role_StockPermissions(rsp_role_id, rsp_canAccessStockPage, rsp_canModifyStockPage, rsp_canTransferStock, ...) Another thing I have seen would be something like:
user (user_id, user_name)role (role_id, role_name)user_role (id, user_id, role_id)role_permissions (rp_role_id, rp_permissionName, rp_permissionValue) Storing each thing they are allowed to do in a new row.
Like:
rp_role_id | rp_permissionName | rp_permissionValue1 CanAccessStuff true1 CanModifyStuff false2 CanAccessStuff true2 CanAccessStuff true -
rexist reacted to madknight3 in C++ Core Guidelines
A big project is underway to help get people write good C++ code.
Guidelines Here
Here's a couple presentations about it as well.
CppCon 2015: Bjarne Stroustrup “Writing Good C++14” CppCon 2015: Herb Sutter "Writing Good C++14... By Default"