132,726 Archived Topics
Remove Filter ![]() | |
[code]void DeleteNode (char CharToDelete, NodePtr List, int &CharFound) { NodePtr NodeToBeDeleted; NodePtr Temp = List; if(List->Link == NULL) return; while(Temp->Link != NULL) { if(Temp -> Ch = CharToDelete) { NodeToBeDeleted = Temp->Link; Temp->Link = NodeToBeDeleted -> Link; delete NodeToBeDeleted; CharFound = 1; } else Temp = Temp->Link; } if(CharFound != … Software Development c++ linked-list | |
Hello I'm begining to learn Java and I'm trying to convert from a While loop into a for loop. Sadly I'm just not quite grasping it... I understand the loop is here [CODE]while (n * n > Math.pow(2,i)) { i++; } [/CODE] but it's not quite as simple as changing … Software Development java java-swing | |
![]() | What do you mean by: "but I don't know how to add something to the dictionary while the program is running"? Software Development python |
Hey guys, So I am trying to make a program that will prompt the user to enter 3 integers (int1, int2, int3), then sort the integers into ascending order. I have the program reading the integers, but I can't get it to sort. I know I can use the sort … Software Development c++ | |
For my project, i have to be able to monitor the keyboard for input. Rather than having the user type in 'r' then hitting enter for an action, how would i have the user type 'r' and then have the action perform, skipping the process of hitting enter. Thanks Software Development c++ | |
I've compiled my code and I got the following error: [code] hw01-question1-2-main.cpp:(.text+0x257): undefined reference to `void MatlabPlotter::plot<25, 25>(ece373::vector<ece373::vector<double, 2>, 25> const&, ece373::vector<ece373::vector<double, 4>, 25> const&, double)' CMakeFiles/simulation_new.dir/hw01-question1-2-main.cpp.o: In function `ece373::vector<ece373::vector<double, 4>, 25> const& Simulator<25, 25>::run<25, 25>(ece373::vector<ece373::vector<double, 2>, 25>&, double)': hw01-question1-2-main.cpp:(.text._ZN9SimulatorILi25ELi25EE3runILi25ELi25EEERKN6ece3736vectorINS3_IdLi4EEEXT_EEERNS3_INS3_IdLi2EEEXT0_EEEd[ece373::vector<ece373::vector<double, 4>, 25> const& Simulator<25, 25>::run<25, 25>(ece373::vector<ece373::vector<double, 2>, 25>&, double)]+0x67): undefined … Software Development c++ | |
Hi, I am trying to develop a small IPv6 application in C. I am stuck at server side. GCC issues the error while call to ACCEPT function "socket function on non-socket". Can anyone help me? 1. Client Code [CODE]#include "shahab.h" int main(int argc, char **argv){ int connectSocket; int numberOfBytes; char … Software Development c client-server | |
hi all , I'm stucked with this bug or my error. I don't say that I find a bug on the visual studio compiler, what I need is to make this fix and continue my project. please give me a idea how to start after this kind of bug ? … Software Development c++ visual-studio | |
Hi everyone, i have this portion of code [CODE=c]while(c = getc(file) != EOF)[/CODE] c is an int and file is a FILE *file = fopen(filename, "r"); The filename points to a file with 2 lines, 10 characters total. That while always makes c a value of 1 (accodring to ASCII … Software Development c file-stream file-system | |
I'm pretty new to python, but I'm trying to create a simplistic version of Mineweeper. I have developed functions that randomly place mines in a 9x9 matrix (nested lists) and then I have functions that assign values to every cell that doesn't contain a mine corresponding to the number of … | |
The Demetris Leadership Center publishes the books, DVDs, and CDs listed in the following table: Title: Description Product Number Unit Unit Sold Brave New World Book 110 25.50 925 Lady Gaga CD 111 16.00 275 The Forgotten DVD 112 24.50 289 Twilight DVD 113 45.50 135 The Giving Tree Book … Software Development c++ | |
Hi Im really stuck on one problem. I trying to save some data to a file. im using Borland compiler. the challenege is to create a new product and save its details to a text file. 1. the user inputs product details i.e. Barcode, Name, Price, and quantity via the … Software Development c++ user-interface | |
Hi guys, with help I've figured out how to set the "user cannot change password" using the code below. I'm now trying to figure out how to remove the property. I thought setting the denied flag to "allow" would work but it seems to do nothing. I would like the … Software Development windows-server | |
The Demetris Leadership Center publishes the books, DVDs, and CDs listed in the following table: Title: Description Product Number Unit Unit Sold Brave New World Book 110 25.50 925 Lady Gaga CD 111 16.00 275 The Forgotten DVD 112 24.50 289 Twilight DVD 113 45.50 135 The Giving Tree Book … Software Development c++ | |
Hey, I was wondering if someone could help to figure out , how to add a value to a key that already exists in the dictionary. where the values of each key are lists. so for example: theIndex = {124:["b","s"], 356:["dg", "n"]} and i want to add the value "m" … Software Development python | |
How do we get combo box's selected value in asp.net as we use to do in classic asp?? | |
Hi! I was wondering if someone could help with writing the code for the following function. I am having trouble with dictionaries and would greatly appreciate some hints! thanks! Write a function build_car_maker, which consumes a car registry dictionary, and produces a car maker dictionary, leaving the original dictionary unchanged. … Software Development python | |
Hello there, I have the following situation : I have a moving ball in a rectangular 2D chamber. When the ball touches the walls of the chamber it changes it's direction. It is simple to implement the ball movement when the chamber is empty ( it has only 4 walls). … Software Development c++ | |
I'm fairly new to pointers and are having problems with the char* words[] part of this program. It's all fairly simple [CODE] #include <iostream> #include <iomanip> using namespace std; void getString(char* string, int max_length); void getWords(char *orig_string, char* words[], int* word_length, int& wc); void displayInfo(char* orig_string, char* words[], int* word_length, … Software Development c++ | |
I've got a library that is annoying me. When I command it to do what I need it to do, it spits out a bunch of text onto the screen that I don't need. Is there a way to temporarily "mute" a console program, then re enable it later? This … Software Development c++ | |
hi, i have to make a simple sudoku solver, i am done 3/4 of it but i'm having a little trouble on somethings, here is what i've got so far [CODE] import copy def display(A): if A: for i in range(9): for j in range(9): if type(A[i][j]) == type([]): print … Software Development python | |
An interesting question came across my mind: If it is possible to convert a percentage to a Grade(A,B,C,D, or an F). Firstly, there is an easy method to convert a percentage to a Grade; by using an If and Else loop. However, are there also other methods with which this … Software Development java | |
I need to be able to print at an offset where the second element of the second list matches up with the first element of the first list. For example have a's line up with the b's: [CODE] list = [[a, b, c, d],[a, X, X, b, c, d],[a, X, … Software Development python | |
Hi! I'm new to C++, been through the basics, and now I'm attempting to make a small console rpg-game where I want my stats (level, xp and such) to be saved in a file. I've successfully saved them into a txt-file, but how do I open it? I don't need … Software Development c++ | |
I am creating a File and at the same time writing 3 lines to this file and then closing the file. What I wonder is if the fileSystemWatcher has any event that detects when I have done exactly this operation and closed the file. I want the filesystemwatcher to react … Software Development c++ | |
ok so i am having problems with my program. its a client program talking to the server program. i have both programs working fine but i do not know how to get the conversation to display on the server side of the conversation. here are the codes and makefile [code=c] … Software Development c client-server | |
Hi, so I have put up two posts in the last day on this program. I am quite new at this concept of Heaps and Heap Sort and I have done a lot of work figuring this out, but i am very close to getting it. I do have my … Software Development c++ | |
I need the function to display a square of numbers. This is the actual function. [code] def draw(n): for i in range(n+1): print i*(n) [/code] but if i call the function [code] def drawBlock(3): [/code] then the output should be 333 222 111 but i cant understand how to get … Software Development python | |
![]() | hi everyone, I am trying to design an assembler program with Python using Tkinter and so far it is going pretty good. I just have one question: Is there anyway to change the text color of just a selected text using a text area? What I mean is, you know … ![]() |
Everything below works the first time through, and the validation of the user's choice to proceed or not works, as does his choice to quit; but when it gets to cin.getline it just blows right through it without waiting for input. As my parents used to say, Where have I … Software Development c++ | |
Hello. Could someone help me on how to create classes in VB6? I need to create a class that would enable me to add 2 numbers then show the sum... simple enough? but im having a hard time looking for tutes out there. I could easily learn with some examples... … Software Development visual-basic | |
I want to write a program to conduct a binary search and return all the occurrences of a number to the user. I succeeded in coming up with a binary search method but I don't know how to make return all the occurrences of the number. Here is my code … Software Development java | |
Almost got this program to work. Still have one error but not sure how to fix. It is using a linked list class for storing nodes. Here is the code: [CODE]// functions use by main void mergesort(linked_list& list); // Merges sorted list dl1 and dl2 into a sorted list dl … Software Development c++ linked-list | |
Hey, I've got an assignment from my computer teacher in school. I've got to make a program that displays the prime numbers in a range and also display the number of prime numbers that are present. And i'm only supposed to use the basic header files.....that means the program should … Software Development c++ mathematics | |
Hi all, I have a question here :) Suppose I have a library in source code form (Let say [URL="http://tangentsoft.net/mysql++/"]mysql++[/URL]) and I have built it, and now I have the files (.h, .lib, .dll). How do I combine them in project? I use [URL="http://www.codeblocks.org"]code blocks[/URL] Why I ask? Because [URL="http://www.python.org"]Python[/URL] … Software Development c++ | |
Hi, I'm writing a class that controls Bitmap I/O. here's the working code: [CODE] #ifndef __linux__ #include <windows.h> #endif #include <stdio.h> // Our functions class FEN { int not_defined_yet; }; class fileBITMAP { public: BITMAPFILEHEADER file_header; BITMAPINFOHEADER info_header; RGBTRIPLE* image_data; fileBITMAP (int width, int height); int writetodisk(FILE* handle) { printf("writing … Software Development c++ | |
Hello folks. I have done a good amount of research and I'm still unable to determine how I can perform real emulation of a joystick. What I found on the web was using the mouse movements to simulate a joystick that moves an imaginary little ball. No, what I wish … Software Development c# | |
how do we create form caption [form title bar] effetcs like typing words. Software Development visual-basic | |
Hello, I have some app like this: Form1 (Parent) -> open in load event a Form2 (child) which have a button that open a 3rd one child form (then close Form2). My question is how I can access a control property (like labeltext (in statusbar) in Form1)? Form1 Parent [CODE] … Software Development | |
HI guys I am just started learning SQL server. I have installed sql server 2008 in one laptop (call it 1) and it is connected to internet now [LIST=1] [*]i want to access it from another pc which is connected with 1 via WAN. [*]and how to connect to sql … Software Development sql visual-basic | |
[CODE]Private Sub Command1_Click() Dim i As Integer, j As Integer For i = 1 To 10000 For j = 1 To 10000 Print "SDFGH========="; j Next j Next i End Sub[/CODE] when i click on command1, i want to view the enitre execution of loop,i.e, from [CODE=text] SDGGH=============1 SDFGH=============2 . … Software Development visual-basic | |
I'm trying to print horizontally not having any luck. I need to print I#x where x one through the length of a list i.e.-I#1 I#2 I#3 I#4 etc. This is what I have which is syntactically wrong: [CODE]for x in range(1, len(depend)): print "%05s" ('I#'+str(x))[/CODE] Could someone please point me … Software Development python | |
I need to enter 10 students names I did a loop but it does not work well [CODE]# include <iostream> # include <string> using namespace std; //functions prototype void avg (double& average); char grade(double& average); int main() { // String variable for the student's name string name; double theAverage = … Software Development c++ | |
Hi, I heard that I can see how VC++ 6.0 converts my C++ code to assembly so I can rewrite it in assembly while removing useless junk. Could somebody tell me how this would be done? Well, guess ill just use ollydbg to see how my programs converted | |
Dear forum members, I'm working on an accounting software, which I was planing to do using C#. Now that I see there is WPF that I can use instead of WinForms, I would like to ask you a couple of questions. [LIST=1] [*]For an account software, which I would like … Software Development asp.net c# iphone web-browser web-design | |
byte range is 0x00 to 0xFF haw to write to text file like this byte 0x00 = byte 0x01 = byte 0x02 = ...... all to byte 0xFF Thanks. Software Development pascal | |
Hai May be too simple but I was not able to locate info on this.. My main form will have a button, when I click on it another form should appear. I can do it. I need the parent form there( no .hide) but it should not be 'click-able'. It … Software Development | |
I got it when trying to initialize my array of sprites (( the only one trowing me null is the sprite2D[] AllianceCharacters declaration: [CODE]sprite2D[] AllianceCharacters; static string Cardspath = Directory.GetCurrentDirectory() + "\\Content\\Cards"; string[] ActionBar = Directory.GetFiles(Cardspath + "\\ActionBar\\"); string[] Equips = Directory.GetFiles(Cardspath + "\\ActionBar\\Equips"); string[] CharactersAlliance = Directory.GetFiles(Cardspath + "\\Characters\\Alliance\\"); … | |
Hello : I have this problem that Ineed to solve can you help plz??.... write aprogramto generate a business travel express attaachment for an income tax return. The program should request ias input the name of the organization visited, the date and location of the visit,and the expenses for meals … Software Development visual-basic | |
Hi, I've got a bit of a problem with an application I am writing at the moment. I know it has to be something small which I'm missing, but I can't figure out what it is. Basically, I have a Query (or Stored Procedure if you prefer) in an Access2000 … Software Development microsoft-access open-source visual-basic |
The End.