132,726 Archived Topics
Remove Filter ![]() | |
I have a dictionary like {"a":["b", "c", "d"], "b":["h", "i", "j"], "c":["k", "l", "m"]. I need to write a function that returns True if a requested key has requested value. Also, if "a" has "b" and "b" has "h", "i", and "j", then "a" has "b", "c", "d", "h", "i", … Software Development python ![]() | |
Hello. I have a question about Const Int and Points I have this code [code] const int j=18; int *k= (int)&j; *k=110; printf("Data: %d -> %d; %d : %d-> %d\n", &j, j, k, &k, *k); [/code] this well return for me [b]Data: 2280676 -> 18; 2280676 : 2280672-> 110[/b] but … Software Development c | |
Problem: Write a program that calculates the average of a group of test scores, where the lowest score in the group is dropped. It should use the following functions: `void getScore()` should ask the user for a test score, store it in a reference parameter variable, and validate it. This … Software Development c++ | |
If I have two lines of text: HOOK HOOK HOOK what is the syntax to grep just the first line without the second? and the second without the first? Software Development shell-scripting | |
I am new to programming (but not to the concepts) and I need to process some .csv files. Here's what I have: The files containing Cartesian coordinates, XYZ of various "polygons." (They are cell perimeters of a mouse embryo) The polygons are in quotes because they are not closed, and … Software Development python | |
The line I get an error on is this: [CODE]List accDetails = (List)tm.get(accNo)[/CODE] "tm" is a TreeMap, and "accNo" is a value in it. accNo is a String. I get a build error like this: java.lang.String cannot be cast to java.util.List I have no idea what to do here, I've … Software Development java | |
So I finally get to the end of this evil program, and then it won't compile because it says "type double not expected". Here is my error message in its entirety: program 3 item.cpp(111) : error C2062: type 'double' unexpected program 3 item.cpp(121) : error C2062: type 'double' unexpected program … Software Development c | |
please can someone tell me the source code of a c program? the program is "create a c program to print the employee pay revision list using arrays and functions and structure" please do reply fast as i need help urgently Software Development c | |
hello, my problem is: i have a function that i pass a pointer to so that it can update a variable for me. when this function is called normally the variable updates and everything works fine. BUT when i call this function *as a seperate thread*, and pass it the … Software Development c++ multithreading opengl | |
can somebody explain the behaviour of the statement printf("%d"); is it any where depends on the statements that present before or after it. i have some satatements that allocates memory dynamically. its printing one of that value. is there any proper reason for undefined behaviour. Software Development c | |
A function that takes a string and returns the number of words in the string. An example of using pointers in Pascal. Software Development pascal | |
Can someone help me with this problem... A is an m*n matrix B is an n*p matrix product AB is an m*p then I have to write a function void matrix product that takes two matrices of integers as two separate arguments and then calculates the product of those matrices … Software Development c++ matrix-multiplication | |
hi i am working in paytime software using vb.net 2005, i have a problem employee schedule creation. how to use dayoff(fixed or flexible). any one help me thanks Software Development vb.net | |
help me in listing file names inside directory by using a simple code in c++ that a beginner can understand Software Development c++ | |
is it possible to search a multi dimensional list for a certain letter then print out where that letter is? i know u can use list.index() to find a letter but i could figure out how to do it with multi dimensional lists. thx in advance Software Development python | |
Hi guys, I am working on a conversion of the Mandelbrot Fractal from Java to C# and my programming skills are lacking quite a bit. I am desperately trying to improve but I have come across some errors that are stumping me. I have attached a txt file with the … Software Development c# java mathematics | |
i am using visual basic console application to create programs and here is the question. 4. A program is required for a grocer that will add two weights together (in pounds and ounces). The program should also convert the total weight to a value in kilograms. Use three functions. Function … Software Development visual-basic | |
I've read all the comments on the site on this topic but still can't get this to work. I am using Directx to play video in c#. This is working ok, but I can't work out how to trigger the Video.Ending event. In the `InitialiseComponent` I have `this.MyVideo = new … Software Development video | |
Hi I Have Some Problem with ScrollBox As Below 1- If I Put a ScrollBox On a form and Put Some Objects such as TButton,TImage , .... on it If I move an object to right (or down) and trepass right side (or Down) of ScrollBox the horizontal (or vertical) … Software Development pascal | |
Okey, so what I'm trying to do is to set about 5 labels to visible using a for loop. [CODE] int nr_bokstaver = slutt_losning.Length; for (int index = 0; index <= nr_bokstaver; index++) { label+index.Visible = true; }[/CODE] I want the name of the label to change according to the … Software Development programming-construct | |
[CODE] #include <gst/gst.h> #include <stdbool.h> static GMainLoop *loop; static gbooleanbus_call (GstBus *bus,GstMessage *msg, gpointer user_data) { switch (GST_MESSAGE_TYPE (msg)) { case GST_MESSAGE_EOS: { g_message ("End-of-stream"); g_main_loop_quit (loop); break; } case GST_MESSAGE_ERROR: { gchar *debug; GError *err; gst_message_parse_error (msg, &err, &debug); g_free (debug); g_error ("%s", err->message); g_error_free (err); g_main_loop_quit (loop); break; … | |
I want to add a String to a list, but I get the error [B]Type mismatch: cannot convert from String to List[/B] Initially I did it as follows:[code] List accDetails = tm.get(accNo); [/code] and then like this:[code] String conv = (String)tm.get(accNo); List accDetails = conv; [/code] Both have the same … Software Development java | |
WELL i have five questiosn to answer and use console applciation in c# to answer them in here is the first qeustion: [CODE]2. A telephone company charges its customers 3.5p for each minute they use the phone during the day, 5.4p for each minute during the evening, and 6.25p for … Software Development | |
can someone help me with this problem(factorial) everything is working fine but when I enter a negative number the program crashes somewhere....but n can be any non-negative number Here is da code #include <iostream> #include <string> using namespace std; int fact(int n){ if (n==0) return 1; else return fact(n-1)*n; } … Software Development c++ | |
i have created jar file when i am double click jar file i got error could not find main class program will exit i am setting jar properties file mycomputer->tools->folderoptions->filetypes->jdk->javaw i have created manifest file also i am using windows xp operating system can anybody tell wha t is the … Software Development file-system java operating-system | |
Hey,everyone.. pls I need a very exhaustive example of a typical linked list for better understanding .Any help will be appreciated..Thanks Software Development c++ linked-list | |
why when I run it ....the output of the "if" statements doesn't come up ...Im trying to see if theres any erros but I just cant find anything please any help I would appreciated [CODE] include <iostream> #include<iomanip> using namespace std; int main() { char size; cout<<"******************Welcome to M&D Pizza … Software Development c++ | |
I want to draw a battery meter. For this I am painting my panel with Filled Rectangles using AWT Graphics class. Is it possible that I can add a tooltip so that whenver a mouse is pointed on the top of the rectangle a text is displayed(which will be the … Software Development java | |
[CODE]import java.util.Scanner; class ReverseWord { public static void main(String args[]) { Scanner myScanner = new Scanner(System.in); char c1, c2, c3, c4; c1 = myScanner.findInLine(“.”).charAt(0); c2 = myScanner.findInLine(“.”).charAt(0); c3 = myScanner.findInLine(“.”).charAt(0); c4 = myScanner.findInLine(“.”).charAt(0); System.out.print(c4); System.out.print(c3); System.out.print(c2); System.out.print(c1); System.out.println(); } }[/CODE] the code above if you type stop in the windows … Software Development java | |
I have the following code that tests a string to see if it is a palindrome. The only error I am getting is when I try to pass each character to the queue and stack. Is there another way to pass it to each? [CODE]//Implement the palindrome-recognition algotithm described in … | |
I have been looking for something to make it click in my head on how to get the average of my array and I need help. [CODE]#include <iostream> #include <math.h> using namespace std; int grades[10],a,total; double average; void main(){ cout << "Enter 10 test grades to average:" <<endl <<endl; for … Software Development c++ | |
Can anyone tell me what the assembly type for bottom assembly program? #DEFINE PAGE0 BCF $03,5 #DEFINE PAGE1 BSF $03,5 INDF: .EQU $00 ;page 0, 1, 2, 3 TMR0: .EQU $01 ;page 0, 2 OPTION: .EQU $01 ;page 1, 3 PCL: .EQU $02 ;page 0, 1, 2, 3 STATUS: .EQU … Software Development assembly | |
Hi, is there a way to read in a file to give a string which is passed to the method without reading line by line? I need to read in something like this... 1 MLRLPTVFRQ MRPVSRVLAP HLTRAYAKDV KFGADARALM LQGVDLLADA 51 VAVTMGPKGR TVIIEQSWGS PKVTKDGVTV AKSIDLKDKY KNIGAKLVQD 101 VANNTNEEAG DGTTTATVLA RSIAKEGFEK ISKGANPVEI … | |
Explain why data typing helps the programmer when writing a program Software Development vb.net | |
Well, I just solved the problem I was having. A small and stupid error on my part. If there's a way to delete threads, let me know! Software Development java | |
Hello Everybody, IS there anyone in this forum who have worked on Elliptic curve cryptosystem/cryptograpgy? I want to discuss something regarding ECDSA, i have perfectly implemented ECDH and have a problem in implementing ECDSA. Regards! Software Development c++ | |
Hey guys, Im still new to programming and need help with something. I need to read a line of numbers from a text file into an array. I will be given this in a text file and need to store them in an array for later use. 0 1 2 … Software Development c++ | |
Can someone please copy/paste the following source and look at the error message? I am receiving too few arguements to function error. Please help! //preprocessor directive #include<iostream> #include<fstream> #include<iomanip> using namespace std; //global variables/constants, function prototypes void headerfn(); // void fn without parameters void namefn(string fname, string lname); // void … Software Development c++ | |
Hello everybody, I have an issue with a code. I'm don't know how to start this. Here is my problem: Column 2 of my MSFlexgrid = store number. Ex: 1009,1010 etc. In column 20 of my MSFlexgrid = Delivery day. Ex: Sun, Mon, Tue......, Now if store 8009 have multiple … Software Development visual-basic | |
Hey there! Hope you guys can help me out.. Here is my assignment: 1 2 3 2 3 1 3 1 2 Program Requirements: The program will prompt the user for the order of Latin Square that the user desires (again, the above is order 3, which means 3x3; an … Software Development c++ | |
Hey all, first off, I'm NOT looking for answers to my homework by any means. I am rather looking for guidance. I want to understand the material rather than just have the solution handed to me. Therefore, here's my problem: I have a project where I have to read info … Software Development c++ | |
how can i create an database dynamically i.e. my code creating database while running taking an user input?? i have seen code like below working Dim db As Database Dim ReS As Recordset Set db = OpenDatabase(App.Path + "\Data\" + Userinput + "\Memo.dat") Set ReS = db.OpenRecordset("Memo") ReS.AddNew ReS("Title") = … Software Development visual-basic | |
I recently have a thread open, but I feel it is starting to get too long, and the topic is kind of old since I have a new problem now. What I am trying to accomplish here is determining whether a word is a palindrome using queues. My program compiles … | |
Here is the code I'm working on. The user should be able to type in a number and then after clicking the button, list (in a listbox) of all the prime numbers leading up to the number (including the number if it's prime) MY ERROR/PROBLEM: When i input a number … Software Development visual-basic | |
Hi, I am creating a crackme (or possibly keygenme, if i feel like it) that realys on a IsDebuggerPresent call to see if the user has olly or another debugger open analyzing it. My current code reads as follows: [CODE]#include <windows.h> #include <stdio.h> #include <iostream> #include <ctime> using namespace std; … | |
Hello everyone, I am having some trouble trying to get my circularly linked list to work. It does compile but it gives a Segmentation fault. This is my first time learning something like this and I don't really know whats wrong. If anyone could possibly point out some problems it … Software Development c++ linked-list | |
*EDIT* IT IS A SEGMENTATION FAULT NOT BUS ERROR (anyway to change thread title?) I am trying to make a deep copy of a linked list, but whenever I run a test of the constructor i get a "Segmentation Fault". I tested the "Append" method and it works fine. I … Software Development c++ linked-list | |
Ok, I am trying to figure out how to purse this current project which deals with dynamic allocation and linked list Here is the information I am given the following two structs [code] struct employee { int ssn; string name; float hours; assignment * list; }; struct assignment { string … Software Development c++ linked-list | |
hi im trying to write some code for a priority queue using an unsorted array..it should be easy but i have a few concerns about it.. say if i have a graph of something like this: node 0, priority 100 node 1, priority 50 node 2, priority 200 node 3, … |
The End.