132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for PaulaS

Hi, I have a project where we need to scan each pixel from an image. Somewhere in the image there will be a 10x10 red pixel and we need to draw a circle around it. This is the code I have so far: (but I'm having trouble figureing out the …

Software Development image java
Member Avatar for server_crash
0
107
Member Avatar for MAD_DOG

Is there any books you guys know of that someone like me that dont know anything about programming can use C++/VB what ever something that is quick and easy to understand. Something really simple something you guys can recommand. Thanks again

Software Development c c# c++
Member Avatar for bombe
0
430
Member Avatar for odee

is it possible to create an array then you pass it to a function? That function will change the values in the array then return it back as an array.

Software Development c++
Member Avatar for Dave Sinkula
0
122
Member Avatar for Dani

I am taking a Computer Graphics course where we are doing some c++ programming using the OpenGL API. I'm writing a C++ program in Visual Studio.NET, where I've installed GLUT (Open GL Utility Toolkit). OpenGL, itself, apparently comes with VS. The only include that I have in my one-file program …

Software Development api c++ opengl visual-studio
Member Avatar for Intel
0
1K
Member Avatar for notdumb

I was attempting to initilize bool done to false, then have this program continue to give the user the option to do more check balance functions util they pressed exit, however, my program continues to cycle repeatedly, even after option 5 (EXIT) is entered. Please, some help on how to …

Software Development c++
Member Avatar for notdumb
0
173
Member Avatar for tomex

hi every am anew guy in all this stuf however i want to connect to an access 97 data base with a password through visual basic 6 however each time i try to connect it give me an error i put in the correct username and password can some one …

Software Development visual-basic
Member Avatar for dimuthubas
0
468
Member Avatar for BrownSuga

I am stuck trying to figure out syntax errors in program. Would appreciate help. Thank You In Advance :D These are the errors: C:\My Documents\myJavaFiles\Homework 2\Inventory.java:40: illegal character: \92 System.out.println("Item Already Exists --" ' +item + '); ^ C:\My Documents\myJavaFiles\Homework 2\Inventory.java:40: unclosed character literal System.out.println("Item Already Exists --" ' +item …

Software Development java
Member Avatar for BrownSuga
0
160
Member Avatar for Asif_NSU

After having us write codes to convert decimal numbers to another base my faculty has now asked me to write codes to convert a number from ANY base to another. He explains that itz simple since i already wrote the program to convert integer to another base. So i just …

Software Development c++
Member Avatar for Asif_NSU
0
208
Member Avatar for sidhjn

hello! I am a newbie and probably dont know much. I need to implement a 1-bit adder in c/c++ and then combine this 1-bit adder to make 32-bit adder. I shall be really grateful if you can help. Regards, Siddharth

Software Development c++
Member Avatar for Narue
0
147
Member Avatar for ITman

can any one give me C program for ROUND ROBIN ALGORITHM . please needed urgently

Software Development algorithm c
Member Avatar for ITman
0
115
Member Avatar for dreyes67

I am a new user to VB so forgive any simple questions. I just created a tool that will display the Job Number, Requested by, Status, Group, Operator. As this database has about 50-75 requests added to it daily and with luck we process them all or 90% of them …

Software Development display visual-basic
Member Avatar for dreyes67
0
197
Member Avatar for ah01

#include <iostream> #include <stdio.h> #include <iomanip> using namespace std; struct person { char name[15]; int Idnum; int *testscores; float average; char grade; } *student, freshman; //////////// function prototype /////////// void allocate_memory(int number_students , int number_scores); void get_data(int number_students ,int number_scores); float validate_score(int score); void print_results(int number_students ,int number_scores); void release_memory(int …

Software Development c++ data-structure
Member Avatar for vegaseat
0
178
Member Avatar for chound

Just to attract your attention. :cheesy: :lol: :cool: ;) Here's the problem: I have this string "flames". Then I get a number from earlier part of myprogram. Let the number be 4. Now 'm' is the 4th character. This should be removed. Then the remaining string is "flaes". Now 'e …

Software Development c
Member Avatar for Narue
0
210
Member Avatar for crypter

Would it possible to have a form when you start a program that asks a username and password. Then the information sent to a server analised and compared to a database for approval to then show another form which then lets you use the program? so basically you start xyz.exe …

Software Development c# mysql
Member Avatar for crypter
0
162
Member Avatar for seeplusplus

alright, so i have two files now, main.cpp, and Rationall.h, when i compiled my code it gave me this.... /tmp/ccyeOf6F.o(.text+0x1a6): In function `main': : undefined reference to `rational::~rational [in-charge]()' /tmp/ccyeOf6F.o(.text+0x1c4): In function `main': : undefined reference to `rational::~rational [in-charge]()' collect2: ld returned 1 exit status this is my code......i dont …

Software Development c++
Member Avatar for Tripoli178
0
106
Member Avatar for Seyha Eng

Hi, I have code to open program that work(on attach files). My problem is when I change code to open another file it error. Ex: Right code: Call Shell(li & "\" & "Program Files\Microsoft Office\Office10\POWERPNT.EXE", 1) Error code: Call Shell(li & "\" & "aa.pdf", 1) Error say:"Invalid procedure call or …

Member Avatar for Comatose
0
395
Member Avatar for ncc1701d

hi I need help with docking app to side of screen. Anyone have idea how to do? I have no clue. Any any terminology, code, tutorials you know of? I use Visual basic. I am NOT refering to permanent positioning with form coordinates and not talking about docking controls within …

Software Development visual-basic
Member Avatar for Comatose
0
171
Member Avatar for tones1986

the code compiles but when i try running the .exe it closes. It looks liek for the 2 seconds its up it works, but then it closes itself. What am i doing wrong? heres the code: #include <iostream> using namespace std; int main() { // sets variables to be set …

Software Development c++
Member Avatar for bombe
0
602
Member Avatar for cymbalistic1

Hello, I'm new to this site and this is my first post. I got an assignment where I have to do a QuickSort on 100,000 numbers first and then combine QuickSort and BubbleSort so that the BubbleSort comes in for the last 1,000 numbers. The information is to be exported …

Software Development c first-post
Member Avatar for cymbalistic1
0
101
Member Avatar for freesoft_2000

Hi everyone, I am trying to add an undo listener to a jtable but could not get it to work. Does anyone know how to add a undo function to a jtable assuming the default cell editor component is a jtextfield? A small code sample would be helpful Any help …

Software Development java
Member Avatar for freesoft_2000
0
118
Member Avatar for chound

I get 2 strings. I remove all the characters present in both the 2 strings.I count the no. of characters left. How do i do this in C++?

Software Development c++
Member Avatar for vegaseat
0
177
Member Avatar for Geek-Master

I've been playing around with files and streams and just hit a pot hole. My goal is to be able to input time and date into a file when say someone "clocks in/out". Just a little program that will help me keep up with my time in school. [CODE] #include …

Software Development c++ file-stream file-system ios
Member Avatar for Geek-Master
0
125
Member Avatar for 40ounce68

Well currently Im a student, and very interested in becoming a good C++ programmer. Im currently in a class and is very challenging for me. I mean, I read the book, but have a hard time applying it sometimes...any of you experts have any tips for me. Cause I really …

Software Development c c# c++
Member Avatar for Narue
0
98
Member Avatar for 40ounce68

anyone know where i can get the answers for the exercises...Im stuck on some of these...

Software Development c++
Member Avatar for vegaseat
0
106
Member Avatar for evilsilver

I am trying to make a program that needs to compare a string. here is a basic program of what i mean, i want it to say "it worked" but it seems to only read as not true. anyone know how to do this? thanx for any help. [CODE]#include <iostream> …

Software Development c++
Member Avatar for jimFan
0
137
Member Avatar for SquirrelProdigy

[CODE]SetConsoleMode(InputH,ENABLE_PROCESSED_INPUT|ENABLE_MOUSE_INPUT); while(1) { ReadConsoleInput(InputH,&InputRecord,1,&InputEvents); if(InputRecord.Key_Event) { if(InputRecord.Key_Code == VK_RIGHT) cout<<"You pressed right. Yay!"<<endl; } FlushConsoleInputBuffer(InputH); }[/CODE] [FONT=Book Antiqua] [SIZE=4][COLOR=DarkSlateGray]FlushConsoleInputBuffer() is used to prevent input from echoing, correct? If so, that command isn't doing it's job, I still get echo, and I can't figure out why. Any suggestions? I reposted this …

Software Development c++ first-post
Member Avatar for SquirrelProdigy
0
370
Member Avatar for Sam Lehman

[code]#include "stdafx.h" #using <mscorlib.dll> using namespace System; #include <iostream> using namespace std; int _tmain(){ char payType; double payRate, salPay, sesTaxes, sesGross, totalTaxes=0, totalGross=0, aveGross, hours; int pwPieces, empCount=1, anotherRound, hourExempt; cout<<"Sam Lehman\nPayroll Output File\n"<<endl; while (true){ cout<<"Pay Type? (type S, P, or H)... "; cin>>payType; while (true){ if (payType == …

Software Development c++ visual-studio
Member Avatar for Sam Lehman
0
159
Member Avatar for tones1986

I have this banking program that has a savings, checking account set up. The user has 4 options. Checking, Saving, Balance, and monthly maintenance. The checking option is all correct and never comes out weird...u can deposit everything and withdraw without any probs. If i do that -- then i …

Software Development c++ display ios
Member Avatar for tones1986
0
149
Member Avatar for Alfarata

I am writing a program in C not C++ how do I allow the user to input a name for the file, but not the extension. I will use the extension .csv always.

Software Development c++
Member Avatar for Narue
0
233
Member Avatar for dal4488

Hi, I'm totally new to C++ and so far am extremely confused. I was wondering if anyone could give me any help with one of my assignments. Basically I don't know where to even start. I think if maybe someone can help me get started maybe I can figure this …

Software Development c++
Member Avatar for vegaseat
0
607
Member Avatar for potential

hello guys. :confused: just a question about vectors: (sorry if it seems stupid, but i really don't know much about vectors) is it possible to return a vector or a pointer to vector from a function? if so, how? thanks in advance.

Software Development c
Member Avatar for potential
0
106
Member Avatar for Tomas Lopez

Ok, I've been trying to find and solve the problem with this source code by using the ddd debuger and I just can't. Here is the code. //lab1.cc, a driver for list.cc //CSCI 1120 //Will Briggs #include <iostream.h> #include "list.h" main () { Item Letters [MAX_ITEMS]; int num_letters = 0; …

Software Development c++
Member Avatar for Tomas Lopez
0
173
Member Avatar for ritcherjd

Hello all I have a problem at hand. I need to work on a C code which will read multiple images in RAW format (greyscale) and do an AND operation of corresponding pixels of all the images. Can someone help out on this? I am a novice and would definitely …

Software Development c image
Member Avatar for ritcherjd
0
185
Member Avatar for seeplusplus

when i compile this, it gives me an error for my #include "Rationall.h" statement........i dont know why its giving me an error. [code] #include <iostream> using std::cout; using std::cin; using std::endl; class rational { public: rational(); ~rational(); int setrat( int x, int y); int getnum(); int getdenom(); private: int numerator; …

Software Development c c# c++
Member Avatar for Narue
0
173
Member Avatar for bwork

I know this is probably basic stuff with an easy solution, but I can't seem to find it anywhere in my textbook. I am working with an array of records. The user enters the data for each field of the record. The first field is a string entered by the …

Software Development display pascal
Member Avatar for Jackrabbit
0
113
Member Avatar for ehab_aziz2001

I need to write a string field-char customer_name[20]- in a structure data type to a file using fprintf,fscanf,scanf. I failed to use the below syntax. Please I need to not go outside scanf,fprintf,printf . /* Book name : The prodessional programmers guide to C File name : E:\programs\tc\iti01\ch09\main\01setupm.c Program discription: …

Software Development c data-structure file-system video
Member Avatar for Narue
0
145
Member Avatar for server_crash

I have a JMenu with some radio buttons...For some reason, when I click the stupid things, they won't do anything...and by that, I mean they want change their state to being clicked(as in the circle being filled)..It's like they are disabled...I'll post the snippets of code with them in it: …

Software Development first-post java
Member Avatar for server_crash
0
146
Member Avatar for eastgate

:cry: I have written this in [B]TCLite v1.x (Successful!) [/B]but when I ran it on BloodShed DevC++ v4.9.9.1 (Latest from Blood) it won't work!.. arrgg.. I need this functionalities.. ;-(.. for educational I typed [B]exactly[/B] these... [code] [COLOR=DarkOliveGreen] #include <iostream.h> #include <conio.h>[/COLOR] void main () { int mark; int sum; …

Software Development c++ gui
Member Avatar for eastgate
0
621
Member Avatar for star320

Please help... the problem... I run my programs, regardless of what I do seems I get the error C2017 continuous: the other errors at least I am given a "hint" to what to do: but this error constant! Listed as Illegal escape sequence. My errors are generally about 4-5 logic …

Software Development c++
Member Avatar for star320
0
213
Member Avatar for gregg21

[URL]http://www.astercity.net/~28im42ga/test2.rar[/URL] i`ve got a problem for most of You it`s probably very simple so PLEASE help me!! i`ve made a modal window but any buttons placed there don`t work, it`s possible to click on them but nothing happens, the source code is not called here is an exapmle source code: …

Software Development c
Member Avatar for bombe
0
103
Member Avatar for Alfarata

I have a structure set up from some earlier help. Now when I try to write the data to the disk I only write zero's. I have no idea what I have done wrong or why this is happening. I realize this is not the complete program but shows the …

Software Development c data-structure
Member Avatar for Alfarata
0
130
Member Avatar for BobbyRags

If I were to ask you "How should I get starting learning VB.NET?" What would you say? Thanks.

Software Development vb.net
Member Avatar for Letscode
0
107
Member Avatar for evilsilver

ok lets see if anyone can find the problem i have searched long and hard for this. i have a battle function and for some odd reason when ever i win the battle it loops the if statement saying that i am victorious 3 times (doing all the math and …

Software Development c++ display flash
Member Avatar for Coding Mage
0
176
Member Avatar for shahin

I have to apologize to the moderators that I was not sure where I should post my question. So if this is wrong fourm feel free to move it to a more suitable place, thank you. First of all I like to thank everyone here for their help in last …

Member Avatar for shahin
0
229
Member Avatar for mattcplusplus

I wish to use the round() function in the math class of the .net framework class library [C++] Math::Round(3.44, 1); //Returns 3.4. Math::Round(3.45, 1); //Returns 3.4. Math::Round(3.46, 1); //Returns 3.5. Ive tried just using the above, but the namespace specifier isn't working. Do i need to inclue a header file. …

Software Development asp.net c++
Member Avatar for Glued
0
122
Member Avatar for lrea_fallon

I am a begging Assembler Student and I am having problems. When I run my program it is telling me I have a bad ASA control charecter. I have checked my program and I don't see anything wrong with it. Does anyone know what the problem could be?

Software Development assembly
Member Avatar for lrea_fallon
0
95
Member Avatar for ibassplayer205

[FONT=Courier New] Hey everybody! Im new to C++ and I have no experience with any other programming language. I downloaded a compiler from bloodshed.net and tried programming the 'hello world' program: [CODE]/*Hello world program. Seth Koberg 02/09/05 */ #include <iostream.h> int main() { cout<<"Hello World!"; return(0); }[/CODE] When I run …

Software Development c++
Member Avatar for Narue
0
175
Member Avatar for server_crash

Let's say I have two classes, Class1, and Class2..... Class2 creates and instance of Class1 and calls one of it's methods like this: [Code] Class 2 { Class1 c1 =new Class1(); c1.myMethod(); } [/Code] Now, that would work...But, could you have just the class variable instead of the class instance …

Software Development java
Member Avatar for server_crash
0
96
Member Avatar for George2

Hello everyone, Suppose I have a method which is a synchronized method (for example, method Foo in the following code block), and in this synchronized method another method which is not synchronized is invoked (for example, method Goo in the following code block). I am wondering when executing in Goo …

Software Development java
Member Avatar for George2
0
170
Member Avatar for potential

hi guys! please help me... :cry: i really don't know how to do this... part of the specs in my program is to show values after i used some formulas...but i need to make it such that i can scroll down/up to view my results, since i'll need to display …

Software Development c display
Member Avatar for potential
0
114

The End.