199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for cablee

I need to somehow open and read a picture of a map (jpg/png/bmp) into a 2d array so I can use the array to determine what terrain type is at that element/position on the map. Looking for tut's on working with picture files (jpg/png/bmp) with c++ I have found none. …

Member Avatar for Coder++
0
151
Member Avatar for bidbul

hello, i used to had a working methode but it doesn't work now, and i have no idea why. i'd like to create a flash panel with text. the text is kept in a txt file and sent by php to flash. (it works fine.) i have an other flash …

Member Avatar for rajarajan2017
0
87
Member Avatar for Expora

Hi all I'm learning to use OpenGL but im having trouble with my compiler I'm using CodeBlocks but i keep getting the gl/glaux.h: No such file or directory and a couple of error: syntax error before "xxx" I don't know if I need to install any OpenGL stuff as I …

Member Avatar for LauraWelch
0
140
Member Avatar for coding101

after i input the three letter, i cant get the number back.. [CODE]#include <iostream> using namespace std; class Month{ public: int month; Month(char& one, char& two, char& three); Month(int& numb); Month(); void input1(istream& input); void input2(istream& input); void output1(ostream& output); void output2(ostream& output); }; int main (){ char x,y,z; int …

Member Avatar for Coder++
0
149
Member Avatar for badbloodyeyez

hi, I would like to know how to program a PIC16F877 microcontroller. I am using this microcontroller with a LCD so I would like to send data to the LCD. I have connected my microcontroller to a Bluetooth module which is connected to my PC via Bluetooth dongle so I …

Member Avatar for dex391
0
266
Member Avatar for dbphydb

Hi, I want to access a link starting with clients_test on a particular webpage. I have the following code client_re = re.compile(r"clients_test") def get_client_url(): url = get_artifacts_url() for link in get_links(url): if client_re.search(link["href"]): return "http://11.12.13.27:8080" + link["href"] Sometimes the page has many links beginnng with clients_test for e.g: clients_test4, clients_test5, …

Member Avatar for dbphydb
0
117
Member Avatar for chrisfrmatl

I am writing a program to print filenames in the current directory and print the time stamps next to them. I am loading the names into an array and then passing them to a function to print the stat and filenames. Here is the code. [CODE]#include <stdio.h> /* For printf, …

Member Avatar for Salem
0
411
Member Avatar for student.09

Hi, I need help getting the basic idea of how to begin writing this Strings program: file has last name(1word) & email address objective of prgm is to validate email address [LIST] [*]1 "@" symbol; no space left of it [*]1 "."; no space on both sides of it [/LIST] …

Member Avatar for sawant_nitesh
0
275
Member Avatar for thomasekugm

I am trying to get a small piece of a program i am writing to receive a simple math expression, with two int variables and 1 char for the operator, and then i will work it with an if(){}if else statement. I just don't know how to separate the string …

Member Avatar for thomasekugm
0
166
Member Avatar for stuhawk

Private Sub Average_Click() Dim Test1 As Integer Dim Test2 As Integer Dim Test3 As Integer Dim Test4 As Integer Dim Test5 As Integer Dim Test6 As Integer Dim Average As String Test1 = txtTest1.Text Test2 = txtTest2.Text Test3 = txtTest3.Text Test4 = txtTest4.Text Test5 = txtTest5.Text Test6 = txtTest6.Text Average …

Member Avatar for vb5prgrmr
0
87
Member Avatar for fayenot

can anyone tell me what's wrong with my codes below..what does this error mean and how can i get rid of it...looking forward for your help.. [code=ASP.NET]<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Untitled Page</title> </head> <body> <form …

Member Avatar for kvprajapati
0
490
Member Avatar for jokers6

Hey guys i have taken part in a programmers elite competition and in a group you are assigned different programs to build. i have VB and C++ .... im really good with C++ but i have never touched VB !! now i have a project to build ... so can …

