132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Frenchstar

Hi, i am stuckon this particular assignment. I will appreciate it if you guyz help me out on these problems.............. 1. Write two functions Max( ) and Min( ) where • max() returns the maximum of two integers • min() returns the minimum of two integers • Each function takes …

Software Development algorithm c
Member Avatar for Jishnu
0
101
Member Avatar for robbie_j0

Hi everyone, I have written an application to communicate with an Access database. Everything works fine when i compile it. I can run the compiled .exe file on the pc which has VB 6 installed but when i transfer to a pc that does not have a copy of VB …

Software Development visual-basic
Member Avatar for Jishnu
0
890
Member Avatar for awi123

Hi i just wanted to ask whether we cud use #include<string> and declare a data type called 'string' eg. string ch;? and where is "using namespace std" used?

Software Development c++
Member Avatar for Ancient Dragon
0
86
Member Avatar for henpecked1

When I'm opening a file, is it the file that is text or binary or is it the stream that can be text or binary? Also, when I close a file is that when the stream object is destroyed?

Software Development c++ file-stream file-system
Member Avatar for Ancient Dragon
0
128
Member Avatar for Foo_with_a_floo

GREEDY COUPLE A party game has the fourteen party guests sitting in a circle on chairs numbered, in a clockwise direction, one to fourteen. A cup of beverage is passed from person to person around the circle in a clockwise direction, starting with the person sitting on chair number one. …

Software Development c c# c++
Member Avatar for joshmo
0
218
Member Avatar for Gaurav arora

Hi all, I m using C# from Quite some time. I m facing a problem regarding my project. The problem is When the user clicks on the close button on any form it displays the messagebox saying Do u really want to quit or not?. This MessageBox contains two buttons …

Software Development
Member Avatar for JerryShaw
0
111
Member Avatar for dlayante

I have this Insert Statement code in C# window application.... String MyString = @"INSERT INTO tblUsers(userID, Name, Position) VALUES('a','b','c')"; how if I would like to give values from a textbox: //Please correct this code because it is not working.... String MyString = @"INSERT INTO tblUsers(userID, Name, Position) VALUES('"txId"','"txtUser"','"txtPosition"')"; I need …

Software Development sql
Member Avatar for JerryShaw
0
87
Member Avatar for Siten0308

Hello, I have successfully added a wav file or audio file to my program, the problem is, i sent an email to my friend of the exe application but the wav file does not come with, how do i accomplish this if the wav file does not compile with the …

Software Development audio file-system
Member Avatar for selvaganapathy
0
207
Member Avatar for apuamy

