43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for corteplaneta

Hi, I'm not too experienced with .NET programming, but I was wondering if anyone knows of a custom control in VB.NET that involves a list (sort of like a ListBox), with at least 2 columns, and the ability to select individual members of this list. I basically have a dynamic …

Software Development vb.net
Member Avatar for corteplaneta
0
195
Member Avatar for cutedipti

Hi, I have one query that: Can we write [B]a function similar to printf()[/B]? If it is possible then how could it be written?

Software Development c
Member Avatar for Narue
0
128
Member Avatar for rrreeefff

Hi I am working on a program that computes the sum of N in increments of 3. I do not have any errors but when you run the program it does not compute correctly for example if you enter 2 for n the sum should be 5 [code=cplusplus] #include "stdafx.h" …

Software Development c
Member Avatar for Amisha_Sharma
0
135
Member Avatar for masterovpuppetz

I wanted know if there's a way in c++ to know what character exists at a particular x,y coordinate. for eg: suppose i used [B]gotoxy(2,5)[/B] and my cursor is now at (2,5) and i want to know what character exists next to my cursor at (3,5). How can i know …

Software Development c c# c++
Member Avatar for masterovpuppetz
0
148
Member Avatar for piggysmile

Is there an algorithm in C++ to determine the digit located on a given place value of an integer? For example, 9 would be outputted as the tens value of 196. If none exists, is it possible to code it? If so, what are some of your ideas to do …

Software Development algorithm c++
Member Avatar for Denniz
0
394
Member Avatar for VernonDozier

Okay, suppose I have a class A and subclasses B, C, D, E, F, G. I have a function: [code] public void foo (A object) [/code] I have the default function handler which handles A objects which aren't subclassed, and the B, C, and D subclasses. Subclasses of type E, …

Software Development java
Member Avatar for VernonDozier
0
262
Member Avatar for jazzyangelz

Hi.... I'm a beginner at this programming thing and I need some help using nested for loops this is an assignment i have to do for my class, basically the output should be something like this.. the characters depends on what the user inputs and how many rows the user …

Software Development c++
Member Avatar for jazzyangelz
0
96
Member Avatar for radhika_kodam

i have assignment on java class. plz help me the assignment problem is:Create a class Rectangle with 9 methods: 2 constructors, 3 mutators, 3 accessors, and area. plz help me.

Software Development java
Member Avatar for stephen84s
0
141
Member Avatar for shadwickman

Hello! I've run into a slight problem with my script. As I iterate through a list of strings, I need to print each string, but they all need to print on the same line, so I used this: [code=python] for item in myList: print item, [/code] The comma puts each …

Software Development python
Member Avatar for shadwickman
0
141
Member Avatar for chunalt787

I am trying to compile my program and I am getting alot of these errors: [CODE]Parser.cpp:9: error: stray ‘\200’ in program Parser.cpp:9: error: stray ‘\231’ in program Parser.cpp:9: error: stray ‘\342’ in program[/CODE] That sequence of three lines just keeps repeating and repeating. These are lines 8 and 9 from …

Software Development c++
Member Avatar for stilllearning
0
150
Member Avatar for Grub

Hi I have a program that has a JTree that lists of all the directories on my computer. I also have a JList in and an add button. Now I am trying to select or highlight a directory in the JTree, click the add Button and then update the JList …

Software Development java
Member Avatar for brianlevine
0
328
Member Avatar for serkan sendur

hi guys, i need to have an ide for assembly development on vista 64 bit operating system. i am a newbie for the assembly language. any helps will be appreciated. thanks

Software Development assembly ide operating-system
Member Avatar for Evenbit
0
139
Member Avatar for TheBeast32

Hi, I'm reading a bitmap manually to try and make a program that does steganography, but I can't read the file correctly. The headers I read come out completely messed up, and they fail the check to see if I'm reading a bitmap file or not (if (FileHeader.bfType != (int)"BM")). …

Software Development c++
Member Avatar for TheBeast32
0
153
Member Avatar for tatainti55