Member Avatar for jokers6
0
176
Member Avatar for chaithan.p

I have a reqirement in my project. I need to capture the image in webcam and then compare every 4rth frame and see if there is a change in image and if there is a change i need to able to mark the area and send an alert to user …

Member Avatar for chaithan.p
0
129
Member Avatar for Danny_501

Hi all, Has anyone used PFDBox before? I'm having trouble with makeing a pdf with mulitple lines: [CODE]contentStream.drawString( patient.toString() );[/CODE] patient.toString() has newline characters in it(\n) and drawString dosn't recognize them.

Member Avatar for moutanna
0
192
Member Avatar for sachintha81

I am working on a Setup program which creates a .msi file. There is a CustomAction program associated with it which is written in C#. There are three COM object references made in this CustomAction program which are necessary in order for it to work. They are as follows. 1. …

Member Avatar for sachintha81
0
132
Member Avatar for react05

Hey guys, how would i create a random number to decide whether it should enqueue the customer or not. thank you.

Member Avatar for alex034
0
100
Member Avatar for jephthah
Member Avatar for metroidfreak

Hi, I'm trying to figure out how classes work. I currently am working on getting a class to read a string and then place it into an array, as well as have the class then output the entire array. I wrote the following code to make sure i could get …

Member Avatar for metroidfreak
0
183
Member Avatar for aaronmk2

I am trying to learn about recursives and found this code on the internet. It works, but am not sure why. Could some one explain to me why this works. I have posted comments by the function to explain what I do not understand. [CODE] #include <iostream> using namespace std; …

Member Avatar for aaronmk2
0
107
Member Avatar for jokers6

Hey guys i have this program and i want you to tell me what is wrong cuz i can't figure it out !! This is what i have to do: (the code follows) When the form is loaded, read the records in P3S3 Data File For Import.txt to a listbox …

0
64
Member Avatar for Xorlium

Hello! Suppose I'm using an external API, and in that API, they define: const Bar& Foo() const; So this function returns a Bar by reference. Now, I have a function void f() { Bar P = Foo(); } Is it safe to const_cast whatever is returned by Foo? I want …

Member Avatar for Xorlium
0
173
Member Avatar for yongj

I'm doing a homework assignment about constructors and this is really bothering me. I keep getting the error "constructors are not allowed a return type". I HAVE put a semicolon after the class declaration. I'll post my code here. [CODE]// Joseph Yong // CSC2430 // Homework_6 //Header File /*--------------------------------------------------------------------------*/ #include …

Member Avatar for NathanOliver
0
366
Member Avatar for pore

Hey everybody, i wanna use the array "intArray" in the class eightPuzzleAStarDemo() as initial state but i get a cannot use it. Does anybody has a hint for me? Is it because it is not in the same package? Thank you [CODE] package aaa.mayerp.projectone; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; …

Member Avatar for quuba
0
147
Member Avatar for edgareatis

Ok this will be a easy to make game for pros but for new users it will improve your understanding of c#. Ok start my setting up your GUI(Generall User Interface) by selecting a trackerbar, 2 buttons, a label and a trackerbar. Place the trackerbar at the top of your …

0
133
Member Avatar for baseballfury

I keep getting an object expected error at the start of my <body> I've set a form to value="Accountants" and <body onload="showindex()"> in an attempt to automatically submit this value to a js file whenever the page loads. My aim is to have dozens of html pages all using the …

Member Avatar for baseballfury
0
144
Member Avatar for Sylviodrood

SO basically what im trying to do is take an input number of any base and convert that number to any base(allowable bases 2,4,8,10,16). I am trying to think how i am supposed to go about coding it, wondering if anyone can point me into the right direction. Thanks

Member Avatar for mrnutty
0
76
Member Avatar for prodstar

hi i'm currently making a program relating to money and i need my c++ to read one of my excel files which has all the prices etc in it how do i make it work? =/

