132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for spark69

Hello, I have two very simple questions. 1. I want to use fgets(text, MAX_WORDS, stdin) to read in a string file, where my array is text[MAX_WORDS]. But is there a way to make stdin a pointer instead to a 2nd array which can be a buffer? 2.Whats the difference between …

Software Development c
Member Avatar for Narue
0
587
Member Avatar for Loaded Scissors

Hiya, I'm pretty new to C++ (using bloodshed dev). I am trying to display the path of a projectile (tennis ball) on a graph. I can do all of the calculations and output to a text file at each point however I can't find anything on the internet to explain …

Software Development c++ display
Member Avatar for triumphost
0
202
Member Avatar for Formby

I've looked all over the internet for a suitable solution to my problem, and I just can't fine a simple and effective one; so I hope I can get some help here! First off I am programming a hotel booking system for my college computing project. This consists of a …

Software Development microsoft-access sql vb.net
Member Avatar for Formby
0
159
Member Avatar for iBlake

Ok so what i'm trying to do is grab some strings from a list box and put them in an array so i can list them in a message box each index of the array on a new line so it comes up like this you ordered : arrayindex1 arrayindex2 …

Software Development vb.net visual-basic
Member Avatar for codeorder
0
206
Member Avatar for Rahulgandhi

Hi, me Rahul Gandhi. I am a student have to submit project of 150 marks. I am pursuing my graduation from corrspondent college. Please help to make a project on VB. I don't know how to start and what should be the topic of the project.

Software Development visual-basic
Member Avatar for vikrant1988
0
116
Member Avatar for Jake.20

I need help ... again. I'm having so much problem in here, on how to multiply column 0 to column to which is. The column 0 is the quantity, and the column 2 is the price. I have a pizza hut Ordering system. Here is my problem. After i click …

Software Development listview vb.net
0
88
Member Avatar for AaronLLF

OK, so I'm making a video game and I have a simple inventory code. This is the inventory class: [code] public class Inventory { static int slot[] = new int[17]; static boolean[] taken = new boolean[17]; static int item[] = new int[17]; static int count[] = new int[17]; public static …

Software Development java
0
114
Member Avatar for ThePythonNoob

I made myself a project which is to make a virtual inventory but I have been having difficulty with pickling the variable: inventory. Could someone please insert the strip of code in order to save the variable in a seperate file and make it able to import it. [CODE]import pickle …

Software Development python
Member Avatar for woooee
0
79
Member Avatar for stow19

Hi all, I've been stuck on this problem for a couple days and not really sure if there's a way to do it but... I'm trying to dynamically name arrays for a game. So if someone types in the console 2 people are playing I want two arrays to be …

Software Development
Member Avatar for stow19
0
88
Member Avatar for gingerfish