I have developed a package using Access as database and serial port programming. After converting into a package form, i want user to add record in a database (in office Xp then convert into Access 97 and connect with the same form. Also i can able to add sub menu …

Software Development visual-basic
Member Avatar for Jishnu
0
69
Member Avatar for Alex Edwards

[code=c++] #include <cstdlib> #include <iostream> /** Test Class for learning template-metaprogramming */ using namespace std; template<int N> //General case for a number class ShowValues { public: static inline void show() { cout << "Start: " << N << endl; ShowValues< (N > 1) ? (N - 1): 1>::show(); cout << …

Software Development c++
Member Avatar for vijayan121
0
129
Member Avatar for dougy83

Hello, Does anyone know how to use _popen in windows xp sp3 (console application) to allow writing to a process? I've tried using _popen to read from a process. This works as expected. When I try _popen with write access, the process starts, but no commands are interpreted. My code …

Software Development c++
Member Avatar for dougy83
0
277
Member Avatar for darkMatter2008

I'm having a problem comparing floats, given the values below, I'm getting the wrong results when running this piece of code let distAppart = 4.76837158203e-007 let factor = 0.01 [CODE] if distAppart < factor and distAppart > -factor: print 'this should not print with the given values.... But it does …

Software Development python
Member Avatar for darkMatter2008
0
85
Member Avatar for blondie.simon

Hello I'm writing my first ever VB program. I'm using 2 combo boxes to allow the user to select 2 different pieces of information. Is there any way that I can make my program automaticaly open the first combo box up at startup so the user can easily see what …

Software Development vb.net
Member Avatar for issac.pena
0
293
Member Avatar for rje7

[code] #include<iostream> using namespace std; class welcome{ public: welcome(){ cout<<"Constructor"; } }; int main(){ welcome c; return 0; } [/code] for the above code i get the following errors wen i try to compile using GCC in PCLinux minime version. cannot figure out if there is an error in my …

Software Development c++
Member Avatar for rje7
0
122
Member Avatar for bonzi

Hello! Please I need your help on this part. I've just developed a vb6 program and ms sql express as backend. I setup the ms sql express in a pc working as a server (windows xp). And i also installed the vb6 program on the same pc. I setup also …

Member Avatar for bonzi
0
207
Member Avatar for javaAddict

Hi All, I am an experienced java programmer for many years. But my problem is that the final assignment that was given to me for my master at the university, has to be written in VB .NET. Do you know any good books for learning VB .NET for someone like …

Software Development asp.net java vb.net
Member Avatar for jwenting
0
149
Member Avatar for CrackWizard

Okay. I play a game called chain of command. It's abandonware, the original designers went bankrupt and the source code got lost. The server and game files and such were all on a backup server and acquired from one of the original designers. I was just told we need to …

Software Development c++ engineering
Member Avatar for Necrolis
0
250
Member Avatar for thehype2049

Ok, so im doing an assignment and Here is the question: -------------------------------------------------------------------------------------------------- Using the base class Person which has two member variables called name and birthday [both of type string], derive two separate classes from Person, called Student and Professor. The Student class has a major [string] and a gpa …

Software Development c c# c++ engineering
Member Avatar for thehype2049
0
90
Member Avatar for ff4930

I am using Maps from the STL to insert a polynomial. The Key is the exponent and the data is the coefficent. Basically I want to add/subtract and multiply them. I have the addition/subtraction down but when it comes to multiplying I have to add the exponents and multiply the …

Software Development c++
Member Avatar for Alex Edwards
0
116
Member Avatar for salman213

very simple question: what is the most easiest way to do the following I have two variables a=1; b=2; how do I make it that c= a,b so that c=12 I dont want to write [code]c=12;[/code] because a and b change according to user input. Thanks, this should be solved …

Software Development c++
Member Avatar for Alex Edwards
0
345
Member Avatar for pixeldude

Hi there.... 1stly sorry for the novice and beginner question but I really need help since I've been get fiddling to figure out the error but still have no idea whats wrong with it...here are's the code I'm using[code] #include <iostream.h> #include <stdio.h> #include <conio.h> #include <string.h> #define MaxSize 100 …

Software Development c++
Member Avatar for pixeldude
0
99
Member Avatar for ninjaneer

Hello community. I am writing a program that will use multiple threads to run MATLAB functions inside of Cpp by using the MATLAB compiler to create a DLL. I have already written the MATLAB DLL and I have everything linked up just fine, but now I need to split this …

Software Development c++
Member Avatar for Ancient Dragon
0
140
Member Avatar for salman213

Hey, here are two codes and with one slight difference they do different things [B]CODE 1[/B] [code] #include<iostream> using namespace std; int main() { char array[2]; int i=0; while (i<2) { cin>>array[i]; i++; } cout<<array[0]<<' '<<array[1]; } [/code] [B]EXAMPLE OUTPUT:[/B] [code] two words t w [/code] [B]CODE 2[/B] [code] #include<iostream> …

Software Development c++
Member Avatar for salman213
0
149
Member Avatar for python_bite

[code=python] class A: id = "" fld = [] def __init__(self, id): self.id = id def method(inp): a = A("a") b = A("b") c = A("c") a.fld.append("Histogram") a.fld.append("Dendogram") b.fld.append("Milligram") b.fld.append("Pictogram") c.fld.append("Pro--gram") c.fld.append("Dodge-ram") print a.fld print b.fld print c.fld inp.append(a) inp.append(c) inp.append(b) #__main__ inp = [] method(inp) for ins in inp: …

Software Development python
Member Avatar for vegaseat
0
126
Member Avatar for sciwizeh

my secondary project at the moment is a complex calculator program, a graphing calculator, actually. i want to write a parser for it by hand, as it needs to do very specific complex stuff, but i cant find anything on writing a parser. i have a start, it will split …

Software Development java
Member Avatar for sciwizeh
0
633
Member Avatar for cam9856

Hello, I was wondering if it was possible to take a string variable or an integer variable and send it to another computer like client/server architecture and also read that data from that same computer. I am thinking that winsock will be ideal for doing this but if anyone knows …

Software Development c c# c++ client-server
Member Avatar for cam9856
0
155
Member Avatar for xtr.eme

I am a beginner and am learning C++ and QT I would like to know how to make an interface like the one in windows media player 11 - one that is completely custom including the minimise and close icons. What would this involve?

Software Development c++ gui qt
Member Avatar for Kob0724
0
87
Member Avatar for new_2_java

Hi all, I have an object, say its called MySuperType, which has a sub type, say it is called MySubType. MySuperType has the following attributes: int a; int b; int c; MySubType has the following attributes: (besides inhereting a,b and c) int d; int e; I was wondering if I …

Software Development java
Member Avatar for new_2_java
0
144
Member Avatar for salman213

[code] #include <iostream> using namespace std; class CRectangle { int x, y; public: void set_values (int,int); int area () {return (x*y);} }; void CRectangle::set_values (int a, int b) { x = a; y = b; } int main () { CRectangle rect, rectb; rect.set_values (3,4); rectb.set_values (5,6); cout << "rect …

Software Development c++
Member Avatar for salman213
0
146
Member Avatar for Gaurav arora

hi there i have been working with C# for quite some time. I want to know How i will be able to insert an image in the form and get it blinked. Rather i have inserted the Image But i dont know how to blink it

Software Development image
Member Avatar for Gaurav arora
0
2K
Member Avatar for Shaun32887

Hey everyone, I'm a third year engineering student and a new programmer who needs to learn some C++ for a job this summer. My boss advised me to look into utilizing a hash table to get my project done. Hash tables aren't covered in the textbook I have. I've done …

Software Development c++ engineering
Member Avatar for Shaun32887
0
153
Member Avatar for lazytypist

Imagine a number system based on the entire English alphabet, that is, using the symbols "0ABCDEFGHIJKLMNOPQRSTUVWXYZ". Write a program that will calculate the sum of two numbers expressed in this system. The program should ask for the two numbers and output the numbers and their sum as follows (italics indicate …

Software Development c++
Member Avatar for William Hemsworth
0
156
Member Avatar for msantosh18

can any one help me in the following problem i have created a database and its table at runtime(i.e. while running the exe). the problem is that i need to change properties of table such as 'required' and 'allow zero length' of a table. how to change these properties and …

Software Development visual-basic
Member Avatar for msantosh18
0
124
Member Avatar for sambafriends

[code=c] main( ) { int i=10,j=20; printf("%d%d",&i,&j); return 0; } [/code] When i executing this code: I got the address values like -12, -10, -20 Is it the address are in negative values or I am doing a mistake in the program. please give the solution it's urgent.

Software Development c
Member Avatar for awi123
0
115
Member Avatar for salman213

Hi, I am a beginner in C++, I was just wondering what is it good for. This is probably a dumb question but I was searching on yahoo and google (What is C++ good for), and I did not find any real answers. What do people use it for? Is …

Software Development c++
Member Avatar for Narue
0
577
Member Avatar for Aigini

This is my code to load data from a database(SQL Server 2000) into a combo box. I keep getting the error [B]Name 'connString' not declared.[/B](the highlighted section of the code). I've tried posing this error in Google search but there are no answers. I am working in a software development …

Software Development dataset vb.net windows-server
Member Avatar for Jx_Man
0
93
Member Avatar for anifreak

hello, ok i have this simple linked list program, as u can see below i got three functions: one to insert a node in the first of the list, the second to insert a node in the middle and the third to insert a node in the last of the …

Software Development c++ linked-list
Member Avatar for anifreak
0
256
Member Avatar for manavsm

i am facing problem when i am trying to get input...my input is not being taken correctly ... #include<stdio.h> struct student { char name[20]; int rollno; struct student *next; }; void display(struct student *first) { struct student *ptr; ptr=first; printf("\nCurrent list:\n"); while(ptr!=NULL) { printf("Name:%s\nRoll:%d",ptr->name,ptr->rollno); ptr=ptr->next; } } void delet(struct student …

Software Development c linked-list
Member Avatar for jephthah
0
278
Member Avatar for mariocatch

Hi All, A long time ago I researched Reflection and created a solution demoing my learnt capabilities from it. In my example I did not pass any arguments into the Invocation of the method call using reflection. I went to tackle this and I seem to be hitting a few …

Software Development assembly
Member Avatar for floydus
0
3K
Member Avatar for kux

What i want to do is write some of the rows of a report style CListCtrl with a color and other rows with another color, but if I switch the color with SetTextColor the color of the text in the entire control switches, i want it to switch just for …

Software Development c++
Member Avatar for mitrmkar
0
156
Member Avatar for ninjaimp

hi Im trying to rationalise my code as i feel i am doing the same thing a couple of times with different bits of code. What i am doing is query a db and putting the result into a dataset and then filling a datagrid with this dataset..Fine. now i …

Software Development dataset vb.net
0
268
Member Avatar for Wickedself

I am new at Java. I have used Microsoft's Visual J++ but I have heard that it doesnot follow the java standard. Can you please give me the name of a good standard compiler that will work fine in windows XP.

Software Development java
Member Avatar for griefers
0
156
Member Avatar for perito

ok here is exactly what Im trying to do, I have to insert 10 strings in 10 different textboxes in the shortest possible time (half a second counts), so I thought the best way is to store them all in a program before the timer starts and then simply press …

Software Development c++
Member Avatar for perito
0
115
Member Avatar for Jennifer84

I am trying to make something work but are not sure what I am doing wrong. I have a comboBox where I will select an Item with the eventhandler below. When I select an Item I want the messageBox to show a message Once but the message is showing over …

Software Development c++
Member Avatar for Radical Edward
0
90
Member Avatar for zoner7

I am currently reading the learn C++ in 21 days tutorial. In a chapter on references, when the author summarizes some of the main points inside a respective section, he explicitly states, "DON'T return a reference to a local object. " I am simply curious what this means. I have …

Software Development c++
Member Avatar for ff4930
0
88
Member Avatar for dlayante

I have already connect my SQL database in C# windows application, Now, can somebody please give me sample codes for data manipulation, add/edit/delete of records....THANK you!

Software Development sql
Member Avatar for JerryShaw
0
98
Member Avatar for lancemmx

Hi everyone, I am newbie in learning Visual Basic. I am using Visual Basic 6 and trying to create a simple program that will check or track the time. I have enclose an attachment of my program but no VB code yet. Here's how my program goes... I have a …

Software Development visual-basic
Member Avatar for lancemmx
0
116
Member Avatar for gargg321

Hey Guys, I am new to C programming and I got a task of storing hex dumps in character array and then use them as a string. I use the sprintf function for the job but it is giving me incorrect results. Please help me out. I am writing a …

Software Development c
Member Avatar for gargg321
0
289
Member Avatar for mrboolf

Hi all. I'm trying to write a 8 Queen Problem solving program in C++ as an assignement for an exam. I created a Matrix Board class to represent the chessboard with some functions such as put_Queen or check_Board for invalid positioning. I haven't yet begin to write the solving algorithm, …

Software Development algorithm c++
Member Avatar for mrboolf
0
209
Member Avatar for mauripelto

I came here to see if I can get some help in C++, using the DEV-C++ IDE. I can write simple code to solve equations. Now, I want to graph the results. I got as far as using "initWindow", "moveto", and "lineto", to draw a figure. There must be a …

Software Development c++ ide
Member Avatar for Salem
0
82

The End.