Member Avatar for gabryprof
0
185
Member Avatar for Atlanticspace

[code] 842 M C 20.00 15 2 250 10.00 UC RosebudTheatre 90 One Mike Stand 990 E C 20.00 19 2 1250 10.00 TX TexasHall 75 Maverick Speaker Series554 C N 16.45 30 1 35 0.00 UC PaloDuraLounge 60 Global Grounds Coffee Hour 318 E C 18.00 3 4 350 …

Member Avatar for VernonDozier
0
110
Member Avatar for Roegadyn

Hello everyone, I have work to do on a basic assignment that requires an ATM type of program working over XMLRPC so there is a server element where the data is held in a Hashtable and retrieved by a client form. I will state I am completely lost in the …

Member Avatar for Roegadyn
0
149
Member Avatar for ShortYute

[B]Modified mostly from dileepkumar235's [URL="http://www.daniweb.com/code/snippet217246.html"]Login functionality in C-language[/URL] [/B] Inspiration from Narue and my previous post ([URL="http://www.daniweb.com/forums/thread249149.html"]Limit buffer Input[/URL] ) This allows you to prevents the user from entering past the array limit (SizeOfArray) if the user enters more the curser will just automatically backspace by 1 for eg (max …

0
206
Member Avatar for thatom

Hi I am using borland C++ Builder 6.0 and I would like to include finger print technology in my program. I want to store finger print images in the paradox 7 database. I would like to log on into the program using the fingerprint. I have a UrU 4000B finger …

Member Avatar for mitrmkar
0
212
Member Avatar for skyzer

So i've found an example of how to use Semaphore and made my code into there for Readers-Writers problem. What it must do, that it has 1 book, only 1 writer can write a new line there and while he is writing, no1 else can access it. When writing is …

Member Avatar for moutanna
0
2K
Member Avatar for charlieruns