Alright, i hope someone can give me a straight answer. How do i export integers to another function? Because when i compile and run this code, i get an error telling me: "[code]12 D:\test.cpp `numberr' undeclared (first use this function) [/code] The code i used was kinda like this : …

Software Development c c# c++
Member Avatar for tatainti55
0
105
Member Avatar for cassie_sanford

I am a new student in the area with very little programming experience. We are working with arrays in our vb.Net class and I am coompletely lost. Our program has to look up part numbers in order to improve customer service. The user has to enter the part number and …

Software Development vb.net
Member Avatar for timothybard
0
157
Member Avatar for toucan

I'm writing a C++ project using OpenGL in Microsoft Visual Studio 2005. I already have code for importing a jpeg image, but I don't know how to place it on a plane in 3D so I can view it in either ortographic or perspective projection. Also, how do I set …

Software Development c++ opengl visual-studio
Member Avatar for skatamatic
0
111
Member Avatar for Tyster

Hi there folks. I have an app that has several classes but for some reason one of these classes isn't giving me a return value. What I want to check is whether or not this code will return the expected string... [code] String seatLayout; public String showAllSeats(String flightNumber){ fn = …

Software Development java legal
Member Avatar for Tyster
0
207
Member Avatar for Liszt

I have a little problem to dock a grid with a panel. What i have done is to first dock a panel in the top of the form. What i then want to do is to dock a datagrid so it Fills the whole form but not so it will …

Software Development c++
Member Avatar for Liszt
0
156
Member Avatar for Dart82

I was wondering how you define a funtion which a phrase and two words are inputted and the output is the part of the prhase between the two words. Do you convert the string to a list?? I would apprecitate any help.

Software Development python
Member Avatar for Dart82
0
110
Member Avatar for dmanw100

I am trying to build a project to learn the SDL libraries but Im getting these errors: [Linker error] undefined reference to `SDL_RWFromFile' [Linker error] undefined reference to `SDL_LoadBMP_RW' [Linker error] undefined reference to `SDL_DisplayFormat' ... I am including "SDL\SDL.h" but according to the documentation it should work. Any ideas?

Software Development c++
Member Avatar for dmanw100
0
114
Member Avatar for Alex Edwards

I tried implementing a template Array-class that allows initial size of global arrays to be known at compile time, specified by the user. When I specify a class of type <1, 1> size, the file compiles fine. However, when I specify a class of any other numeric type, in either …

Software Development c++ ide microsoft-access
Member Avatar for Alex Edwards
0
227
Member Avatar for mrboolf

Hi all. I am trying to write a template class queue for an "assignment" and I got stuck by what I think is a syntax error. To be honest, the assignment was MUCH easier than that but after having it completed I thought to be interesting to explore new possibilities... …

Software Development c++ data-structure queue
Member Avatar for mrboolf
-1
151
Member Avatar for NotThereAnymore

I am working on an assignment for a class I'm taking. Currently, I have a while loop which takes data from the user through JOptionPane. I am suppose to use a sentinel value (q or Q) to tell the loop to stop. I have my if statement argument working, but …

Software Development java
Member Avatar for NotThereAnymore
0
860
Member Avatar for volscolts16

I had completed my code for my project, then decided to change it. I now have an error that I do not understand. C4715 which according to MSDN.com is 'function' : not all control paths return a value. The specified function can potentially not return a value. I have included …

Software Development c++ data-structure
Member Avatar for stilllearning
0
346
Member Avatar for meddlepal

Visual Studio 2005 is giving me heartburn while working with templates. Does anybody know what is going on with the following code, and the errors below? It says there is a syntax error, but I cannot find it. [CODE=C++] #ifndef DEQUEUE_H #define DEQUEUE_H #include <iostream> #include <list> template<class Item> class …

Software Development c++ visual-studio
Member Avatar for meddlepal
0
170
Member Avatar for chunalt787

