- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 10
- Posts with Upvotes
- 8
- Upvoting Members
- 7
- Downvotes Received
- 5
- Posts with Downvotes
- 4
- Downvoting Members
- 5
81 Posted Topics
Re: This thread is tragic. Wouldn't be a bad substitute for the end of Romeo and Juliet :P All of you, newbs, above, seem to have no lust for C++. You can only truely understand it if you appreciate it, and you can only appreciate it if you want to. Wena, … | |
Hi, Whats currently the hot tool for developing simple games for the Internet? I'm talking about games like the ones you might see on Miniclip.com, freeaddictinggames.com or newgrounds.com. I want to start developing some games. Also, if you a tool in mind that is not "hot" but one that you … | |
Hi, I'm making a windows console application that can create and terminate processes, and stores their start and end time. It works fine as long as I start and end the processes from my application itself. However, if I close the child process, eg notepad, using it's own 'X' button, … | |
Re: A user-defined function is one that you create yourself. Read more here: http://www.learncpp.com/cpp-tutorial/14-a-first-look-at-functions/ | |
Hi Daniweb, I'm making a shell-ish console for my Operating Systems class. Trying to get the shell to Terminate a process given a process name. Ever since I made the following addition to my code, this error is coming: `Program received signal SIGSEGV, Segmentation fault.In __gnu_cxx::__exchange_and_add(int volatile*, int) () ()` … | |
Hi Daniweb, My project was to create a basic shell. One of the features being if we enter a command and input a path to an executable, CreateProcess is invoked to start the process. This works fine enough for console applications: the process starts, runs, and then terminates, upon which … | |
Hi Daniweb, I'm making an Online Clinic project in Wordpress. I want to create a database system such that there one user account (master account), using which a user can either make a doctor account or several patient accounts. Basically, 3 tables, Account, Patient and Doctor. I can make the … | |
Hi Daniweb, I have a checkbox that is dynamically generated using php using inputs on previous pages. <form name=partselect action="JavaScript:checkmate()" method="post"> <table> <?php while(oci_fetch($stmtgp)){ $idpart = oci_result($stmtgp, "PART_ID"); $stmtparts = oci_parse($conn, "select * from PARTS where PARTID='".$idpart."'"); $execparts = oci_execute($stmtparts); if(!$execparts){ echo 'unable to fetch part'; } oci_fetch($stmtparts); $tpartcost = … ![]() | |
Hi Daniweb, I am working on an assignment that is aimed to help us understand floating points. The current task is to take a number as input, example 3.5, or 2.25 etc and output it as a binary decimal, ex 11.100000000, 10.0100000000. To do this, I am taking the whole … | |
Hi, My task is to create a library/precompiled header for use with MASM. I am using Code:Blocks. I have googled quite a bit and haven't come up with an appropriate solution. I was hoping someone could point me in the right direction. This is what i have done so far: … | |
Hi, My instructor has given me a project as: Car Maintenance System Data Entry Forms Setup: a) Vehicle b) Maintenance Types c) Parts d) Labor Transaction: a) Work Order Reports a) Printed Output: i) Work Order b) Information Outputs: i) Vehicle Maintenance History, ii) Labor wise work orders Its vague … | |
Hi Daniweb, I'm new to Assembly level programming and have been given an assignment in MIPS. Having started to plan the assignment, I have come to a rather open ended question that I want your opinion on: given that one has only so many registers to work with on Assembly … | |
Hi, I am a student who is taking a Database course. I am running Windows 7 on a laptop with 4GB RAM. I would like your advice on what software to download on my laptop so as to be able to practice concepts taught in class. Since I am a … | |
Re: Please show your effort first :) | |
Hello Daniweb, I am creating a project (using NetBeans for GUI) for my Data Structures and Algorithms course. The gist of it is as follows: -Take 7 letters as input -Display a valid word as output (And later, when this issue is hopefully resolved, several words) Basically a software one … ![]() | |
I am using NetNeans I have a JPanel that is supposed to show some already input data along with a progress bar while the remainder of the program carries out some lengthy processing (about 1 minute long). Once the processing is done, this same JPanel is supposed to be updated … | |
Hi, sorry for posting a second thread for the same project but as far as i can tell, the issue is completely different. My Netbeans project seems to be working with a "cache" of a certain class. It seems like this because I commented out all the code in that … | |
Hi all, I have been told that variables containing objects are basically just references to a memory locations that contain the object data. And doing something like this: TestObject o1 = new TestObject(..); TestObject o2 = o1; would make a new variable o2 that will simply point to the same … | |
| |
The idea is to load an array of objects onto a JComboBox. I have a Class Tournament, which contains an array of Teams. I have serialized an intance 'a' of the Tournament class into a .dat file. try{ ObjectOutputStream oTourn = new ObjectOutputStream(new FileOutputStream(jTextField1.getText()+".dat")); oTourn.writeObject(a); } catch(Exception e){ JOptionPane.showMessageDialog(this, e.toString(), … | |
I have a JTable with two columns in my JFrame. The number of rows this table has should equal a number input in a JForm in a previous JFrame. I cannot find any rowCount mutator function (Using Netbeans), and upon further inspection, the rowCount property in the GUI design view … | |
Hi Daniweb, Sorry if this sounds incredibly noobish, but i was just pondering seriously upon it. If the processer can handle only one instruction at a time, how does the computer seem to be doing like a hundred things at a time? It is performing the OS functions, it is … | |
Re: YOU CONDEMN ME TO SINK!! lol, jk. But how many applicants are there? and, [quote]Time limit: 1s[/quote] Time limit for what? The program runtime? And i don't really understand the program I/O :( | |
K. I've put up with this issue for long enough and have decided to solve it once and for all. Halp? For those who dont know what i'm talking about, its the damned VC++ error "Resource file *.ico is not in valid 3.00 format" ^^headache. Googling doesn't help. I made … | |
Re: ^Wtf... <Posted after a lot of hesitation seeing the above post =D V Has 3 balls | |
I'm learning C++ from the book C++ Primer Plus. At the end of the chapter on loops, they want us to design a structure, allocate adequate memory for an array of such structures using new, then feed input data to it. I got this code: [CODE]#include <iostream> using namespace std; … ![]() | |
Re: [QUOTE=adaquyenpn;1028313]It's too complect[/QUOTE] K, so this topic was, like, 6 years old, right? And you effed it up with spam. Reported. | |
Re: [QUOTE=WaltP;1136971]OK. I did it. Now what?[/QUOTE] LOL :D @amia: Moms are good at doing homework for kids too :) | |
Re: You can follow a tutorial at [url]www.winprog.org/tutorial[/url] | |
Re: [QUOTE=Ancient Dragon;1137157]Then that's probably the problem -- turn UNICODE off! To do that go to menu item Project --> Properties (the last item on that menu) --> Configuration Properties --> General. Then on the right side of the screen change [b]Character Set[/b] (third from the bottom) to [b]Not Set[/b] Also … | |
Re: This happened to me when i used Dev-cpp. Thing is, its quite obsolete now as it hasn't been updated for quite some time. Switch to Code::blocks ;] | |
Re: Maybe Assembly might be able to do it...but you'll have to get really good at it. Assembly can interact with your hardware devices, its really low level. | |
Re: > I'm getting the following error when I debug this small test programm . I can't find anything wrong with it. Even on MSDN they come up with a two line sample code which generates that fault code. In other words, they have no clue either. I hope that some … | |
Re: Your code is kinda mixed up. Stuff that normally goes in cpp files is in header files, and stuff that normally goes in header files is in cpp files. Try desk checking your program. I've fixed it for you :) [code=c] //main.cpp #include <iostream> #include "player.cpp" int main(){ players(); return … | |
Re: [url=http://www.codegear.com/downloads/free/cppbuilder]Borland C++[/URL] Although i would advise you to use an IDE. If you use cmd compilers, you will first have to go through the trouble of setting up the compiler (Which involves much more than installing it, believe me), then writing your code, then compiling. Compiling itself can be a … | |
Re: Be that as it may, sometimes I find it necessary to call system(). Especially when you need to clear the screen. | |
Re: Err, my programs work perfectly well on other computers :/ Although they are CLI based, but it shouldn't make much difference ;) Or, you can use a zipping program like WinZip to package your files up :) | |
According the exercise, which makes us practice with vectors, i am supposed to write a program that allows the user to enter his/her favorite games, view them and remove any he likes. Obviously, to remove a piece of text, it has to be of the same case as the one … | |
Re: Oh yeah, and don't forget, void mainers are doomed. | |
I use Dev C++ and had to re-install it for a reason. Ever since then, whenever i build any project, even a helloworld, i get this. Error -1073741515 Execution terminated This happens in the object file, *.o, according to the build log. No description of the error, nothing. Any ideas? | |
Re: Maybe because the second loop is not nested in the first one. Nest the second one in the first one. I've never programmed in Python, but this is similar to what happens in C++ :) Let me walk you through what is happening. First, x is declared as 1. The … | |
Re: Hmm, interesting. I think its quite useless, though, what you want to do. There might be a way around, but meanwhile: [url]www.winprog.org/tutorial[/url] | |
Re: [QUOTE=RobEin;1028503]Hi Everyone, This is Robert and just an introduce to all, this is my first message on this forum. I'm 42 years old. I develope in VB (6, VBA, .net) and C# programme languages.[/QUOTE] O lawdy, are people here so old? <_< >_> ^_^ V_V *runs away :D | |
Re: First of all, please type in all the code between the CODE tags. Secondly, you used "String" instead of "string" to initialize givenFirst and givenLast. C++ is case-sensitive, which means that there is a difference between upper-case and lower-case letters. | |
Re: Lol, i thought this was about C++ pointers :) Anyway, wrong section you posted this in. I guess you have to got to Control Panel -> Mouse -> Buttons. There should be a checkbox at the bottom about clicklock, you have to uncheck it ;-) | |
Re: Could you describe it a bit more? like what kind of game it is and, importantly, what methods etc the classes have? If there is any input method, you could always declare two instances, p1 and p2, and first get input for p1 like: [code]p1.getInput()[/code] Then when player 1 is … | |
Re: You can also take a bit of time and learn API from here :) [url]www.winprog.org/tutorial[/url] It will take time to learn that, though. | |
Re: If you want the CMD to be full screen, just press Alt+Enter :/ |
The End.