Ok, I have chosen my exact path in life and need to learn this: How would I program for Linux? I have only minute ammouts of windows programing so start from absalute basics (like after cout and cin and main() stuff, start at oh something like LinMain or whatever linux uses. I know I said I dont like linux but that is because I cant get it to work (wont post details) So anyone? Also if Linux wasn't programed in c or c++ or d, tell me so I can find the languige, also I consider windows programing and c++ …

Member Avatar
Member Avatar
+0 forum 3

with this codes i created rectangle image with a line inside that has to mimic a single clock. Dim MyGraphics As graphics=e.graphics my graphics.Draw Rectangle(pens.colour,x1,X2,y1,Y2):whereby x1=60,x2=70,y1=80,y2=90,and choosen colour my graphics.Draw line(pens.colour,x1,x2,y1,y2):whereby x1=60,x2=70,y1=100,y2=120,and also choosen colour. Now help me with ideas and solution here.the hand or line within the square has to rotate continually.now as a clue,as our lecture prescribed,under line,one group of X and Y axis has to remain constant or steady,while other y and x axis has to change now instead of using numbers we have to use variables eg lets say x1 which is 60 and y1 which …

Member Avatar
Member Avatar
+0 forum 1

Here is an arm assembly code for factorial function (along with the c code).i am a bit confused with the stmfd and ldmfd instructions.what are they exactly doing in this program? what does the exclamation mark do? why is label .L2 being loaded into r0? i kno that stmfd and ldmfd are used to store and load multiple registers in full descending mode but what are they doing with fp,ip,lr,pc in this code? [CODE] .file "factorial.c" .text .align 2 .global factorial .type factorial, %function factorial: @ args = 0, pretend = 0, frame = 8 @ frame_needed = 1, uses_anonymous_args …

Member Avatar
Member Avatar
+0 forum 2

Just wanna say hello! I'm a student who loves programing, develop simple/complex apps it's my life. I'm not here to ask you to do my homework at all, i'm a dedicated programmer who knows ask for help when is really needed, i like to learn on my own. Althought i'll try to help in the forum too. Greetings.

Member Avatar
Member Avatar
+0 forum 5

After reading PDF file format specification manual and several other websites providing considerable amount of theories on this subject, I built one simple pdf file. An empty blank page, pretty much doing nothing else. But my problem is, When I am trying to close it, Adobe Reader prompts a dialog for saving any changes. Its only happening with simple pdf files without any encoding/encryption. For instance the following code, """ %PDF-1.4 %âãÏÓ 1 0 obj <</Type /Catalog /Pages 2 0 R>> endobj 2 0 obj <</Type /Pages /Kids [3 0 R] /Count 1>> endobj 3 0 obj <</Type /Page /Parent …

Member Avatar
Member Avatar
+0 forum 1

Google Go? Is it part of google, I don't know. Another programming language. Was YouTubing yesterday...Looks interesting. [url]http://www.youtube.com/watch?v=jgVhBThJdXc[/url]

Member Avatar
Member Avatar
+0 forum 6

how to implement the game called entanglement in java ??

Member Avatar
Member Avatar
+0 forum 8

Write a program that allows the user to enter a series of positive integers one at a time and in increasing order (using -1 as a sentinel value), and then computes and displays the median value of the data entered, as well as the number of data values entered. You’ll find that to compute the median, you’ll need to store the input values in an array. A sample run should look like: Enter positive integers one at a time increasing order. Enter -1 to indicate when you are done. Number? -2 Numbers must be positive. Redo that last one. Number? …

Member Avatar
Member Avatar
+0 forum 9

How would I make this program that it tells me the number of odds or evens. I only have 1 number at the time, so I need it to either say 1 odd or 1 even. [CODE]#include <iostream> #include <fstream> using namespace std; void printInfo(); int nonNegative(int a, int k); int nexta(int a); void initialize(int& oddCount , int& evenCount); void getx(int& a); int main() { int count; int num; int zeros; int odds; int evens; int a, k; k = 0; char choice = 'Y'; ofstream outFile; //---------------------------------------- // Call function tagReader with tags1.txt outFile.open("Langlands.txt"); outFile.close(); printInfo(); nonNegative(a, k); initialize(odds, …

Member Avatar
Member Avatar
+0 forum 1

I do not know how to write a function for this. I have written just the base line of the code, but I do not know how to finish it. Here is the description. A void Function tagReader inputs the data collected by the cylinders; it has two parameters: the input file and an int count. The function inputs names, serial numbers, and location coordinates from the input file. The input file will have a descriptive name, an integer serial number and two double values representing map coordinates separated by blanks on each line. For each cylinder, echo print to …

Member Avatar
Member Avatar
+0 forum 10

I need help with this program. I do not know how I would calculate to find out the gallons as well as the cost as pictured in my output. How would you do this? Here is my output: For each student, you will get the gallon of paint Input the length: 5 Input the width: 4 Input the cost of a gallon: $5.50 It will take 0 gallon(s) to paint an area of 5 square feet at a total cost of $0.00. Press any key to continue . . . [ICODE]#include <iostream> #include <iomanip> #include <string> using namespace std ; …

Member Avatar
Member Avatar
+0 forum 11

After your program works correctly for one student, add a loop so the user can process any number of students. Prompt the user for the number of students to process; use that value to control the loop. *How do I prompt the user for the number of students to process and use that value to control the loop. [ICODE] #include<iostream> #include <string> #include <cmath> using namespace std ; string getName (); int averageScores( int); void printMessage (string, int); void tallyScores ( int,int&,int&,int&); int main() { const int NUMBER = 4; // number of scores for each student char moreStudents = …

Member Avatar
Member Avatar
+1 forum 9

Hey guys, so I have a bit of a problem. I have an idea for a game, and I have all the 3d models and such, but I have no clue how to program. I hired a couple of guys to work for me, but here's the thing. I have no CLUE about anything regarding coding. What do I have to tell them to code? Like, do I give them my story, characters and stuff? Or do I have to do something else? I know it sounds dumb, but what do I give them to work with? If anyone could …

Member Avatar
Member Avatar
+0 forum 4

I really need help in writing this program for homework. 1. Round the average for each student to the nearest integer. 2. Add code to print out an appropriate message for each student. (given in prologue comments) 3. Add code to calculate the highest student average, and the lowest student average. 4. Add code to determine the number of students in each message category.. 5. At the conclusion of the while (inData) loop, print out the number of students processed, the highest student average, the lowest student average, and the number of students in each message category. This is what …

Member Avatar
Member Avatar
+0 forum 1

Could you please tell me how to arrange my code so that the invalid statement like in my displayed output will only show up if some enters a wrong character. Here is my code: #include <iostream> #include <fstream> #include <iomanip> #include <cmath> using namespace std; int main() { //(1) Declare some variables to work with char fare; char choice='Y'; int hrIn, minIn, hrOut, minOut; int hours; int minutes; int total_minutes; int additionalTime; double cost; double charge; while(choice=='Y'||choice=='y'){ //(2) Output read info and user message cout << "\nThis program will calculate a single, couple, or group " << "\nfare amount which …

Member Avatar
Member Avatar
-1 forum 1

Hi. I'm doing bachelor of IT and this is my third year. I intended to become a programmer when I graduate. How many programming language I need to know to be a programmer? How do I know if my programming skills is adequate/competent?

Member Avatar
Member Avatar
+0 forum 5

Here is my code: #include <fstream> #include <iomanip> #include <cmath> using namespace std; int main() { char fare; char choice='Y'; int hrIn, minIn, hrOut, minOut; int hours; int minutes; int total_minutes; double cost; float charge; float additionalTime; while(choice=='Y'||choice=='y') { cout << "\nThis program will calculate a single, couple, or group " << "\nfare amount which is then owed by the customer for the trip.\n" << "\nTo calculate a single fare amount, input S (or s)" << "\nTo calculate a couple fare amount, input C (or c)" << "\nTo calculate a group fare amount, input G (or g)" << " \n\nInput …

Member Avatar
Member Avatar
+0 forum 2

Hi everyone! I'm new to visual basic and i have been using it shortly. I need a code which will help me compile an exe file based on some arguments or with the help of another VB file. Thank you.

Member Avatar
Member Avatar
+0 forum 12

Hello, My whole life I've wanted to make a video game. I've been influenced by notable programmers; Shigeru Miamoto and Tetsuya Nomura. I'd like to learn how to do C++ programming so I can make a game. I'm only a freshman in high school, so you can imagine, I don't want to wait until college. Here's my problem, the only thing I know about programming a game, is what makes a good game. So, having no experience, where do I start?

Member Avatar
Member Avatar
+0 forum 4

Is it a good programming practice to not use getters and setters in trivial parts of code?

Member Avatar
Member Avatar
+0 forum 7

hello guys , i want to make an application that will close the bleutooth of wp7 mobile how to write code for this which library file are required for this please help me regarding this it is serious please.................. m waiting

Member Avatar
+0 forum 0

[B]Hi, Could someone tell me where to find a good tutorials on pygame 1.9.1 for beginner thanks[/B]

Member Avatar
Member Avatar
+0 forum 1

Hi all, I was wondering if someone could help me with this bit of coding. I have set two veriables d1 and d2 to pick a random int of 1 to 10: which I need for in loop but when I run it the same number appear How do I get a differnt verity of numbers during for in loop in Python 3.1.3 please... Thanks for your time. [CODE]# generate random number a certian number of times import random # set vers d1= random.randint(1 ,10) d2= random.randint(1,10) # now print different number 10 times for count in range(1,11): print (d1,d2) …

Member Avatar
Member Avatar
+0 forum 2

I am trying to center a simple navigation menu (horizontal). this is my script so far: [code] <head> <title>Home</title><link rel="menu" href="menu.css" type="text/css" /> <style type="text/css"> body {background-image:url('backg.jpg');} .center body{ text-align:center; /*centers for IE5*/ #menu_box{ text-align:center; /*overrides the centering from above*/ width:675px; /*5 menu items at 135px width (8px padding + 2px border + 125px width)*/ margin:0 auto; /*centers in compliant browsers*/ ul{ list-style:none; margin:0; padding:100; } li { float:left; } a:link,a:visited { display:block; display:circle; width:120px; font-weight:bold; color:#ffffff; background-color:33ff33; text-alaign:center; padding:10px; } a:hover,a:active{ background-color:#ff6633; } } </style> </head> <body> <center> <img src="banner.jpg" alt="banner" width="800px" height="150px"/> </center> <span style="cursor:pointer"> <center> <div id=menu> …

Member Avatar
Member Avatar
+0 forum 11

The program runs but only switches the player once [CODE]#include <iostream> #include <string> #include <cmath> #include <ctime> #include <cstdlib> using namespace std; class TicTacToe{ public: TicTacToe(void);//constructor void playOneGame(void);//member function void switchPlayer(char &);//member function void showBoard(void);// member function void postMove(int, int, char);// member function char determineWinner(void);// member function private: char Board[3][3]; }; int main(void){ //test the class by playing one game TicTacToe Game1; Game1.playOneGame(); } void TicTacToe::playOneGame(void){ //start a game and play until someone wins or a draw occurs const int MaxMoves = 9; char currentPlayer = 'O'; int row = 0; int column = 0; char Winner = ' '; …

Member Avatar
Member Avatar
+0 forum 4

Hello everyone i'm new to this kind of things plz help me to solve this , if anyone can post the c/c++ code also i shall be thankfull to you :) An eccentric doctor visits his patients in order of decreasing age. Patients entering the waiting list specify not only their names but also their ages. Each time the doctor wants to visit a patient, the oldest is selected and removed from the list (so children may have to wait a very long time). Write a program, based on elementary sorting techniques to sort this list on first on Age …

Member Avatar
Member Avatar
-1 forum 6

I'm trying to make a program that tells you how much of each type of bill or coin you will receive as change after you enter the total amount of goods you are buying and the amount you are paying with. But my program takes in the total amount of goods and the amount you are paying with and then it stops. Here's my program - [CODE=C++] /* Change.cpp */ #include <cstdlib> #include <iostream> using namespace std; int main() { double tot = 0; double cash = 0; double change = 0; int hundreds = 0; // number of $100 …

Member Avatar
Member Avatar
+0 forum 5

Hello, I am trying to create an IRC server. The thing is that I dont want this server to run on "localhost", I want to connect this server to other upstream IRC servers. I dont know how to do that. I.E. I want this server to connect to smth.hostname.com on port 9997 and get information from it. Please help!!! [CODE] public class Server { public static void main(String[] arg) { new Server(60656); } private ServerSocket serverSocket; Server(int port) { try { serverSocket = new ServerSocket(port); System.out.println("Server waiting for client on port " + serverSocket.getLocalPort()); while(true) { Socket socket = serverSocket.accept(); …

Member Avatar
Member Avatar
+0 forum 1

I really need help with this...i'm trying to make a game that where user guesses a word and it tells the user 1: the right number of letter in the right place 2: the number of letter that is right in the wrong place but when i test it out, when the secret word is myrrh my guess: yrmhr it will say : 3 correct letter(s) in the wrong place 0 correct letter(s) in the correct place (which is wrong) ======Heres the code===== [CODE] import randomWord def replaceAt(string, index, character): return string[:index] + character + string[index+1:] def getSecretWord(): wordLength = …

Member Avatar
Member Avatar
+0 forum 19

Hi guys!! I made a simple RPG where the player can move along the x and y coordinates, choose a class and meet opponents. I accept any suggestions on how to improve game. [ATTACH]17738[/ATTACH]

Member Avatar
+0 forum 0

The End.