I am trying to implement a queue based on a Linked List that I had to write previously. It is templated and for some reason I am getting the following error using g++ when I compile: [CODE]g++ LinkedQueueMain.cpp -o LinkedQueueMain /tmp/ccqwStpK.o: In function `main': LinkedQueueMain.cpp:(.text+0x2ee): undefined reference to `LinkedQueue<char>::operator=(LinkedQueue<char> const&)' …

Software Development c++ linked-list queue
Member Avatar for chunalt787
0
267
Member Avatar for Liszt

im quite new to code and are using c++ to read files. Through some examples i have managed to read a file from top to bottom like this. The problem is that i will need to read the file from bottom to top instead. Is there a reversable method for …

Software Development c++
Member Avatar for Liszt
0
164
Member Avatar for cutedipti

Hi I need one example on regression. Also tell between recursion and regression which one is faster?

Software Development c
Member Avatar for Narue
0
98
Member Avatar for VBNick

Oooookay...this is really strange. I'm working on a program in MSVC++ 9.0 and it works fine when I hit "play" in the development environment, but when I manually navigate to the debug folder and click on the program, windows vista pops up an error saying that my "program has stopped …

Software Development c++ windows-vista
Member Avatar for VBNick
0
229
Member Avatar for VernonDozier

[QUOTE=schamb;711245]also am curious as to how decimal to hexidecimal would work too just wanting to learn more about programming language and am very in experewienced[/QUOTE] You are going to have to get a lot more specific on these questions. General advice: 1. Read in a number in decimal. 2. Do …

Software Development c++
Member Avatar for VernonDozier
0
109
Member Avatar for compovet

Hello everyone I want to create Textboxes according to the entered number at runtime but with different names because I want to deal with the the data entered in this textboxes [CODE] protected void Button1_Click(object sender, EventArgs e) { int rows = 0; int cells = 0; int counter =int.Parse(TextBox1.Text); …

Software Development asp asp.net
Member Avatar for LizR
0
146
Member Avatar for blinkliveson

Hey guys, I know you wont give me a direct answer, but that's not what I'm looking for. Here is the assignment: "Procedure: 1. Have the user input an integer between 2 and 19 (inclusive). If the number inputted is not within that range, reprompt the user again until a …

Software Development c++
Member Avatar for Sci@phy
0
180
Member Avatar for Aus89

I have the following code, the arrays are global variables. [CODE] #define MEMORY 64000; #define NUMFRAMES 6400; int mem[MEMORY]; int frames[NUMFRAMES]; [/CODE] I was pretty sure this should work as I don't see why it shouldn't but I am getting "parse error before ';' token" for both array declarations. Although …

Software Development c
Member Avatar for Narue
0
121
Member Avatar for DemonGal711

I thought I had this program licked and moved on to fixing the next problems, then ran it again and found out my while loop isn't doing anything. It goes into my loop, stops, and doesn't do anything else. If there was one item, it should move on to the …

Software Development c++
Member Avatar for DemonGal711
0
52
Member Avatar for srivtsan

Can someone tell me how the series is to be implemented in c 1,1,1 2,1 2 3,1 2 3 4 5, 1 2 3 4 5 6 7 8 here is my code but i am not able to get the answer [code] #include<stdio.h> int i,n1=0,n2=1,n3,n; void main() { printf("\n …

Software Development c
Member Avatar for Aia
0
97
Member Avatar for Kainan54

When using visual c++ does code that would work in other programs work as well?

Software Development c++
Member Avatar for Ancient Dragon
0
158
Member Avatar for Sheryl99

I created a new Class Library, and want to use the MessageBox.Show function within a procedure in the class. Maybe this can't be done? I tried adding "Imports System.Windows.Forms" to the top of the class module, but it won't allow me to use that, either. Here's a simplified version of …

Software Development vb.net
Member Avatar for Sheryl99
0
4K
Member Avatar for jeffrey16

can anyone here plz help me with my porblem.. im using VB6, i want to display a message whenever the user will close the window..] can anyone teach me how to code it..

Software Development visual-basic
Member Avatar for abu taher
0
128
Member Avatar for JackDurden

