- Strength to Increase Rep
- +2
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Is there a way to determine which shift key is pressed? I am writing a program that shows an image and I want the user to say which side of the screen it is showing up on.... I thought of using the mousekeys but realized that not all computers have … | |
Re: If you understand the algorithm and the process then you know how to program it. Why not write out your algorithm and where exactly you get stuck (ie- write the pseudo-code out) | |
Re: Code works fine for me.... Have you tried compiling other code? Maybe you have a slow computer? I did get errors from you quotes but that could just be the symbol that the code brackets use for "". | |
Re: [QUOTE=Gnawk;1158897]C++ program that will implement the popular numerical procedure called Thomas Algorithm. this is my final project in the lab which i have no idea how to start off... and i am really bad at c++ because this was my first ever programming class i ever took in my life... … | |
Re: Why don't you play with the numbers as a string and then convert them back to an int or double. | |
Re: First of all a good attempt to write this code. Congrats! Just a few comments- 1) Isn't the minimum balance a constant meaning that it is something that you set not that the user enters? 2) I think you forgot to deal with the 5 percent case. Why not assign … | |
Re: You have a logic error in your code. Remember your logic tables ab = a'+b' meaning. Also you switched the terms [CODE] if (c != b && d != a){ cout << "Incorrect Username/Password Combintation \n"; }[/CODE] should be [CODE] if (c != a || d != b){ cout << … | |
Re: I am not an expert but there is a logical flaw. You use the do...while loop when you want the thing to loop. By adding in a break whether or not it is between 1-5 you defeat the purpose of a loop. you could do the same code with just … | |
So I am working on a faux graphics program for class. The current part that I am working on is to determine just from top left and bottom right corners what the coordinates should be. I believe my logic is good but it seems to be setting it as tl(3,1) … | |
Re: Try typing in: [CODE]int main() [/CODE] instead of main(). Also most people write that code a bit differently. [CODE]#include<iostream> using namespace std; int main(){ cout<<"Hello World"<<endl; } [/CODE] This gets rid of the need to use std before all of those calls. | |
[CODE]#include<iostream> using namespace std; class point{ private: double x,y; public: double getX(); double getY(); void set(double c, double d); }; class polygon{ private: string color; public: void setc(string color1){ color = color1; } void print(){ cout<<color; } string getColor(){ return color; } }; class triangle: public polygon{ private: point v1,v2,v3; … |