Posts
 
Reputation
Joined
Last Seen
Ranked #963
Strength to Increase Rep
+2
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #2K
~11.8K People Reached
Favorite Forums
Favorite Tags
Member Avatar for photoyid

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 …

Member Avatar for TrustyTony
0
841
Member Avatar for bigcheesy

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)

Member Avatar for JeyHey
0
7K
Member Avatar for Sorb3t3ro

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 "".

Member Avatar for Sorb3t3ro
0
2K
Member Avatar for Gnawk

[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... …

Member Avatar for WaltP
-1
1K
Member Avatar for top123

Why don't you play with the numbers as a string and then convert them back to an int or double.

Member Avatar for top123
0
117
Member Avatar for mbrinkley

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 …

Member Avatar for mbrinkley
0
155
Member Avatar for wilko1995

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 << …

Member Avatar for wilko1995
0
121
Member Avatar for nats01282

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 …

Member Avatar for photoyid
0
101
Member Avatar for photoyid

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) …

Member Avatar for WaltP
1
146
Member Avatar for nats01282

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.

Member Avatar for nats01282
0
146
Member Avatar for photoyid

[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; …

Member Avatar for photoyid
0
168