Say you have a class called example: [CODE]class example { int one; int two; };[/CODE] and you use this to get numbers from the user: [CODE]example number; cout<<"enter numbers"<<endl; cin>>number.one>>number.two;[/CODE] and then you call one function to manipulate the numbers and another to do some more manipulation. How do you …

Software Development c++
Member Avatar for Ancient Dragon
0
107
Member Avatar for SitiSlicker

Hello DaniWeb, I am new and I have a problem thats driving me nuts, i'm sure its very simple to an experienced CS but I'm attempting to execute a couple conditional statements. basically, i am trying to write a program that determines the amount of shipping costs to inform the …

Software Development python
Member Avatar for sneekula
0
2K
Member Avatar for Andymoore88

I was wondering if anyone out there had a good suggestion on an Installer program. I have a few friends that are interested in how I'm doing in my programming self-education, so I'd like to send them examples of what I've done. Now I've managed to use py2exe to create …

Software Development python
Member Avatar for Andymoore88
0
105
Member Avatar for xb211

Hi All, I'm currently working on my project (which try to perform degree reduction for a Bezier curve). I've spent a long time trying to find library or useful class to help me perform matrix inversion. For example degree reduction in Bezier's curve (let's say from degree 3 to degree …

Software Development c++ matrix-multiplication opengl
Member Avatar for xb211
0
145
Member Avatar for serkan sendur

i am pretty new to assembly language and i wonder what is difference between the final binary output of the same program written in c and written in an assembly if they do exactly the same thing. if the binary output is the same then why use assembly language? if …

Software Development assembly c c# c++
Member Avatar for Ancient Dragon
0
333
Member Avatar for Devlan

A real simple one, just a question of understanding the python syntax I suppose. I won't waste your time by throwing the whole program at you, I think my question can be boiled down to this: [ICODE] a = ["cat"] b = ["bark"] wordinsa = input("Word: ") a.append(wordinsa) wordinsb = …

Software Development python
Member Avatar for Devlan
0
168
Member Avatar for Panithuli

[COLOR="Green"][B] have to do this The constructor for the class should set the initial fuel level to 0.0 L (assume all fuel amounts are in litres). You'll need to use a Private Double class field. " [ICODE]Private FuelLevel = 0.0 As Double[/ICODE]........when i do like this i that error message.....[/B][/COLOR]

Software Development visual-basic
Member Avatar for Panithuli
0
81
Member Avatar for IKnowNothin'

If anyone has an idea for a program written in Java please reply. This is about my degree in cs so I would like to hear many ideas. I've seen many projects and haven't find something :-/ Thanks in advance Alex...

Software Development java
Member Avatar for IKnowNothin'
0
288
Member Avatar for laspal

Hi, I am having the problem in nested list. Here is the code : [code=python]data1= [['Contacts',company.contacts.count() ], ['Notes', company.notes.count()], ['Met by', ], ['Industry', industry], ['Financial Investors', '31']] for item in metlist: data1[2].insert(1,item) [/code] Basically I am trying to insert the value for Met by in [ 'Met by', metlist->value] I …

Software Development python
Member Avatar for vegaseat
0
296
Member Avatar for Andymoore88

Okay, continuing on with my little System access project I've been working on. Now I've gotten three different Python files in this Project. I'm using a main menu .py to offer option for the user to select from. Each option then opens one of the other two .py files and …

Software Development python
Member Avatar for Andymoore88
0
201
Member Avatar for wqzerboom

The requirements are actually simple, just asking to sort a few, say 10, 20 or so, intergers in ascending order. However, array and pointers are not allowed to be used, and just the fundamental knowledge about flow control are permitted. The hints are as follows: 1. Initialize a variable F …

Software Development c++
Member Avatar for rhoit
0
187
Member Avatar for NinjaLink

I am trying to do the [B]bubble sort[/B] to make my numbers in the array go from smallest to highest. Afterwards, I want to use the [B]SeqOrderedSearch[/B] to find the location of the number in the array. If the number is not found, i will have to state it is …

Software Development c++
Member Avatar for Ancient Dragon
0
194

The End.