i have this code, i need to have [B]for()[/B] inside this boolean method, but it shows an error that return method is missing. how can i solve it? [CODE] public static boolean findPrevious(int dataIdx, int featIdx, String data, String[][] array){ for(int i=0; i<dataIdx; i++) { if(array[i][featIdx] == data) return false; …

Software Development java
Member Avatar for Ezzaral
0
189
Member Avatar for geekme

Which gcc compiler should I download for my windows 7 os?

Software Development c++
Member Avatar for mike_2000_17
0
163
Member Avatar for toto_7

Hello guyz, im new in assembly. I have this exercise using MIPS. The idea is to write a fuction that finds the bounding box of shapes in a bitmap. "0s" are the background and "1s" the foreground. I have Runtime exception at 0x00400254: fetch address not aligned on word boundary …

Software Development assembly storage
Member Avatar for rubberman
0
173
Member Avatar for jzng89

I've only just began learning assembly this semester and am having a problem with my assignment. I need to write a code to display 0-9 and then A-Z on a 5x7 LED matrix on a EDS-8086 board via BGC-8088. The problem I'm having is that the Data segment (DS) overrides …

Software Development assembly
Member Avatar for rubberman
0
228
Member Avatar for Runicode

I've looked around online a bit and have a few books, but none of the resources I've read seem to explain what an OPCODE is really for. Could someone provide some details? Thanks, Runicode

Software Development assembly
Member Avatar for rubberman
0
136
Member Avatar for tim.newport

Ok so I am writing code to a contacts database and as i add new info to the table it is not committing to the table. I have attached my program... idk if you will be able to open it. But I have 2 buttons one adds a new row …

Software Development vb.net
Member Avatar for hercx
0
201
Member Avatar for matrixcool

I'm stuck here ! I hava a txt file that contains only integers , I opened the file and read its contents into an array of characters. [CODE] li $v0, 13 # system call for open file la $a0, file # output file name li $a1, 0 # Open for …

Software Development assembly
Member Avatar for rubberman
0
3K
Member Avatar for shyla

Hello guys it my first time trying c# i am trying to solve this problem and this is what i got so far i dont know where to locate the auto implementation properties to which class i a little bit confused appreciate any help the question is add below [CODE]using …

Software Development
Member Avatar for shyla
0
133
Member Avatar for thunderbird24

hi everyone! this is my encryption routine (using standard call) in x86 Assembler __ASM{ encrypt: push ebp mov ebp,esp mov eax, [ebp+8] mov ecx, [ebp+12] push eax and eax,0xAA not al mov edx,eax pop eax and eax,0x55 xor ecx,edx xor ecx,eax rol cl,1 rol cl,1 mov eax,ecx sub al,0x20 pop …

Software Development assembly c++ encryption
Member Avatar for rubberman
0
265
Member Avatar for markfw

Hi. When I was looking at the header files of c library such as malloc.h, I saw that it defines some functions inside the struct (Function Pointer) and other functions outside, so my question is, why sometimes people defining function inside the struct and sometimes outside? Thanks -- Mark

Software Development c c# c++
Member Avatar for rubberman
0
86
Member Avatar for NOVICE3

I wanted to pause the execution of my program by requiring the input of a keystoke (any key). The idea was to put a message on a label something like "Change a switch to --- and then key any key to continue." I expected the program to wait until any …

Software Development
Member Avatar for NOVICE3
0
142
Member Avatar for shauzi158

People, i have downloaded a game cod from the internet and it wont run.. it always gives a linker error and i don't know what to do. i am new to allegro game development and i really need help.

Software Development c++
Member Avatar for rubberman
0
86
Member Avatar for TailsTheFox

Hello, I'm looking for an easy way to wait for a keypress in a non-gui application. Example: I press A, program says "You pressed A" I AM NOT LOOKING FOR STRINGS AND ENTER! THIS NEEDS TO WORK FOR THE ARROW KEYS!

Software Development c++ gui
Member Avatar for rubberman
0
106
Member Avatar for gedas

Hey, i have written immanence java program and now i have been asked to create sequence diagram for it. i am really unfamiliar with uml therefore i was wondering are there any good reverse engineering programs that would create sequence diagrams for me? p.s project has been written using netbeans …

Software Development engineering java java-netbeans
Member Avatar for gedas
0
140
Member Avatar for frenzra

how we write array for dis problem: int movie title; int no of customer ; int no of day ; double ticketprice ; double drinksprice ; double studentprice ; anyone knows??

Software Development c++
Member Avatar for frenzra
0
113
Member Avatar for Nooshin Z

Hi, It's about a year that I have been coding on Java but I still have basic problems working with threads. My main concern is that I can't understand the logic they obey in their behaviour. I know that they are processes which run independently but I don't know how …

Software Development java
Member Avatar for Nooshin Z
0
90
Member Avatar for eileenc87

Dear all, Can anyone tell me how can I call Java function to VB.net window application? Regards

Software Development java vb.net
Member Avatar for Sultan ALfarsi
0
98
Member Avatar for Jake.20

I need help i'm out of ideas, i don't know how to add numbers in a currency format. need help please. Thank you in advance.

Software Development vb.net
Member Avatar for codeorder
0
216
Member Avatar for stupid guy

hi all, i have an applet code here..i wanna do database operations later on..but i m stuck to this basic applet function..have a look [CODE]/* * @(#)Appletsamp.java 1.0 11/04/09 * * You can modify the template of this file in the * directory ..\JCreator\Templates\Template_2\Project_Name.java * * You can also create …

Software Development java
Member Avatar for JamesCherrill
0
143
Member Avatar for cretaros

Is there any methods that in java can make or prevent its window frames from being moved or being dragged, like those in windows 7 installations. post it guys if any and it will help others too! thanx in advance.

Software Development java
Member Avatar for mKorbel
0
113
Member Avatar for jimJohnson

I am trying to finish this palindrome program and the only output I get is output cannot be found. Can anyone show me what I am doing wrong. I will put the instructions in if needed for a guide to show what it needs to do... [CODE] #include <windows.h> #include …

Software Development c++ queue
Member Avatar for abhimanipal
0
173
Member Avatar for Armanious

Hey, everyone, as you can see, first post. I'm just stumped. I've tried everything I can think of to [COLOR="Red"]highlight certain keywords as the user types in a non-CPU intensive manner in JTextPane with a StyledDocument[/COLOR]. I'm almost sure there is a logical way that I cannot see, but here …

Software Development java
Member Avatar for Armanious
0
395
Member Avatar for codeyy

I am trying to write pop() function in a file but I am really stuck. It looks like it is asking to delete the top element of the stack and returns a Bookmark pointer. Please, help!! I am showing the header which explains what needs to be done. [CODE]#include "Bookmark.h" …

Software Development c++
Member Avatar for Narue
0
165
Member Avatar for sergent

C:\Users\Kostya\Desktop\c++\MacroWriter\ifexists.cpp|27|error: ambiguous overload for 'operator=' in '((farm*)this)->farm::sendeachbase[i] = 0'| Ok so I am making a class for my program and I want to initialize some of its variables to 0's. I haven't done anything with classes for a while so I am not good with this stuff. This is my …

Software Development c++
Member Avatar for mrnutty
0
255
Member Avatar for SWEngineer

I'm new to [B]Qt[/B]. What resources do you recommend for learning Qt? Thanks.

Software Development c++ qt
Member Avatar for SWEngineer
0
230
Member Avatar for Jessurider

hey can any one tell me what's the advantages of c#.............when compared to all other languages

Software Development
Member Avatar for ddanbe
0
61
Member Avatar for cwarn23

Hi, I have 2 images stored in the variables [ICODE]Image img_arrowl; Image img_arrowr;[/ICODE] and now I need a function or method to set the opacity of these two images. So the syntax I'm after would be something like the following: [CODE] img_arrowl = set_imgopacity(img_arrowl,0.75); img_arrowr = set_imgopacity(img_arrowr,0.75); [/CODE] The only …

Software Development image java
Member Avatar for mKorbel
0
2K
Member Avatar for Jessurider

hey i'm planning to display all the datas that is in the database as shown in picture [B]output.bmp[/B]........but i can't print the whole thing in the database, instead i could print only the first row in the database as shown in picture [B]database.bmp[/B]..........can anyone tell me how to print the …

Software Development open-source
Member Avatar for Jessurider
0
99
Member Avatar for ursdestiny

Hello, I have date saved as varchar (Day,DD,MM,YYYY)in my database(DB) and it is displaying on my DB binded datagrid. I have binded it through VS.NET 2008. Is there any way I can get the sorting of my datagrid from date? Please tell me the possible solutions for it. Thanks Adnan

Software Development
Member Avatar for abelLazm
0
73
Member Avatar for missc

hi, for a 'total cost' field in sql i used the data type 'money'.. in c# what data type should i use to match that of the sql?? decimal or float?? thanks

Software Development
Member Avatar for Momerath
0
191
Member Avatar for gogs85

I have to make alikation which is to measure the response time of site. Application can not be blocked during the response / request process? Help please!

Software Development
Member Avatar for gogs85
0
100
Member Avatar for sha11e

When writing this: [CODE] #include <iostream> #include <iomanip> using namespace std; int main() { float number = 2.12345; cout <<fixed <<setprecision(3) <<number; return 0; } [/CODE] I get 2.123 If I then cout another float variable that I want all decimal numbers at, and not setprecision(3)...... How do I do …

Software Development c c# c++
Member Avatar for sha11e
0
3K
Member Avatar for TrustyTony

I got a look one huge Java code suggestion from one [URL="http://www.daniweb.com/software-development/python/threads/86608/1525822#post1525822"]newbie high jacker of old thread[/URL], so I had to write this code. [url]http://oeis.org/A001235[/url] (for values with [B]minimum [/B]2 ways, first difference is 87539319 with three ways. You can of course change the if part of the print to …

Software Development python
Member Avatar for TrustyTony
0
4K
Member Avatar for MingMing

I was wondering how I could create a java application program which allows sending free sms to any network subscribers without the use of any hardware component (i.e. GSM modem). Is it possible? What are the things should I consider and how does the logic work? Can anybody tell me …

Software Development java
Member Avatar for MingMing
0
176
Member Avatar for niths

Hi all, I have some images path in database. So i need to get those images in a slide show like this [URL="http://www.trans4mind.com/personal_development/JavaScript/imageSlideShow.htm"]http://www.trans4mind.com/personal_development/JavaScript/imageSlideShow.htm[/URL] But in this link only 4 images were there. But for me i need images from database. so how can we do that can anyone help me.. …

Software Development
Member Avatar for abelLazm
0
99
Member Avatar for bahed121

Hello All, Can any one tell me how we bind data to a ComboBox from a dataset? Thanks for your precious help

Software Development dataset
Member Avatar for bahed121
0
119
Member Avatar for missc

hi, i have added a new tool to the toolbox in visual studio by adding an existing solution to my solution and automatically a new tool was added to the toolbox. now, how can i make it portable so that when i open my solution on another pc, it will …

Software Development visual-studio
Member Avatar for missc
0
105
Member Avatar for Jessurider

I want to make to security question just like the one attached in one of my project........can anyone tell me how to do that.........here i'm planning to save the answer in sql server...........is it possible to do that............

Software Development
Member Avatar for abelLazm
0
93
Member Avatar for ManShake

Hi everyone, I have an assignment where, given a list of points in 1 dimension (that is, they are points (x,0)), to find the closest pair recursively. I've been moving along pretty well and I think I have a sound algorithm in place, but I hit a roadblock. My algorithm …

Software Development algorithm java
Member Avatar for chico9
0
1K
Member Avatar for C++NewBe

Based on my header file. How would I write a complete definition of the function temp (). [CODE]const int MaxDays = 31; // Maximum number of days in a month const int MaxTimes = 5; // Maximum number of times temperature is measured in // a day plus one column …

Software Development c++
Member Avatar for VernonDozier
0
137
Member Avatar for sdr001

Note: vector < vector < string > > addresses; I am having a problem with this line of code: addresses.push_back(addy.c_str); I am trying to push back an email address in the i location of the 2-d vector. I have tried: addresses.push_back[(addy.c_str)]; and addresses.push_back[i][(addy.c_str)]; but nothing is working >:/ I appreciate …

Software Development c++
Member Avatar for sdr001
0
162

The End.