132,726 Archived Topics
Remove Filter ![]() | |
Hey all, i am working on a project in which i read thw following data file: 6 CSCI240 CSCI241 CSCI241 CSCI340 CSCI340 CSCI480 CSCI480 CSCI580 CSCI340 CSCI580 CSCI463 CSCI480 This data file, consists of the size of array (6) to be created, and then lists the classes, with the prerequisite … Software Development c++ | |
I want to create a 16-bit float datatype, allocating memory to exponential and mantissa part at my own discretion. How can I do that? Software Development c++ | |
All right...This is my first post and it is a very short question. I'm getting a segmentation fault at this line: [code] std::ostringstream ostr; [/code] All I'm doing is creating an ostringstream. Sometimes it makes it past this line and is fine but others I'll get a segfault here. I … Software Development c++ | |
hi ...... im trying to create a simple c compiler..... how to link the header files to c code????? can the linking process can be done in assembly language... or is there a linker for download.... please help.... thanks in advance... | |
This is my first post. I am trying to use Visual Studio 2003 which is what is available at work. I am having to problems: first I don't seem to be able to set a watch on a variable, the contex menues are grayed out. The second is I am … Software Development asp.net c++ dataset open-source visual-studio | |
Here's a question for those of you who have experience of fixing or enhancing other people's Java code, which I hope will also be really useful for those in the early stages of learning programming. Please contribute! If you've looked at other people's code, you will know that sinking feeling … Software Development java | |
I wrote a piece of Winform Application. My problem is that When I call Application.Exit(), the program does not exits, but continues on the next line. I've tried Application.ExitThred(), but in Vain. Does any of you tell me what is happening and if there is a way to solve it. … Software Development | |
I tried to do this to redirect the clog output to a file: [code] ofstream ofs("file.log"); clog.rdbuf(ofs.rdbuf()); clog << "Logged." << endl; ofs.close(); [/code] It worked (the file contains the text), but the program segfaults. I read that you have to "restore" the original buffer, so I tried this [code] … Software Development c++ | |
Hi guys, What am I doing wrong here? Program dies on me @ merge(). :( [code=cpp]#include <iostream> #include <vector> using namespace std; int main() { int afrom[4] = {0,0,1,2}; int ato[4] = {1,2,3,4}; vector<int> from(&afrom[0], &afrom[4]); vector<int> to(&ato[0], &ato[4]); vector<int> length; vector<int> all_nodes; sort(from.begin(), from.end()); sort(to.begin(), to.end()); merge(from.begin(), from.end(), to.begin(), … Software Development c++ | |
// [code=cplusplus] #include <stdio.h> int main (void) {int currentornew; /*This is where if the user inputs a 0 they will automatically be brought to insert hours for employees.*/ int newemployee; /*This is where if the user inputs a 1 they will autmatically be taken to information of adding a new … | |
I am working a program that imports functions from a file, and stores them as Polynomial objects in a linked list. I have been given a linked list class already built. But i have to make a Database class that performs other operations. I am stuck on one that requires … Software Development c++ linked-list | |
Dear Sir, Please help me in this part of the question. I want to change the phone a friend details. Find a person and change their phone a friend number. To do this I need to find a record in memory and overwrite that record's phone field. Then save all … Software Development pascal | |
Hello everybody, I'm having a problem with my conpiler. Below is what I typed but it is giving me Can anybody help me? 7 parse error before `float' 10 `fltMoney' undeclared (first use this function) 10 (Each undeclared identifier is reported only once for each function it appears in.) 13 … | |
A friend of mine said that python could be used to make simple GUIs (ie. a couple of buttons and a text box). I googled "python gui" and it looks like there are 30934 libraries to make GUIs. Is there a "standard" or "built in" one? Thanks, Dave | |
Hi all; I have problem in C. the problem is ,Here is my code [code=syntax] #include <string.h> #include <stdlib.h> #include <stdio.h> /* uni() function takes an array an thier size.and it produce an array which is include unique element */ int uni(char **arr,int size) { int unique = 0; /* … Software Development c file-system | |
im trying to write a recursive function that returns the fibonacci number, but am getting a weird result. here's my code. [code] def fibonacci(a,b,n): a =a+b b = a+b n= n-2 if n ==0: print b return b elif n ==1: print a return a else: fibonacci(a,b,n) x = fibonacci(1,1,7) … Software Development python ![]() | |
Hello, I have this code of converting hexadecimal value to decimal but getting a warning at compilation. I'm starting to learn Perl and this one really makes me - almost - crazy! :) --- [code=perl] #!/usr/bin/perl use strict; use warnings; my $decVal; print "Please enter a hexadecimal value to be … Software Development perl | |
I got a "working" script for monitoring Autosys jobs. Basically, it starts with listing all the jobs that are due to run in a "shift". Now, I'm in the part where I want to delete a job/word from a list BUT only the first occurrence of such job name. This … Software Development shell-scripting | |
Hello guys , i recently started programming in C++ , and i am trying to create a text-based RPG in prompt console ... what my problem is that i have my main function , calling one other function name infomisc , in infomisc function it let you choose , 1. … Software Development c++ | |
Hi everyone I'm new here, and is so often the case with forums, I discovered daniweb whilst googling for a solution! I'm new to C#, and although I've read loads of books am finding that the best way of learning is to just get stuck in! I've set myself the … Software Development unix | |
Hi! I have a school project where I have to make a array that includes facts about films. Every space in the array includes leanght of the film, authour, grade, company, and title. So I know how to write it to a file but I have no idea how to … Software Development java | |
Hi there, I've been searching the documentation but I can't find any answers (perhaps I'm asking the wrong questions). Say we have a list of animals: Sheep, Cow, Pig, Horse. All of these animals have attributes (4 legs, etc.) We have the name of the animal and the attributes stored … Software Development python | |
Hi all! I've been working on a problem from my Intro to Java class for a couple of weeks and I feel like I'm close. I turned it in and only got partial credit. Here goes: This program allows a user to enter a phone number, country code, area code, … Software Development java | |
How do you get programs like bubble sort, quick sort to print a result. def bubblesort(list): for passes in range(len(list)-1, 0, -1): for index in range(passes): if list[index] < list[index + 1]: list[index], list[index + 1] = list[index + 1], list[index] return list Thanks Software Development python | |
hi eveyone i need to edit person name or Appointmendescription but not date or time in my program. i can write all the records to the file and can read from the file. and need to edit the file now. can anyone help???? thanks.. [CODE] void writeAppointmenRecords( ) { int … Software Development c++ file-stream file-system ios | |
Hello everyone!! Im struggling on a simple assignment. I have to filter specific data (which are in .xls format) using the "optimal" kalman filter in both ARMAX and ARX models. the struggle is on how to connect the data from the xls file to the filter... here i give u … Software Development | |
say you have a list, b, you don't know how many items are in there, but how could you add up all the items? for example, if your list is [2,4,5,8,10] is it possible to find the sum of all the numbers? so it will give you 29? i've been … Software Development python | |
I am trying to store all of the tokens in an array. But after it store racecar in the array i get an access violation,Unhandled exception at 0x6515f8e0 (msvcr90d.dll) in Assignment2.exe: 0xC0000005: Access violation reading location 0x00000000. Here is the file im reading from: Bob went to town in a … Software Development c | |
As part of an assignment I am creating a class to handle rationals with numerators and denominators, overloading the operators for cin and cout, as well as +-*/. So these are the functions for those operators, now where exactly should I include these in my class? [code] Rational addition(Rational a, … | |
Been working on this project for the past two days and tried googling for solutions and about every 5th solution led me here, so I decided to join and see if I could get my question answered. Here's what I need to do, this is a semester long project for … Software Development c++ | |
I'm getting an error (unhandled exception writing address so and so) trying to modify a string. It gets weirder though. Let me show what i've got: --Main.c-- [CODE=C]#include "stdafx.h" #include "commands.h" int main(int argc, char* argv[]) { char word[256]; int id; strcpy(word, "move"); strToUpper(word); printf("%s", word); id = getCommandId(word); if(id … Software Development c | |
Hi, I have a question regarding Methods. I have a method that takes a base class. I am getting an Error when I pass class that is derived of the base to it. For Example [code] Class TaskToRun { public virtual void run (); } Class SayHi : TaskToRun { … Software Development | |
Dim response As String response = MessageBox.Show("Are you sure you want to exit?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) If response = 6 Then End ElseIf response = 7 Then Me.Close() End If Above is the code to exit a form. When i exit my form a message box appears telling me if … Software Development vb.net | |
Bah, once again I am beat by the computer logic... Anyone have an answer as to why it gives me an error: "Expected a constant expression at msg" Here's the code, [CODE] const int INFOWND_SIZE = 4; int msg_length[] = "Message"; double calc_amount = (double)msg_length/(double)INFOWND_SIZE; int msg_amount = (int)ceil(calc_amount); char … Software Development c++ | |
Question directed at JamesCherill specifically, (and anyone else who can answer it) I've never had [I]too[/I] much trouble with communicating between the model and the view, in an application that only has a model and a view. However, looking at the observer pattern (at the bottom) of this [URL="http://leepoint.net/notes-java/GUI/structure/ui-model-communication.html"]link[/URL], I … | |
Hello. I was wondering how to read strings from a file word by word and store the words into an array in c. I am having to write a program that tests words to see of they are palindromes from a little paragraph i wrote in a file. I've been … Software Development c | |
this is kind of a quick question, but just a bit complex: say i want it to find n in range(5), i would do this: [code]for n in range(5): print n[/code] and it would return 0,1,2,3,4.... but what if instead of returning i want it to put it in a … Software Development python | |
I need an example on downloading an internet file in a windows service application before logon using c++. Software Development c++ | |
hey, I want to read internet data through a C++ program. I am told that the way to do this is by using a proxy server and spitting out the data through the proxy to a file which then can be read. How exactly do you setup a proxy server … Software Development c++ | |
Hi pals I have three qestions 1-Is it possible to overload {} operator? 2-What is the benefit of using function objects other than functions? 3-How can i access CPU serial number and such a things? Software Development c++ | |
I am having problems with this code and im nooby what im trying to do Create a game where the computer picks a random word and the player has to guess that word. The computer tells the player how many letters are in the word. Then the player gets five … Software Development python | |
The title says it all i want to make 1 file which can store information which my C++ program can read and use. How do I go about doing this. Software Development c++ | |
// i m getting error when i update ID field of table.. all others field can be updated bt nt the field which i have used as where conditions of update command..! using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Data.OleDb; namespace WindowsApplication1 … | |
Hi all , i just wanted to know ,why the **** this thing doenst work , i've tested the code 10 mins ago it worked ,and now ,it doesnt . static private bool ExistanceCheck(string Start, string SubKeyPath, string KeyName, string DefaultVal)//true , changed, false (unexistante , other value) { RegistryKey … Software Development microsoft-windows | |
Hi there. I'm creating a simple anti-cheat program for my game that kills most game cheating programs. (ex: WPE, Cheat Engine, etc.) But I got stucked when trying to kill hidden processes. Say a program called "HideToolz". it can hide cheating programs from the process list, so that my anti-cheat … Software Development | |
I have tried to make a chat application that only saves the recieved messages which can then be deleted. I'm having some major problems with it. Can anyone please point out or correct my coding. I have tried for ages to get this working but with no joy. Client Code … Software Development client-server java java-swing | |
I created a Python script to find two whole numbers that, when multiplied together, will equal the target number, or factors. My script works by dividing the target number by a regularly increasing integer, and checking to see if the quotient is a whole number (integer). Here's the script: [CODE="python"] … Software Development python | |
Hello there. What is usually the reason of getting an undefined reference error? I have already included the [B]pthread.h[/B] header file yet I'm still getting the undefined reference error for the [B]pthread_create() [/B]function. *sigh*. I'm using makefile in compiling my code. Is there someone here who could enlighten me? Thanks! … Software Development c++ | |
Hey everyone! I'm having trouble with the Open File Dialog in VB.NET. It works fine because I am only returning the file path of the file selected, but for some reason the dialog box reloads every time it is clicked for the first time. For instance, the dialog opens and … Software Development file-system vb.net xml | |
i'm making a program, i need to know is there a command for "divisible"? as in [code]if m is divisible by n[/code] if not, is there a command like "if its a whole number"? as in [code]if m is a whole number[/code] of course i can work with either command, … Software Development python |
The End.