132,726 Archived Topics
Remove Filter ![]() | |
This here is a code of my recent uni assignment to render Mandelbrot, Julia and Burning Ship sets, using SDL. The code works properly, using MS Visual Studio 2010 Premium, but displays some errors (either numerical or type casting differences, I couldn't find them) after porting to Linux and compiling … Software Development algorithm c++ visual-basic visual-studio | |
Hi! I have a JScrollPane that contains a JPanel with a CardLayout, which in turn contains two JPanels with some labels and stuff. I want the contents of the ScrollPane/ViewPort to never exceed the width of the viewport. The problem I'm having is that when a label holds a lot … Software Development java | |
These two functions compute the orders of the lowest bit and the highest bit set in the binary representation of an integer. I expect them to handle securely very large integer values. Software Development python | |
I am supposed to make a binary hash tree mix of code. I know what I am doing for the most part, but its been a while since I have done some serious C++ coding. The compiler is yelling at me because it doesn't like my last definition in my … Software Development c++ data-science data-structure | |
Hi! I am trying to make a simple program that would determine the number of occurrence or frequency of 20 given array elements according to their respective range. My output should be like this: [CODE]Range Frequency 0-4 0 5-9 1 10-14 3 15-19 5 20-24 7 25-29 3[/CODE] However, I … Software Development c++ | |
Hay guys, i wanted to get the code for a very large factorial but i was unable to do so. Now, i had to work and develop the code myself, which i did. This code calculates factorial of numbers uptil 14000. . i havent tried more. But i guarantee this … Software Development c++ | |
how to play a video on the background of the form please guide i am really confused | |
My simple POP3 client (set up for Gmail) isn't downloading all of my messages... Any idea why? I have 350 messages in my inbox and the program only says 296 of them show up. Program.cs [code] using System; using System.Collections.Generic; using System.Text; using System.Net; using System.Net.Sockets; using System.Net.Security; using System.IO; … Software Development client-server | |
Hi, I'm new here so I'm not sure if this is the right place to ask for homework help. Sorry if it's not proper :) This is from my Data Structures class. I'm just about done with the assignment but it's giving me memory leaks and I'm not sure what's … Software Development c++ linked-list | |
Hello, I'm working on a Moving Ball project and on the moving ball there are random number so i need to use the keyboard or the mouse to click on the number printed on the moving but i dont know how to go about it. here is the code below: … Software Development java java-swing queue | |
hi, can someone help me? i am using vb.net2010 and mssql as my database. what i want to do is when i open the form, the database will auto increment the student id and show it on the text box. | |
Hi friends, Can anyone tell me how can we get message boxes (e.g, with buttons OK, Cancel) in C ? Please guide. Thanks, Neelu Software Development c | |
Hi, I am doing an exercise of Head First Java Pool puzzle. I tried many times and finally got the output required but I am still not fully understand that how program produced that output. The code for Pool Puzzle is as under: [Code] class Echo { int count = … | |
Hello! I’m trying to build an app, which should have Flash Player control, which plays SWF from server (certain URL). For Flash Player ActiveX you have to save SWF file to a temporary location to load it and play, isn’t it? You'll have to create a corresponding link that you … Software Development flash | |
This snippet defines a decorator @mixedmethod similar to @classmethod, which allows the method to access the calling instance when it exists. The decorated functions have two implicit arguments [i]self, cls[/i], the former having a None value when there is no instance in the call. Using python's descriptor protocol, the implementation … Software Development python | |
Hello forum, Vaironl here. I have a small question, I'm making a new screen using the GridBagLayout, since my old screen was using absolute positioning. I'm using a JScrollPane and setting a subPanel in it. THe subPanel contains 40 labels saying Ingredient. For some reasong the Ingredient Scroller will take … Software Development java java-swing | |
Is there any way to extend gaps between jmenuitem? Software Development java | |
How print this series in while loop square root 1 2 4 8 16 32 64 128.......... and cube root 2 8 24 72........ Software Development java | |
I've made a program that creates a log of the activities performed in it, for easy reference for the user. But I want the program to automatically delete the file after the program is shut down. What is the syntax and how do I go about doing it? Software Development c++ | |
Program 66: Tromino Tiling An N x N (where N is a power of two) chessboard can be tiled with L-shaped tiles that cover three squares so that any given square and only that square is left uncovered. Assume that the rows of the board are numbered from one to … Software Development c | |
this function will calculate a string formula which support cos, sin, log, abs, mod, and example : [10*2+(2+3)]/(5 mod 4) and you will get the answer, and this function it really easy to plugin with you code. Software Development visual-basic | |
Hi! I would like to develop applications using c or c++. but i have no idea how to start with it, i did try the search engine but didn't get a satisfactory answer. can i get some ideas and examples please:-/ Software Development c++ | |
Has been released by Microsoft. It includes [LIST] [*]64-bit Windows Developer Preview [*]Windows SDK for Metro style apps [*]Microsoft Visual Studio 11 Express for Windows Developer Preview [*]Microsoft Expression Blend 5 Developer Preview [*]28 Metro style apps including the BUILD Conference app [/LIST] You can download it [URL="http://msdn.microsoft.com/en-us/windows/apps/br229516"]here[/URL]. I'm about … Software Development visual-studio windows-vista-7-8 | |
Version 2.6 of wxPython has support for playing animated gif image files. The example sets up a panel on a frame and then uses wx.animate.GIFAnimationCtrl() to do the hard work. Actually pretty simple code. Software Development python | |
Hello, and happy new year first of all. What I am trying to do is make a program that according to the values the user inputs then displays a polynomial. The forumla for the polynomial is this: [code]float par(float x) //H timh ths synarthshs sto shmeio Xo { float tel=trap[0][1], … | |
When reading characters from standard input what does it mean when you are asked to sop on hitting EOF in the input? Software Development c | |
This release is an updated version of my previously released code snippet entitled "Get Internet Connection State". I've made this snippet into an actual control that you can add to your toolbox. It can be used with all versions of Visual Studio C#. I'm also posting the main source code, … Software Development visual-studio | |
i have login form which is form2 i have another form which is form1 the form1 should come only once that to when i install this application in the new machine after that it should not come again only thing is when we click on the linkedlabel which is in … Software Development vb.net | |
Folks have asked numerous times for a code snippet of a binary search of an array. Here is heavily commented code with a few test printf() included to give you a picture of what is going on. Software Development c | |
write a program to accept the salaries of 10 employees from the user and display them in descending order for all the employees,if the user enters zero, the program should display the message"the amount should be greater than zero" and accept the value again. [CODE]#include <iostream> using namespace std; class … Software Development c++ | |
Hi, I am a newbie in C and have this question with char pointer; [code=c] char * s = "hello world"; *(s+1) = 'a'; [/code] This is throwing a segfault error. Should'nt this work since I am modifying only one memory location. Also I have seen such code on the … Software Development c++ | |
Need help. I have a combobox (cmbCharge1) that gets populated by a text file. Inside the combobox, the data inside is laid out like this: 41-1A-1303: EXPIRED REGISTRATION Now, autocomplete works fine, if I start typing in the statute (like the 41 part). But what I need is for it … Software Development vb.net | |
I am working on this visual studio 2008 calculator in c#. The calculator seems to be working, but when I created the Calculator Class, now it does not compute. I can click the number buttons, and they show up, but when I hit equals I just get a zero. Can … Software Development visual-studio | |
hello i have two text boxes 1)username 2)Password i have a little confusion, when we execute the form by entering the username and password it will execute no problem but when we execute for the i want the same username should be written which has been used in the previous … Software Development vb.net | |
Hey guys, I am working on this square deal problem that I cant figure out. This is the problem: Input for this program will be two positive integers entered from the keyboard via scanf. The first will be an odd integer N in the range of 3 to 15. N … Software Development c | |
hi everyone, I am writing a small client and server application in java which uses SSL sockets and AES, i got this from the net and edited it a bit is this correct and secure? client: [code=java]/* * To change this template, choose Tools | Templates * and open the … Software Development client-server cybersecurity java socket-programming | |
Ive made my binary tree in the following format [code=C] typedef struct node { int info; struct node *left; struct node *right; }*nodeptr; [/code] Im looking for a function that will accept the root pointer and print the tree in a graphical format. for eg. i want the output to … Software Development c | |
I have just started programming in c++ (yesterday), my background is in HTML, CSS and Javascript. i'm on chapter 5: controlling program flow (c++ for dummies) currently creating a break in a "for loop". Anyway'z my problem is, when i build and run the program all action's i want the … Software Development c++ html-css javascript os-x ![]() | |
I have a hash %d,i want the top five valued keys.I did the following wich worked but is there anything more effecient? [ICODE]@p=(reverse sort{$d{$a}<=>$d{$b}} keys%d)[0..4];[/ICODE] Software Development perl | |
Hello... I'm practicing c++ and I'm trying to create a program with register and login in it.. the problem is I'm trying to compare the register username/password to the login username/password but even though the comparisons are right it's not working.. [CODE]#include <Windows.h> #include <iostream> #include <iomanip> #include <string> #include … Software Development c++ | |
hi.. can u help me calculate age using vb.net. i have txtage.text and txtdob.text. the format dob is 21.03.1978. and if txtage.text <35 it will in group 1, if txtage.text < 49 it will in group 2. the group in radiobutton. i've bee thinking this problem almost 3 days. please … Software Development vb.net ![]() | |
Dear all, Could you tell me how to go about executing MSDOS commands thru Java. I tried with the Process class but it gives an error:2. Could anyone please advise. Software Development java | |
Hey all! I am interested in learning to use sockets. make client and server program. Where should I begin? Thanks! Software Development c++ client-server socket-programming | |
how to write a programme for a list box having 10 items in that just by a single click on one of the item it should be written on the button if a list is containing notepad than by clicking on the button it should open the notepad please help … Software Development vb.net | |
Hello currently I have started a project for my school. The project is a program that can factor a trinomial. So far I have it set up to take the users inputs. then it multiplies two of the inputs to get a new number. My problem is that i need … Software Development python | |
Somebody told me that he could access c++ private data members without using the " Friend" type or public functions.He gave a source code and that was compiled in Turbo c++3.0 :-( May I post that here? Software Development c++ first-post | |
how to link the form so that it should display as soon as the computer gets started and the user should not access any other thing first he has to attempt the form then after successfully he can acess rest of the other option the form will be containing user … Software Development vb.net | |
Hey im writing a program and i have countless errors. Im following tuturiols and i have no clue what has happened. Thats the list. Im screwed. can anyone spot anything to get me kick started into a functional game. 1>c:\users\conor\documents\visual studio 2010\projects\ca2\ca2\weapon.h(21): error C2590: 'load' : only a constructor can … Software Development c c# c++ visual-studio | |
want to do: [ICODE]dict = {'1': ['a'],'2': ['a', 'b', 'c']}[/ICODE] invert it to: [ICODE]inv_dict = {'a':['1','2'],'b':['2'],'c':['2']}[/ICODE] i know the one liner, if the dict was one to one, [ICODE]inverse = dict((d[k], k) for k in d)[/ICODE] can I modify this to work if it was not one to one? My … Software Development python | |
[CODE]void inorder(struct node *r) { if(r!=NULL) { inorder(r->left); printf("\t %d",r->data); inorder(r->right); } }[/CODE] in the above code when the last element is reached i.e r->left becomes null then when inorder(r->left) is called it will send a null value to the function and if condition becomes false so the it'll come … Software Development c++ programming-construct |
The End.