132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for phorce

Hello, I have an array and need to sort it so that the highest numbers show first etc.. I have written this: [code] for(int i=0; (i < 26); i++) { while(counter[i] < counter[i + 1]) { int temp = counter[i]; counter[i + 1] = temp; counter[i] = counter[i + 1]; …

Software Development c++
Member Avatar for phorce
0
100
Member Avatar for phorce

Hey.. Is it possible to make PHP type arrays? Like keys? For example, I have an array of numbers, and an array of letters.. A = 10 B = 20 C = 30 And then I sort the numbers so that the highest number is at the top etc.. But, …

Software Development c++ php
0
73
Member Avatar for manobaby

Can any one help me put my pointer by gotoxy function inside the matrix that,s like as below: [CODE]void gotoxy( short x, short y ) // function to handle position of cursor on the screen { HANDLE hStdout = GetStdHandle(STD_OUTPUT_HANDLE); COORD position = { x, y }; SetConsoleCursorPosition( hStdout, position …

Software Development c++
Member Avatar for raptr_dflo
0
558
Member Avatar for AbEeR Q8

hi; I'm trying to program a circular link list with a head node , I have a problem with insert function . wanting to do it like this but with a head node >> [url]http://geeksforgeeks.org/wp-content/uploads/cll1.gif[/url] this is my function :: [CODE] struct node{ int data; node *next; node(int x,node *n=NULL){ …

Software Development c++ seo
Member Avatar for raptr_dflo
0
390
Member Avatar for mcclainra

The names are in a txt. file and are categorized as 1. malename femalename. One being the number symbolizing their popularity in 2004. What I've been attempting to program is a program that will read a requested baby name from the user. Scan through all the baby names using an …

Software Development c++
Member Avatar for raptr_dflo
0
1K
Member Avatar for sanonite

Hello everyone, my assignment is to calculate each student's test average and final letter grade from a class of 20 students with 3 tests. The scores for each test are located in the text files that I am attaching. I have worked on this code for some time now, but …

Software Development c++ mathematics
Member Avatar for sanonite
0
245
Member Avatar for babyhuyx

I'm currently working on a project similar to that of text twist. I have a dictionary txt file which I stored into an array. I then have user input a guess, then compare the guess to the dictionary array using a for loop. Somewhere along the lines of this: [CODE]string …

Software Development c++
Member Avatar for raptr_dflo
0
175
Member Avatar for smmcfarl

This is my whole program and what I am trying to do. Nothing is being outputted through the functions though. When I output the array in the client code it prints correctly but not through the recursive function. So I am wondering what I am doing incorrectly? Input is like …

Software Development c++
Member Avatar for raptr_dflo
0
96
Member Avatar for sdragon

Hi Everyone, I'm new here and also new in using Java. I want to make an iterator without using the default methods hasNext, hasPrevious. Here is what I've already done using the default methods: [CODE]import java.util.*; public class HomeIterator{ public static void main(String[] args) { int i = 0; ArrayList …

Software Development java programming-construct
Member Avatar for sdragon
0
276
Member Avatar for OblibSystems

Basically im trying to make a game where shapes fall from the sky and the user controls the sprite to avoid them. I have it working but only with 1 block falling at a time. I am using the paint method to draw my shapes. I was wondering how to …

Software Development gaming iphone vb.net
Member Avatar for the_carpenter
0
226
Member Avatar for MrEARTHSHAcKER

Hi, I wish to start making Windows Applications, but I need a good compiler. Considering I work in DEVC++, I can't make buttons, textboxes and other objects that easy. I wonder if there's any compiler like BorlandBuilder for C, but for C++. That'd really help me :icon_cool: So do you …

Software Development c c# c++ windows-xp
Member Avatar for MrEARTHSHAcKER
0
221
Member Avatar for eLu-sive

hi, please help me debug this, i am trying to add one row from one table to another at the same delete it from the table i am getting it from. (cut and paste kinda thing). Only one part works, i can only copy and not delete. [CODE] int recordAffected …

Software Development java
Member Avatar for eLu-sive
0
238
Member Avatar for cummings15

The void and Output file will not work for my code and I don't know why. [CODE]#include <iostream> #include <string> #include <istream> #include <fstream> #include <cstdlib> #include<iomanip> using namespace std; #define MAX_ENTRIES 50 struct internet { string internetDomain; string ipNumber; int counter; }; // declare the array of structs - …

Software Development algorithm c++ open-source
Member Avatar for raptr_dflo
0
130
Member Avatar for gani_2

Hi, I am new to VB.NET and xml and I am trying to parse the xml file of format mentioned below and display it using textbox in VB.NET. But I am not able to parse it. Can anybody pls give me a code snippet to parse the xml shown below …

Software Development vb.net xml
Member Avatar for thines01
0
4K
Member Avatar for berwick53

Hi i'm trying to read in an XML File that is like the following [CODE]<?xml version="1.0" encoding="utf-8"?> <ArrayOfSYMBOL xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <SYMBOL Code="AA.P" Name="Alcoa Inc Pf 3.75" /> <SYMBOL Code="AADR" Name="Wcm Bny Focused Growth Adr ETF" /> <SYMBOL Code="AAU" Name="Almaden Minerals" /> <SYMBOL Code="AAVX" Name="Etracs Daily Short 1 Month S&amp;P" /> …

Software Development xml
Member Avatar for thines01
0
92
Member Avatar for javaNooblet

Hi all, If I write a java program inside of eclipse, how can I run that program outside of it, rather than just hitting the run button in eclipse. So, I can give others the program to run on their computers. Thanks!

Software Development java
Member Avatar for javaNooblet
0
258
Member Avatar for caut_baia

Hi everyone.I'm trying to compile a resource file ".rc" for a Win32 application but i'm getting this error "use "" to put " in a string".Among other things , i'm trying to define a MENUITEM with a string that looks like this "&Save\t\"Alt+S\"".i have tried escaping the '"' character with …

Software Development c++
0
152
Member Avatar for xtanmanx

I've searched for this but could not find exactly what i need to fit my needs. If it already exists, i apologize and thank you for the redirect. Fairly new to VB, but have a good understanding. Scenario: Have 3rd party software that has many drop down options for each …

Software Development vb.net
Member Avatar for rthrtshrfhsrh
0
1K
Member Avatar for mbrcarnation

Hi everyone, I'm working on a project for my computer science class and we're supposed to make a java applet game. I'm not very far in the game quite yet, but I'm trying to make sure that the mouseListener and the rectangles work before I continue on with the game. …

Software Development gaming java
Member Avatar for emmas4impact
0
230
Member Avatar for emmas4impact

Hi everyone, i'm trying to make a sound each time a ball touches the lift and right of a frame but when i use clip and try to use the sound class it sound from right then left the in middle and then stop. i Can really use some help. …

Software Development audio file-stream gui java java-swing
Member Avatar for JamesCherrill
0
212
Member Avatar for akde

I have created a new C++ project (to be able to use the graphics.h library) then I have tried to add a C project which works perfectly in C (by the way I have saved the file with .c extension). 2 line leads to error: [CODE] q = malloc(sizeof(struct QueueRecord)); …

Software Development c c++
Member Avatar for akde
0
263
Member Avatar for javaNooblet

Hi All, I am currently trying to figure out to finish this project. Below is my code that I have so far. There are some blank methods that I am not sure where to even begin on how to complete them. I have a description of what the methods should …

Software Development file-system java programming-construct
Member Avatar for NormR1
0
2K
Member Avatar for muneeb213

How to create setup file with database...........please help me

Software Development vb.net
Member Avatar for weeraa
0
138
Member Avatar for branflake

I was working on some code to produce a 10 x 10 multiplication table with equal tabbing and spacing between rows. I can't seem to get more than one column on my table though. I did some other research but wasn't able to find a helpful answer. Any help is …

Software Development java
Member Avatar for thines01
0
149
Member Avatar for thetechlady21

[COLOR="Green"]I am trying to select a row in my datagrid. There are two columns only. The row displays into two text boxes. I am trying to figure out how to select the next row in my datagrid. I have tried looking at your examples but I am still having trouble. …

Software Development vb.net visual-basic
Member Avatar for Reverend Jim
0
194
Member Avatar for cool_zephyr

hey there, I'm writing a program where I have to store and retrive student information(e.g. name,address,photo..) in the database. I've written the code to interact with the database in a WCF service..The problem is I'm able to get the image from the database if I directly write the code to …

Software Development image
Member Avatar for cool_zephyr
0
316
Member Avatar for learner guy

hi i am a newbie at c++.. this is code of game am wondering why the text is blinking ? [CODE]/ /* Include section */ #define WIN32_LEAN_AND_MEAN #include <iostream> #include <windows.h> #include <cstdlib> #include <time.h> /* Using Statements*/ using std::cout; using std::endl; /* Constants */ #define X 20 #define Y …

Software Development c++
Member Avatar for MandrewP
0
351
Member Avatar for chamnab
Member Avatar for chamnab
0
79
Member Avatar for bradyramone

Is it possible to get a user's mac address when he visits my website through a JApplet?

Software Development java
Member Avatar for stevanity
0
116
Member Avatar for james6754

[CODE] USHORT * pInt = new USHORT; *pInt = 10; std::cout << "*pInt: " << *pInt << endl; long * pLong = new long; *pLong = 90000; std::cout << "*pLong: " << *pLong << endl; *pInt = 20; std::cout << "*pInt: " << *pInt << endl; delete pInt; *pInt = …

Software Development c++
Member Avatar for Moschops
0
124
Member Avatar for janet@123

i am receiving a struct from the switch: [CODE]/* Packet received on port (datapath -> controller). */ struct ofp_packet_in { struct ofp_header header; uint32_t buffer_id; /* ID assigned by datapath. */ uint16_t total_len; /* Full length of frame. */ uint16_t in_port; /* Port on which frame was received. */ uint8_t …

Software Development c
Member Avatar for janet@123
0
271
Member Avatar for zo0oda

[COLOR="Red"]hello.... I'm new member and I'm so happy that i found daniweb.com to get some help from you my friends.... i need help in solving this problem...[/COLOR] •Select one program of your choice that implements Single or Double Linked List in C++. Make sure you use class in your program, …

Software Development c++ data-structure linked-list
Member Avatar for Narue
0
116
Member Avatar for CityThrille

Good day everyone. I am back from some previous months of extensive schoolwork. I am creating now a payroll application, but I think there's something wrong in my code, because it created an output that's not my intended output. Wait, guys, I'm confused. Is this appropriate for a C forum …

Software Development c
Member Avatar for CityThrille
0
300
Member Avatar for fausto1234

I have to write a program that takes the smallest number from a list of numbers and puts it on the first position. [CODE]public static void minToFront (ArrayList<Integer> minInteger) { int result = 0; int min = minInteger.get(0); for (int i = 0; i < minInteger.size(); i++) { if (minInteger.get(i)< …

Software Development java
Member Avatar for CSloan7597
0
190
Member Avatar for stereomatching

compiler : visual c++ 2010 os : win7 64bits [CODE] std::string temp = "temp"; boost::tuple<std::string> A( std::move(temp) ); //this is copy std::tuple<std::string> A( std::move(temp) ); //better, woundn't compile [/CODE] this is inconvenient when I want to do something like this [code] std::tuple<std::string> kkk() { std::string temp = "temp"; return std::make_tuple( …

Software Development c++
Member Avatar for stereomatching
0
319
Member Avatar for noobies

I have 2 query which I want to make it as 1 query. Could anyone help me. Because the query is just the same. The difference is they have 2 condition which 1 query for same year and another query for different year. [CODE]If (bboard = "All") Then If (qter1 …

Software Development mysql vb.net
Member Avatar for adam_k
0
111
Member Avatar for askerknight

[CODE]#include<iostream> using namespace std; int main() { int x, s, g,; int m[10]; cout<<"Input 10 numbers: "<<endl; cout<<"number: "; for(s=0; s<10; s++) { cin >>g; m[s]=g; } cout<<"\n"; int max, max2; max=max2=0; for(int i=0; i<10; i++) { if(m[i]>max) { max2=max; max=m[i]; } if(m[i]>max2 && m[i]<max) { max2=m[i]; } } int …

Software Development c++
Member Avatar for askerknight
0
149
Member Avatar for BWS9292

My assignment is to create an application that allows the user to type an item's price into a single textbox, add the price to the previously entered prices, and display the total charge which includes a $15 shipping charge and a 3% sales tax. Example: I type 10 in the …

Software Development vb.net
Member Avatar for adam_k
0
92
Member Avatar for hatebin

Hi, I'm trying to write a program in Java to send AT commands to my mobile and recive information via BlueT from it. I've already got a program to search and fide blueT Devices, and thats how i receve: 1.name of device 2.blueTooth Adress How to use this two things …

Software Development java
Member Avatar for hatebin
0
383
Member Avatar for Jsplinter

[CODE] vector<int> iv; iv.push_back(4); vector<int>::iterator it = iv.begin(); cout << *it; cout << *(iv.begin()); //debug assertion here [/CODE] Why can't I dereference iv.begin() directly?

Software Development c++
Member Avatar for Jsplinter
0
281
Member Avatar for dennysimon

hello all when I do javac ,I often warn to use -Xlint ,and then the result has one or more warning. As example I attach the javac's result below.The question is how to eliminate warning thank you denny C:\LJava>javac -Xlint -d build src\KwitansiJava04.java warning: [path] bad path element "%classpath%": no …

Software Development java
Member Avatar for JamesCherrill
0
383
Member Avatar for C++isC++

I have an assigment that i cant solve it , can any one help ? Here is it : .................... Write a C++ program that calculates the interest for a customer’s money at a bank account. If the customer deposit is 6000 JD or less, the bank gives an interest …

Software Development c++
Member Avatar for MandrewP
0
103
Member Avatar for lele07060

This is saying that the sum is 0.0 but I am not sure if it is right. Can someone let me know please. Here is the code i used: [CODE]import java.util.Scanner; public class Lab424 { public static void main(String[] args) { int i; float sum; i=3; sum=0; while(i<=99) { sum=sum …

Software Development java
Member Avatar for stultuske
0
129
Member Avatar for Royson

I have an webbrowser control on my form. I am able display html files in that control. But my page contains some images if i give [B]absolute path[/B] to it then images are displayed. But if i give relative path then images are not shown in the pages. I have …

Software Development html-css open-source web-browser
Member Avatar for hankas
0
2K
Member Avatar for triumphost

Hey all. I'll make this quick. I want to search for a pattern and replace it with an empty string using the boost/curl libraries OR strictly c++.. No DotNet. The below code I have, removes HTML Tags from a file/string: [CODE] static string StripTags(string source) { int iSize = (int)source.length(); …

Software Development c++ regex
Member Avatar for vijayan121
0
309
Member Avatar for manugm_1987

Hi Please help me, i am stuck with this. My xml will be generated dynamically .i.e it is not the same always and it doesnot have the same elements or same number of nodes always, it may grow or shrink. How to convert this kind of xml to html in …

Software Development html-css xml
Member Avatar for hericles
0
189
Member Avatar for bossman5000

write a Unix shellscripthat will take the information from two files and combine into another file I created both files in vi and they are file1 David 734.854.5643 Roberto 313.432.4532 Sally 267.423.5412 Mary 435.432.7654 Ted 324.642.6743 Alice 234.576.3245 Frank 342.465.6754 and the second file is file2 Roberto Tuesday 2 Sally …

Software Development shell-scripting unix
Member Avatar for L7Sqr
0
215
Member Avatar for A.D.M.I.N

I want to translate text inputted multiple times then output it. I am using the maketrans() function. I want to translate multiple times, by a number of times a user would input.

Software Development python
Member Avatar for woooee
0
302
Member Avatar for dennysimon

Hi all in code below ,after I got the object aobj ,how can I identify which component aobj actualy is.And where is it Location ? thank you denny [CODE]CaretListener listener = new CaretListener() { public void caretUpdate(CaretEvent caretEvent) { Object aobj=caretEvent.getSource(); Component comp=aobj. System.out.println(aobj.toString()); } };[/CODE]

Software Development java
Member Avatar for dennysimon
0
858
Member Avatar for ninjatalon

I've created an application where our clients can have access to our program by logging in. It uses our database for most information. I want to implement a richtextbox where it saves notes but i don't know if i should be saving that information as a file or what. Also …

Software Development vb.net
Member Avatar for ninjatalon
0
84

The End.