I am trying to read all the files in a folder and for some reason it keeps reading only 1 file over and over again... [CODE]private void openFile() throws IOException { status.setText("Adding Photos"); File file; JFileChooser fileChoose = new JFileChooser(new File("charlie/photo/")); int success = fileChoose.showOpenDialog(this); if (success == JFileChooser.APPROVE_OPTION) { …

Member Avatar for charlieruns
0
99
Member Avatar for Atlanticspace

ok so im trying to get my line of text file working with my file input. the Last part of my text file has a name of an event with spaces which I want to include those spaces so I needed a getline. apparently for some reason my getline function …

Member Avatar for Atlanticspace
0
165
Member Avatar for charlieruns

How can you get a JList to simple display a one word string. I know the method of JList.setListData(Object[]); I have an object[], but it is multiple lines of information and it looks weird in the list display. How can I get an Object[] to simply display the first line …

Member Avatar for charlieruns
0
85
Member Avatar for bletchley

Hi. I'm a Java programmer making the switch to C++. Could someone enlighten me as to what's going wrong here: [B]g++ -o fermat.cc main.cc[/B] main.cc: In function `int main()': main.cc:8: error: `Fermat' was not declared in this scope main.cc:8: error: `f' was not declared in this scope main.cc:8: error: `Fermat' …

Member Avatar for nezachem
0
127
Member Avatar for johndoe444

[CODE]for (i = 0;i < e;i++) { // take the excuse scanf(" %[^\n]", excuses[i]); excuse_count[i] = 0; while (sscanf(excuses[i], " %[a-zA-z]", word) != EOF) } [/CODE] The input was My dog ate my homework but at the while loop word is getting the word "My" in each loop. In case …

Member Avatar for johndoe444
0
568
Member Avatar for AcidG3rm5

Hi need some help to separate my string. I'm reading my text from file. The format is "name,1,2,3" What i need to do is to seperate out the entire string to: String name = "name"; String one = "1"; String two = "2"; String three = "3"; The commas are …

Member Avatar for AcidG3rm5
0
110
Member Avatar for jpl1993

so i have a project due in my computer programming class and i need some serious help. we are learning about recursive sorting, such as merge sort, selection sort, etc. my project has to do with taking 10 people and sorting them in order by their names (alpabetically), rank (numerically), …

Member Avatar for griswolf
0
123
Member Avatar for hajjo

paths = [ "nodeA1", "nodeA1/nodeB1/nodeC1", "nodeA1/nodeB1/nodeC1/nodeD1/nodeE1", "nodeA1/nodeB1/nodeC2", "nodeA1/nodeB2/nodeC2", "nodeA3/nodeB2/nodeC3" ] you have list of strings there. how can i create a tree by system.out.println from all those paths. nodea1 ----nodeb1 -----------nodec1 -------------------noded1 ------------------------------nodee1 -----------nodec2 -----nodeb2 -----------nodec2 nodea3 -------nodeb2 ------------nodec3

Member Avatar for moutanna
0
147
Member Avatar for sarath.koiloth

Friends, I am stuck here , I am downloading some files from a url uing GZIPInputStream.I need to store this files.So i declared a bytearray with specified length.As i am downloading files with different size, i think i need to declare a dynamic byte array. Please help me to solve …

Member Avatar for javagrendel
0
143
Member Avatar for tyson.crouch

Just wondering, why is it that PHP seems to be the preferred option over JSP when dealing with MySQL databases? I've long gone off PHP and have moved onto JSP in more recent times and find that it handles the over-all performance much better. I'd like to hear from all …

Member Avatar for griswolf
0
194
Member Avatar for Stefano Mtangoo

Hi, How do these relate and differ? I see them Used with queries but cannot understand. I'm just starting JDBC. Sorry if it is noobish ;)

Member Avatar for masijade
0
327
Member Avatar for leegeorg07

Hi all, I'm trying to get the content of a div with php. I can't find a way to use javascript in php to do it so I was thinking that regex would be the way? If it helps the div id is "editor". Thanks in advance, if you need …

Member Avatar for leegeorg07
0
6K
Member Avatar for sgriffin

How would you fill a 2d vector with NULL. I've tried doing [CODE]vector<vector<int> > data; data (10, vector<int> (10,NULL))[/CODE] But I get an error, and I've also tried setting it to NULL through two for loops and that produces an error as well. Can someone point out what I'm doing …

Member Avatar for sgriffin
0
92
Member Avatar for AcidG3rm5

Hi all, am writing a programming for my assignment. Got stuck in my codes for a small portion. Currently i have trying to extract all the alphabets within a string and cover them to an ascII. For example: I have a string "1a2b3c" What i need to do is to …

Member Avatar for AcidG3rm5
0
106
Member Avatar for jbisono

Hello my friends. I am having problem with a GridView that its been filled by a LinqDataSource, and the footer i have the option to insert a new row, but if the DataSource is empty the footer wont show up. What is the best option to fix this. Thanks.

Member Avatar for jbisono
0
138
Member Avatar for redleafrose

hi I m working on this assignment...base class employee sub class staff .now i have to Create a StaffDriver Java program that: a. creates two staff objects b. prompts the user to enter name, id, hours and rate for each object c. compute the pay for each object d. displays …

Member Avatar for wildplace
0
95
Member Avatar for skylancer

hi friends, I want to develop 3 tier app but I still confused how to implement it 1. In data access layer, could I return datareader? it's the better approach? some people tell it is not good way, you better used arrayList. 2. I have one method with 3 transaction …

Member Avatar for skylancer
0
136
Member Avatar for viziroth

ok so I have what seems like a simple problem... simple code [CODE] int date; cout << "Enter the date in MMDDYYYY format: "; cin >> date; [/CODE] problem happens when someone starts the int with a 0 for example cin >> 03081991 date = 24 if I add another …

Member Avatar for iamthwee
0
106

The End.