43,549 Solved Topics
Remove Filter ![]() | |
[B]Intro[/B] C is using structures to group data, mostly data that belongs together. Here we have some data that a campaign manager might keep for the volunteers. First we take a look at the C code: [code=c]#include <stdio.h> struct person { char *name; char *sex; char *slogan; }; int main(void) … Software Development data-structure python | |
I'm trying to build libpng which has worked up to a point. I'm using Windows XP, and have a MingW compiler. I also have MSYS installed and am using it to configure libpng. The issue I'm having is that libpng can't find zlib. I've tried every variation under the sun … Software Development c++ | |
I creating a test program for TKinter, and getting some errors :( from Tkinter import * class App: def __init__(self, master): frame = Frame(master) frame.pack() self.button = Button(frame, text="QUIT", fg="red", command=frame.quit) self.button.pack(side=LEFT) self.hi_there = Entry(frame, text="Hello", command=self.say_hi) self.hi_there.pack(side=LEFT) username = StringVar() name = Entry(frame, textvariable=username) name.pack(side=LEFT) print name.get() def say_hi(self): … | |
Alright, so I need some more help. This time, the problem is not inherently in the code (Though I've had trouble with that thus far too). I am currently playing around with open and close file dialogs trying to get what seems to be an out-dated "GetOpenFileName()" function to work. … | |
Hi I am setting the sampler states initially then setting them on the fly with keypresses that I know runs but I dont see anything changing. Am I missing something. Can I just call SetSamplerState(...) anytime or do I need to call something after? static bool bToggleH = false; static … Software Development c++ | |
i getting error on getdocumentbas(). is there a easy way to display image on screen??? public class Player { private Image mario; public Image getPlayerImage() { return mario.getImage(); } public void init() { mario = new Image(getDocumentBas(),"Image/player_walk_right.GIF"); } public void paint(Graphics g) { g.drawImage(mario,x,y,this); } } | |
Hey there, so I recently joined an online course, and the first mini-project is to create rock, paper, scissors, lizard, spock. upon testing my program it seems I've got an error in my code and I can't for the life of me figure it out, I was hoping you guys … Software Development python | |
Hi, I have datetimepicker and next to datetimepicker is textbox. When I choose date from datetimepicker, selected date goes into textbox. Works fine. -- txt1.Text = Format(DateTimePicker1.Value, "dd.MM.yyyy") Problem is, when selected date from datetimepicker is shown in txt1, that date doesnt want to be saved into database. Database is … Software Development vb.net | |
This is a part of the question of my assignment and i am facing problems on how to access the array in a function. Write a function that finds the 2nd minimum value among the given data items of float type, and returns the 2nd minimum. You should use pointer … Software Development c | |
I am trying to input an int into the end of a singly linked list. I have already created the code to put a number at the end of the list but when I go to print it out, it only prints out (in my test class) the int that … Software Development java linked-list programming-construct | |
import javax.swing.* ; import java.awt.event.*; import java.awt.*; import java.io.*; import java.util.Calendar; import java.util.*; import java.text.*; import java.util.Date; /* <applet code="gui.class" width=250 height=100> </applet> */ public class gui1 extends JApplet implements ActionListener { JTextField t1,t2,t3,t4,t5; JLabel l1,l2,l3,l4,l5,l6; JButton b1,b2; Calendar c1,c2,c3; JPanel p,p1,p2; Date sd,sd1; SimpleDateFormat sdf; public void init() { … Software Development gui java java-swing | |
Hi all, I'm about to get a little long winded here and I'm sorry for that but I have a couple of issues that I need guidance with. I have assembled a procedure that basically performs a bunch of web browser clicks to query Statistics Canada (SC). The query itself … Software Development java javascript vb.net | |
Hi all, I have the following procedure that connects to my database. Sub getDateModified() Dim fileCreatedDate As DateTime = File.GetCreationTime(strFilePath + "\CPI1.csv") Dim stmt As String SQLConn.ConnectionString = ConnString SQLConn.Open() stmt = "select Table_Numbers From tblRelease_Dates Where (Release_Date Between '" + fileCreatedDate + "' And GETDATE())" SQLCmd.Connection = SQLConn SQLCmd.CommandText … Software Development vb.net | |
I have written a VB reservations program that writes back to a SQL 2008 database. When I write the reservation event back to the data base, I also write the reservation 'end time' back to the database as reservationtime + 4 hours in order to block off the event resource. … Software Development vb.net | |
Hello, My son is taking a java course in Hawaii. His text book is "Java Solutions by Lewis & Loftus 6th edition. He copied several text book examples and tried to compile them with JCreator and NetBeans 6.8, each compiler gave pages of errors. The question is " What is … Software Development java java-netbeans | |
Dear all, I hope that you can help me with a vb.net problem. In my program the user chooses multiple options. When a group of options is given, than the program wil check if the user has give the right start and end value. See the code below If Me.cboA.SelectedIndex … Software Development vb.net | |
Hi, I was wondering if there is a way to click at a certain point in the figure thats made, and make python pick up those values. So I can see the value of x f.ex in the down left corner in the figure. So my question is if it … Software Development python | |
hello everybody, can you do something like this: dim x as integer=1 button_x.visibility=Windows.Visibility.Hidden i have about 24 buttons on my form that i need to change the visibility for. which buttons need to be changes - is a variable i get from database query. so i'll get several rows of … Software Development vb.net | |
this code is working for a counter of 6 bit and i need a counter of 48 bit ... if u have time kindly try it..... i try alot but not succeed #include<stdio.h> #include<stdlib.h> #include<float.h> #include<math.h> #include <time.h> #include <cstdlib> #include <iostream> #include<stdint.h> #include<conio.h> int main() { int a[64][6]; int … Software Development c | |
Hi I can't seem to adjust the D3DXFONT_DESC properties. Sometimes it breaks at getDesc(...). I want to be able to have **each text row have their own font description and be able to change it**. Why is it not working??? Maybe I setting it in the wrong place or maybe … Software Development c++ | |
I need to create a palindrome tester program that ignores spaces, punctuation and uppercase/lowercase to determine if the string given to the user is a palindrome (same beginning to end as end to beginning). HERE'S WHAT I HAVE SO FAR: String str, another = "y"; int left, right; Scanner scan … Software Development java mathematics | |
Hi friends! I have a piece of code that I think should be working just fine, but I wonder why it doesn't work, and I get an "Syntax Error in INSERT statement" error message. Here is the code to affect a table called "Users" in my Access database. Dim cmd … Software Development vb.net | |
first buid array with images's --90 images PImage pic[]; void setup() { size(900,900); pic = new PImage[90]; for(int i = 0; i < 90; i++) { pic[i] = loadImage("section_"+i+".jpg"); } frameRate(0.5); smooth(); } than prnt image on screen int i = 0; int counter = 0; int flag = 0; … | |
hi, so i coded a projectile motion java applet, not only with this but with many other programs i get problems which seem to me to be a memory issue. But the first time lets say I shoot hte projectile it will not show the screen until it has landed … Software Development java | |
I am trying to run a program from python command line. I installed python on D: drive. PLZZ help me in fixing this problem. Software Development python | |
I was asked in my C# class to write a simulation of a Tic-Tac-Toe game, and although the assignment does not request what I'm asking about, I'm a little curious about something. It just wants us to use an array to hold a random 0 or 1, and then 0 … Software Development | |
hi i have been trying to draw a stick figure, but i don't know how to start, pls i need a help. Software Development python | |
I am looking at python and I want to allow the user to click on the centre of the screen and create a circle, this is what I have. Any help will be very appricated. import from graphics * def blueCircle(): win = GraphWin("Click Here") p = win.getMouse() circle1 = … Software Development python | |
I have a void pointer that I casted to a char*. I'm trying to put different data types in that char* without having to cast so much. This includes doubles, floats, int's, etc.. char* Data = static_cast<char*>(GivenPtr); switch(reinterpret_cast<int>(Data)[0]) //Or should it be reinterpret_cast<int>(Data[0]) { case OBJECT: //defined as 301; { … Software Development c++ | |
Basically my assignment is create the best Boggle board. Basically so far I've successfully created a randomly generated board, read in the dictionary, allocated dynamic memory for the dictionary, counted the frequency of each letter (for example 'a' has x amount of characters in the dictionary), and found the percentage … Software Development c++ file-stream | |
Hi I dont understand why this int keeps corrupting ::Draw works fine but the variable m_EndRow ends up as a funny number. The class is supposed to print debug info to my screen. ::AddText adds a row of text which is then printed in DrawTable. Simple problem if you already … Software Development c++ | |
I need to export DataTable to Excel file. Is tehre anyone help me? I dont want to listview to excel... Regards. Software Development listview | |
Ok so this is my task: Description: Create a generic class called GenBinTree. GenBinTree will use nodes that store a value of the generic type to store its contents. This tree will not be a search tree (no ordering of nodes by value). What ges me its the the part … Software Development data-structure java seo | |
Hello, everyone. I am a first year IT Engineering student as well as a complete newbie to C (and programming in general). In my introductory course, I was given an assignment, which involves creating a program to get the elements of two 3x3 matrices from the user and display them … Software Development c engineering | |
Does anyone have a tutorial for writing Custom Allocators and Memory Pools for std::vectors and Objects? Basically I've looked at placement new and I want to know how I can force vectors to use this with my shared memory pointers. I'm thinking writing a class for it might be much … Software Development c++ | |
Hi, i have a 2D list in python which i'm trying to fill using 2 for loops. but the problem is when i finish the filling procedure and i print the values, i find that they are not arrangeed in the order of input. def funcdist(myarr): diffs = 0 testarr … Software Development python | |
Hi! I'm trying to create a method for simultaneous dragging a group of JLabel components. First, I select the components to be dragged ([ICODE]getSelectedStatus() -> true[/ICODE]), and then I want to be able to drag the selected components. I have a working method for a single JLabel component, but there … Software Development java | |
Hello Community, I was wondering if there is a way to stick a cmd window/process that i called from my vb form to the bottom of the form like the picture: (below)  And so where ever i move the form the cmd windows will also follow. Also is … Software Development vb.net visual-basic | |
So the task is relatively simple; create a program that will generate a random number, and then prompt the user to input a number. If the is lower or greater than the generated number, a message will display whether you're lower or higher than the number. The program also records … Software Development c++ | |
Hey im just wondering if or how i can split up my services **IService** namespace Phpwcfconsole { // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together. [ServiceContract] public interface IService { [OperationContract] string KundNyKund(Variables.Kunder … Software Development | |
I would like to see how the solution 3.16 looks after it's all done. I've tried to run my program, but it won't run. Can someone please forward what it should look like before I run the program. I must be missing something...? Software Development c++ | |
I'm in an introductory CS course and our task is to build the best ideal boggle board (one that would get you the most points). We are allowed to use arrays, c-strings, and reference parameters (no structs/pointers since we are just starting to learn about those). Step one: I built … Software Development c++ file-stream file-system open-source | |
If I want to transfer var1 in form1 to form2 to be used in an alogrithm how do I do this? I have tried importing the form and then using the variable - no success. I have tried something to this effect form1.var1 - Get the error that var1 is … Software Development vb.net | |
I am coding something fairly simple and I've run into a few barriers. Keep in mind I don't have much experience in VB.NET. **1) I have created timer that is activated by the user with a user-defined time. But, when the "Start" button is clicked, the timer immedieatly sets off … Software Development vb.net | |
hi whats the meaning of these signs? for example: [B]System.out.printf("[COLOR="Red"][U]%6s %6s %10s[/U][/COLOR]", "x1", "x2", "(y1, y2) \n");[/B] Software Development java | |
Hi guys, This feels like something that should be possible in Python, and something that I feel like I should know how to do. Image I have a list of numbers: items=[10,20,30] Let's say I wanted iterate over them and define two new variables, a and b. a=[] b=[] for … Software Development python | |
Let's say I have a method called 'test' which should return the arraylist called 'theList' containing X number of Integers. How would I do that? public static void test(){ SOME CODE ... return theList } What should 'void' and 'theList' be replaced with in that code to make it work? Software Development java | |
hello ive been working on a small project and im a bit stuck. import subprocess path = "/var/log" #i wanna be able to do something like subprocess.call("nano path") # but i noticed that using nano like that wont work because path is just a python string any help Software Development python | |
Hi all! I need help with Visual Basic I am trying to build a program in which the user types a question into a text box. Then the program looks for that question in a database (access database to be specific) and returns the appropriate answer from the database. I … Software Development microsoft-access visual-basic | |
Hello Community, I was wondering if there is a way to place CMD within a panel of a vb.net form.  Example: Please Help Software Development vb.net |
The End.