No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I created an article previously doing this program in C++, but now I am trying to convert it to C. #include<stdio.h> double hamCalc(double b, double p); double cheeseCalc(double b, double p, double c); double dcheeseCalc(double b, double p, double c); int main() { double patty, bun, cheese; printf("This is the … |
|
Can any administrator remove my name from the code section on my first thread? I don't want it to appear on Google and it seems to have already found its way on there. Thanks. |
|
I created a thread last night and accidently forgot to put crucial information in my code. I found the edit button and quickly edited it, however I spotted another place that could help others figure out what is wrong with programming code. There is no edit option now. The only … |
|
#include <iostream> using namespace std; class Burger { private: double patty; double bun; double cheese; public: Burger(); double getPatty(); double getBun(); double getCheese(); void setPatty(double p); void setBun(double b); void setCheese(double c); double hamburgerCalc(Burger b); double cheeseburgerCalc(Burger b); double dcheeseburgerCalc(Burger b); }; double Burger::hamburgerCalc(Burger b) { double bun = b.getBun(); … |