132,726 Archived Topics
Remove Filter ![]() | |
A want to create some kind of global memory table. Every time when I create a specific kind of object, I wolud like to register it in the table, and save some data. Let assume that this "memory table" is a map, and a global variable. Let assume that I … Software Development c++ | |
[CODE]#include<stdio.h> #include<string.h> int main() { int i,x; char c[100]; printf("Enter input :"); fgets(c,100,stdin); for( i = 0 ; i <= (x = (strlen(c))) ; i++) { if( c[i] = '\t') { c[i] = (' '); printf(" "); } printf("%c",c[i]); } }[/CODE] the aim of this program is that it will … Software Development c | |
I am trying to draw stars/asterisks but i can't. Any idea? [CODE] import java.io.*; import java.awt.*; import javax.swing.JPanel; import javax.swing.*; public class kmd1234 extends JFrame{ kmd1234(){ JFrame f; JPanel p; JLabel l; int x,y; f = new JFrame("my frame"); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); p = new JPanel(); p.setPreferredSize(new Dimension(512, 512)); p.setBackground(Color.WHITE); l = … Software Development java java-swing | |
using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Data.OleDb; using System.Web; using System.Configuration; using System.Data; using System.Collections; using System.Windows.Forms; //using System.Data.ConnectionState; namespace QuanLiDSSV { public partial class Frm2 : Form { public Frm2() { InitializeComponent(); } private void btnBrowse_Click(object sender, EventArgs e) { OpenFileDialog sh = new OpenFileDialog(); sh.FileName … Software Development microsoft-access open-source | |
I know I would first declare the input variable as char. But that just reads in the first letter of the word. How can I print or read each letter of a certain word? Software Development c | |
I am writing an x86 assembly language program that between base numbers.My problem is how to make it happen like this: [QUOTE]Welcome 1. Binary <-> Octal 2. Binary <-> Decimal 3. Binary <-> Hexadecimal 4. Octal <-> Decimal 5. Octal <-> Hexadecimal 6. Decimal <-> Hexadecimal Please enter the type … Software Development assembly | |
ok so heres my script [CODE] #include <iostream> using namespace std; using namespace std; int Unitedstates() { int action; char action1; cout << "you have chosen to learn more about the united states. Now What will you do?" << endl; cout << "1. The quality of doctors in the United … Software Development c++ | |
The Assignment is as follows: Write a program that allows the user to enter foods and their calories into two arrays. Allow for UP TO 100 entries, although the actual number may be way less. When the user types "done" then stop asking for new entries. Next, prompt the user … Software Development c++ | |
Hi, I have a Entity Bean and A session bean facade. My Client side look up works fine and I am able to retrieve the .count() method results. But when things involve serialization, like .create() or delete() or edit(), java.lang.reflect.UndeclaredThrowableException comes up.. Any pointers will be appreciated [CODE] package eb1; … | |
I need to scan for the following input type using C: number letter number so i used the follwing: scanf("%d%c%d", &n1, &lett, &n2); Unfortunately with this, whenever I attempt to input a single number and press enter, scanf continues to expect another input. How can I adjust the program so … Software Development c++ | |
Hi, I'm processing a small text file which contains information about the Winter Olympics. However I don't know how to keep the list the same for each country whilst making a new list for a different country. So far I've read in the lines and I have put the data … Software Development data-structure python | |
Hi, I am trying to compile an open source code on linux Ubuntu and getting the following error: conflicting types for ‘strlen’ I am pasting the program in which it is giving me the error : [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> #include "port.h" /* * strstr - find first … Software Development c open-source ubuntu | |
Yes I am new to learning java. I am just learning loops. For my online college class I have to write a program using the for loops. This program needs to give all even numbers between 0-100. I have a program written that gives me all numbers 1-100. Can anyone … Software Development java | |
Hi everyone, This is my first post on daniweb! I'm fairly new to C++ and am trying to add sound to my application using FMOD. Now, I have managed to get sound playing correctly using FMOD, but I'm now trying to get all the sounds I want loaded, into a … Software Development c++ visual-studio | |
My friend gave me 10,000+ ROM's for Sega, SNES, NES, and GBA. They where all individually zipped. I go fed up trying to unzip them one by one, and decided to write a script to do it for me. It unzipped about 5,000 in under a minute. Python's zipfile module … Software Development python | |
Here is the formula i'm suppose to use: i'm suppose to to write a complete program with a function using two parameters to calculate: x(!)^n, where x(!)^n = x!! ... ! use BigInts For the calculations ----- n times this wis what I have, i don't think it's right, if … Software Development c++ | |
Hi im still quite a terrible programmer, so some of this is just confirmation of stuff i think is right (and please correct me if i have the wrong idea!) How would you program an anogram maker ? I was thinking of breaking up a String with substring, and then … Software Development java | |
Hi, Starts the program displays two processes, and emits This one error: "Access is denied". Compiling errors do not [CODE="C#"] foreach (Process proc in allProcs) { Console.WriteLine("process: {0}, id: {1} Time: {2}", proc.ProcessName, proc.Id, proc.StartTime ); } [/CODE] Software Development | |
Hi Everybody I am trying to play a MPEG4 Video in JMF over a HTTP server. I tried to write an applet to play this mpeg4 video over HTTP using javax.media package. So, can anyone tell me any solution for this problem? regards Jyotirmoy | |
I wrote a code to read the parity check matrix named "tannergraph" which is stores in a sparse format to save space. It is in the following form: Line 1: Number of Variable Nodes(VN) Number of Check Nodes(CN) Line 2: Column weight Row weight Next VN lines: degree of the … Software Development c++ | |
Hey, I currently have a dataGridView which displays information from my SQL database. I have a button that I use to update/add into the SQL database - for example a user ammends a field in the dataGridView this automatically updates the database. I now want to implement a button that … Software Development dataset open-source | |
My problem is not serious, its just a question about the most beautifull solution. Maybe somebody has a better idea! I have a mathematical class having some numerical functions. It is convenient for me, and speed up the program, if I introduce a member array called "memory", and store the … Software Development c++ | |
So, I am working on a project that uses inheritance. I have a class Creature, which extends Thing. Also, I have classes Tiger and Ant that extend creature. I also have a TestCreature class. All of these are in the same directory, and they all compile. However, when I run … Software Development java | |
I need help with understanding how to fix my for loop and the if tests. Originally, in the for loop, for the end value i had k<=3..but this is wrong because i need to loop to keep going until it passes the test. So i was told to try setting … Software Development c++ | |
I have a database I am creating with about 50 users over a network. There are about 6 groups of users and these users are spread across 10 branches. I want to block/allow users from particular forms and views. For example I want branch users forms to be filtered by … | |
Ok I got the code to work but with some errors. First when i print out the aorted array to the file it is sorted escept for one number in the beginning second it gives me a negative number whihc i believe is a pointer how can i fix this? … Software Development c++ file-system ios | |
Hello, I am trying output number of repetion from user request. So basically there will be repetition print out of the times table when the user enter in the "Enter repetition" dialogbox. For example in the "Enter repetition" dialogbox, i will enter 2, then in "Which timestable do you want" … Software Development java | |
Hey Everyone! I am writing a program for students and to keep it platform independent I have chosen to convert it to Java. Now, earlier I was using C# and with MS Visual Studio, I was able to write a plugin which would save all open ms office documents. I … Software Development java visual-studio | |
Greetings! I'm almost finished in creating a geometry wars like game (except that you cant move =P ). For the last few days I've been stuck doing the diagonal movement of the bullets. I wish someone could help me =D here's the constructor of the bullet class x & y … Software Development gaming java mathematics | |
Hello! Im having a problem with the following code structure. The code compiles without problems but when i start the program i get an "exception: __non_rtti_object at memory location...". In the constructor of the model-class i still can get the object information of the node-class through the base pointer. Once … Software Development c++ | |
Hi! I am making a project about doublepointers and inheritance. Have some small issues that should not be difficult to resolve, but I just cant get a grip of it. The task is to add two types of vehicles that have some of the same characteristics but not all. I'm … Software Development c++ | |
Hi all, I thought it would be quicker to design using NetBeans, but now I'm finding that it's more trouble to work with NetBeans automatically generated garbage 'code'. Anyhow, I've tried to remove its automatically generated code for the frame's scrollbar but that just totally messes up the layout of … Software Development java java-swing | |
Hello everyone, I have this code below and everytime I run it I get this error. Please help. [CODE]Private Sub SendEmail(ByVal sender As Object, ByVal e As EventArgs) Handles Button2.Click Email.To.Add(Settings.txtTo.Text) Email.From = New MailAddress(Settings.txtFrom.Text) Email.Body = "Email Body" Email.Subject = "Email Subject" SMTPServer.Host = Settings.txtSMTPServer.Text SMTPServer.Credentials = Authentication SMTPServer.Send(Email) … | |
Hello everyone :) I have to do a very imporant project... And I would highly appreciate some useful hints, since I have NO experience at all with VBA... (I have read a book, but just from reading and following those instructions I am not able to key my own tool... … Software Development visual-basic | |
I'm trying to understand how static ints work within classes, and I've fallen on some code that I don't quite understand how the answers come out to be what they are showing. [code] // static members in classes #include <iostream> using namespace std; class CDummy { public: static int n; … Software Development c++ | |
Hey guys. Im new to these forums and was hoping i could get some help. Trying to figure out how to divide a number by another number in scheme without using /. I have written these functions that i can use in creating the divide function: [CODE](define pwr (lambda (a … Software Development | |
I want to create a link to a web page into an about box and i want it to open it with the default browser.I googled it and found nothing that helps...pls a little help Software Development c# seo web-browser | |
i am a University student pursuing a degree in computer science, it seems as though i really suck at validating things... well I just don't really get the concept i know its conditions but i when i try one it always seems to crash my program I've been trying to … Software Development c++ | |
Can some one give me some code on how to use windows.h..... im making my project, about ATM, i want to make it look good so i need some code on how the use windows header. I saw this person using a goto(x,y) code... and I saw his exe file. … Software Development c++ | |
Hi guys, I've trapped a misbehaving app in a panel and need to zoom out to make the whole app appear inside the panel without having to make the panel larger. Anyone know how to do this? Is it even possible? Cheers! Software Development | |
I'm getting this error at the end of my program... [code] *** glibc detected *** ./a.out: free(): invalid pointer: 0x00617ca0 *** ======= Backtrace: ========= /lib/libc.so.6[0x684ac1] /lib/libc.so.6(cfree+0x90)[0x6880f0] /usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xc986f1] ./a.out[0x804ce2f] ./a.out[0x804973d] /lib/libc.so.6(__libc_start_main+0xe0)[0x631390] ./a.out(__gxx_personality_v0+0x7d)[0x8048de1] ======= Memory map: ======== 00110000-00111000 r-xp 00110000 00:00 0 [vdso] 005fc000-00617000 r-xp 00000000 08:01 687043 /lib/ld-2.7.so 00617000-00618000 r-xp 0001a000 … Software Development c++ | |
I have to clone the calc.exe from winxp and i'm stuck.I'm new in c#. The problem is that I don't know how to get the next number when i press " + ",I take the first number from the textbox but after that I don't know how to read the … Software Development c# | |
I am trying to use C# after using VB for a while. The problem that i am facing right now, is resizing things. In VB i would use the following: [code] Private Sub TextBox_Resize() handles mybase.sizechanged 'change the size of the text box when the size of the main control … Software Development | |
Hi, I would like to know if I could do this: if i were to enter 5 numbers, it would go like this: 5 4 3 2 1 I want to know if I can do it like: 54321 Basically I don't want the insertion to go to a new … Software Development c++ | |
I'm attempting to write an application that searches for and displays optionally sized strings made up of optional characters (both determined by the user) from a file (of any type). The goal is to have said strings displayed in a listBox control. I'm fairly new to C#, so through this … Software Development | |
I have 2 problems: First one is I want to put an user name password in a form...I have designed the table and database and I'm fetching the user names from a table and putting them in a combo box, from the combobox i select the required user name to … Software Development dataset | |
[CODE]#include<stdio.h> #include<string.h> int main() { int i; char line[100]; char line2[100]; printf("Enter some lines : "); scanf("%[^\n]",line); printf("2:"); scanf("%[^\n]",line2); if((i = strlen(line)) >= 80) { printf("%s",line); } if(strlen(line2) >= 80) { printf("%s",line2); } getchar(); return(0); }[/CODE] the main aim of making this program is that it will input 2 lines … Software Development c | |
Output: Enter name: Ferrial P. Esber A - 1 B - 1 E - 2 F - 1 I - 1 L - 1 P - 1 R - 3 S - 1 Space - 2 Please reply ASAP, thank you very much Software Development java | |
Good day, I am a freshmen student in need of some help. I have created an ATM program. This program has text files created for the withdraw transaction, deposit etc. It is like a database program for me. First of all, I would like to know how to compare strings … Software Development c | |
[CODE]#include<stdio.h> #include<string.h> void reverse(char str[]); int main() { char str[100]; int i; printf("Enter to reverse : "); scanf("%[^\n]",str); reverse(str); return(0); } /* Function */ void reverse(char str[]) { int i; for(i=(strlen(str));i > 0; i--) { printf("%c",str[i]); } putchar('\n'); } [/CODE] in this programme when we input 123 output = 32 … Software Development c |
The End.