Hi everyone! I created a Sudoku game and want to share it with all of you so you can tell me what'y think about it :). I've got 1 year of C++ experience. Game is based on coordinates to put the numbers. --------------------------- List of Commands: --------------------------- When asked to … |
|
Re:
This question is from code chef, named Odd. I believe this is a good problem to play with for all levels. If I can solve it surely anyone else can, cough * only if pi is fake* cough*. Here is the question : [ICODE]The captain of the ship TITANIC is … |
|
Re:
[CODE] <html> <body> <div style="width:500; height:200; border:1px solid black;"> adsf<br>adsf<br>adsf<br>adsf<br>adsf<br>adsf<br>adsf<br>adsf<br>adsf<br> adsf<br>adsf<br>adsf<br>adsf<br>adsf<br>adsf<br>adsf<br>adsf<br>adsf<br> adsf<br>adsf<br>adsf<br>adsf<br> </div> </body> </html> [/CODE] ello I'd like to have a div with minimum height of 200px. but if we add more data in to the div the height should be increased not totally fixed you know? what can … |
|
Re:
Hi all, I'm really struggling with this and so far haven't been able to find a solution on the Internet. I have a MySQL table called Journey which has a Date field. The dates are stored in the format YYYY-MM-DD. I'm trying to construct a query where I can get … |
|
Re:
I am creating a client account management area on my site (check balance, pay your bill, print/save our contract, check progress, upload files/content, write messages to one another.. I have just about everything going smoothly (thanks entirely to a lot of info and help here @ DaniWeb).. One issue I … |
|
Re:
Been designing websites for years - tried to avoid anything MySQL/PHP - deep programming related. Quickly coming to a realization I need to give it a try... UGH. I tried to get my feet wet with MySQL 1 year ago (to the day, apparently... weird?) and was quite unsuccessful. Now, … |
|
Re:
Hi all.. i am trying to style one of the label tag from my code.But it is not working, and i do not know whats really the problem.Or there is the other way to style the <label> tag perhaps? anyway, here is the code : [CODE] <FORM NAME="message_wall" ACTION="" METHOD=""> … |
|
Re:
I am new to programming and i am teaching myself. (my teachers are not very good) I am attempting an old assignment that a colleage had completed in school. He told me it was pretty basic in terms of c++ programming. UELS is a company selling bicycles; Customers may opt … |
|
Re:
In my code my "ndeps" is not being declared in my "setdepends" function and i dont know why. Can anyone help me figure out why? [CODE] #include <iostream> #include <fstream> #include <cstdlib> #include <cstring> using namespace std; class Object{ private: Object **depends; int ndepends; public: Object(); char *id; enum Color … |
|
Re:
I saw few treads referring to this subject but I just can't get this working includs.cpp [CODE]#include <iostream> using namespace std;[/CODE] main.cpp [CODE]#include "includs.cpp" #include "ispis2.cpp" int main() { ispis(); system("pause"); }[/CODE] ispis2.cpp [CODE]void ispis(){ cout<<"tets file"<<endl; }[/CODE] After compiling this I always get the flowing error [CODE]error C2065: 'cout' … |
|
Re:
Hi all im after a piece of code that allows the user to enter a fraction e.g 1/4 and have the code split that fraction into 2 seperate variables, e.g variable 1 containing the '1' variable 2 cantaining the '4' How would i achive this? My objective is to make … |
|
Re:
I know I'm going to be bashed at for this, just please read at least this much before you start yelling at me to read the faq or thousands of other posts online. Im having a problem clear screening for my school work since my teacher has a fetish for … |
|
Re:
I am trying to make a program that calculates the amount of money saved with compound interest. It needs to output the amount of money saved for each year it accrues. This is what i have so far , using a for loop: [CODE]int main () { double p; double … |
|
Re:
can someone show me an example of how you would initiate a variable and how you would fix a undeclaired identifiers. i am a visual learner so thats why i ask for an example. |
|
Re:
Maybe I am missing something that is clearly obvious but I have fiddled with this printHelper and print function for a while and cant seem to figure it out. The rest of the program works and gets the correct code, but this does not. It should print out 1 -> … |
|
Re:
create a C++ program, using a queue that will interface to your car, to read out to you directions as you drive. You have been at a hockey game at Rexall Place. So you ask your GPS for a route home to your residence at King’s. You enter each instruction … |
|
Re:
Hi I only have a simple query I am relatively new to c++ and I am trying to create 10 randomly placed items in a grid. I've used the following for loop: [code] for(int x=0; x<10; x++) { array[n1][n2] = aliveG; } [/code] and it only displays the item once, … |
|
Re:
I have finished writing a program that uses Linked lists and reads in input from a txt file. When the program executes there is no output. I have been going through the code for awhile now and there are no syntax errors and i can not seem to find what … |
|
Re:
I can get my code to compile and produce correctly (as I want it right now), except for one problem: Output: [code]What Degree Polynomial: 2 Enter Coefficient #: 8 Enter Coefficient #: 5 Polynomial selected is: 8x^(0)5x^(1) What Degree Polynomial: 3 Enter Coefficient #: 4 Enter Coefficient #: 5 Enter … |
|
Re:
Ok i am working on a program for class to add to big numbers. The numbers are entered as Chars then converted to int. Then i need to place them into a dynamically allocated array with a pointer. I need to do this twice to make two arrays and the … |
|
Re:
I have been working on this for a very long time. I have also searched for examples but they do not help. Here is what i need to do...I need to take the students score and compare it to average and print out the corresponding grade. I am having a … |
|
Re:
Please tell me why this doesn't work: [code] #include<iostream> using namespace std; int main() { char felix[3] = "ho"; if(felix == "ho") cout << felix; } [/code] |
|
Re:
how can I GET A EMPTY SQUARE İN C++ LİKE THİS; * * * * * * * * PLS HELP ME |
|
Re:
I have an array of 20 elements with numbers between 1 and 8. I need a for loop that will give me the number of elements greater than 1??? |
|
Re:
Hello. What I have to do is: Take the first half of the input, and output it backwards. Length of the input is 10 or less. Examples: 123456789 - entered by user; 54321 - result. abcde - entered by user; cba - result. The catch is, that I can only … |
|
Re:
I am having trouble overloading my function JustSold() with the array for CartSales[x].Cart . I can't seem to get the array to properly import....any ideas? [code] #include <iostream> #include <fstream> using namespace std; class HotDogStand { public: void JustSold(int DogCounter, int numCarts, [COLOR="Red"]int HotDogStand[][/COLOR]); int Cart; int IdNumber; int SalesToday; … |
|
Re:
I'm trying to see if there is a better way to go about getting the number of carts that the user inputs, instead of mandating that they have exactly three. My assignment calls for the following: "You operate several hot dog stands distributed throughout town. Define a class named HotDogStand … |
|
Re:
i have the following function which works, its encrypts a text file, well its suppose to shift the letters of a text file by whatever the user wants, lets say the text file says "zoo" if the user wants to shift the letters by 1 to the right the output … |
|
Re:
Hi all, im wondering if someone could offer a solution to my current problem which is passing and return information using pointer notation. I have created a small program using the class Person, who has a first and last name and methods to add and retrieve this information which looks … |
|
Hello, today I got a new issue on the program im developing so.. the issue is that I want to change a file in this path [B]C:\Users\[USERNAME]\AppData\Roaming\[PROGRAM NAME].[/B] But the thing is when a user's computer has a different language then english this path changes to something like this [B]C:\[Users … |
0 Reputation Points
~13.8K People Reached
Favorite Forums
Favorite Tags