132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Labdabeta

I am VERY confused by the Doxygen configuration file. I cant seem to figure out how to make it compile code between [ICODE]#ifdef __cplusplus[/ICODE] and [ICODE]#endif[/ICODE] Also I dont understand how to change what it does with preprocessor symbols or how to make it NOT generate documentation on something. Any …

Software Development c++
Member Avatar for mike_2000_17
0
163
Member Avatar for naomi_01

Hi, I'm trying to have a set of random numbers into ArrayList and to print it. e.g. if the total number is 10, [2,3,5] or [1,5,2,2], etc. In below, it gives me each numbers but because y gets zero, it throws an exception. Can I have help to print all …

Software Development java
Member Avatar for Zaad
0
184
Member Avatar for Tom_Weston

Basically, what i would like is if the two letters are attached together (NOT seperated) in the string, it will say good, if not the bad. Example: [CODE] #include <iostream> #include <string> int main () { string letters = "or"; string test = "The man went to the store."; //here …

Software Development c++
Member Avatar for WaltP
0
158
Member Avatar for Labdabeta

How long can an array be, and how can I extend that length?

Software Development c++
Member Avatar for rubberman
0
142
Member Avatar for dwiniers

Hello Guys. Good Day! Masters of programming out there anybody can read mo this code guys how it work in the program for better understanding of mine. Thanks in advance for your help... br. [CODE]Private Sub cmdsearch_Click() On Error Resume Next Dim dok As String Dim ran As String dok …

Software Development visual-basic
Member Avatar for hkdani
0
128
Member Avatar for alone882

Hello, once again I have a very BIG problem. I made program that connect to proxy server and browse via proxy server. However, my company has a made private proxy server which I must authenticate through to get to the internet. I read hundreds pages of docs, but without success. …

Software Development router-proxy-firewall visual-basic
Member Avatar for hkdani
0
434
Member Avatar for toneranger

I have some stock market price data organized as follows in a structure: struct PriceInfo { string Date; unsigned int Time; double Open; double High; double Low; double Close; unsigned int Volume; }; This struct organizes price data per interval of date and interval of time, where time is measured …

Software Development c++ data-structure
Member Avatar for toneranger
0
855
Member Avatar for sway1101

Hey all, Came across this site while scouring the web for a solution to my problem. All of the answers on here seem very helpful and non judgmental. That is hard to come by in a lot of programming forums, so thanks. My Question. I am using VS 2008 and …

Software Development vb.net
Member Avatar for Unhnd_Exception
0
2K
Member Avatar for herstein

Hey guys. I have been trying to write a progamme, and for some reason it doesn't give me the result I want. Anyway, here is a description of the programme I want: "Suppose that a is a positive integer. Suppose we repeatedly modify a as follows: if a is even, …

Software Development java
Member Avatar for hfx642
0
81
Member Avatar for FALL3N

Hello. I am writing a script to do some copying of files. I feel confident that I can do that part, but before I even start doing the actual copies, it compares the last modified dates of two files.. I know this seems a very basic question that I would …

Software Development shell-scripting
Member Avatar for FALL3N
0
207
Member Avatar for loserspearl

I'm working on a random number guessing game with 5 tries that uses standard JOptionPane GUI and 3 methods, the requirements have each method doing a specific task. The main method starts a game is supposed to handle the 'you won' or 'you lost' dialogue and play again if the …

Software Development gui java java-swing
Member Avatar for loserspearl
0
1K
Member Avatar for Algorithms

Hi brand new, Okay so I have an exercise I'm doing to better help understand C++ programming. This isn't a project or homework assignment. I'm doing this for practice and to better my skills as a programmer. I have the logic down, now I just need to add to the …

Software Development c++
Member Avatar for hiddepolen
0
942
Member Avatar for vijaykavin10

Hi all... What is the purpose of built in class Say for example in event handling event class are : ActionEvent,MouseEvent,ComponentEvent,ContainerEvent... like that what is the purpose of this classes and in which case we are using this kind of the classes. Thanks...:)

Software Development java
Member Avatar for hiddepolen
0
84
Member Avatar for valestrom

Hey, I was just wondering how I can get it so when I click a button it opens my second form. But sets some of the labels to a specific thing, so I don't end up making 170+ forms for my periodic table application. Just like so when I click …

Software Development c++ gui
Member Avatar for triumphost
0
203
Member Avatar for dev90

I am not getting all numbers but only last number while readind data from file. And it has to be done with fscanf function.[code]/* input n nunbers fom user and write it in the file.find it's sum and write the ans. in another file */ #include <stdio.h> #include <conio.h> void …

Software Development c file-system
Member Avatar for WaltP
0
142
Member Avatar for heybunny

Write a while loop that will generate and print 100 random integers on the range [1,1000)? I cant get mine right, plz help. Also, i dont have JAVA so couldnt really check And also, if you can: Write a while loop that adds up all the odd numbers between 0 …

Software Development java
Member Avatar for Ezzaral
0
203
Member Avatar for LuckyLiza

I am fairly new to the Java lang and this is my first post so if I do it incorrectly please forgive me. Anyways, I am basically trying to find [LIST] [*]MaxInDegree [*]MaxOutDegree [*]MaxDegree [*]MinInDegree [*]MinOutDegree [*]MinDegree [/LIST] of a 2d array with various nodes. Here is what I have …

Software Development data-structure java
Member Avatar for hiddepolen
0
232
Member Avatar for akhlakeng

how to do this? : ask the user to insert the length of two sides (b and c) of a tringle and the angle between them in degree (x), compute and print the length of the third side,a, by using this formula a^2=b^2+c^2-2bc(cos(x)) (Note: to use the cosine function(cos), the …

Software Development c++
Member Avatar for WaltP
0
257
Member Avatar for jaepi

Hello there, I have here a problem with the function open(). Since its first parameter asks for a char*, how would i convert wchar_t* to char* if my program asks for a wchar_t* as its path rather than char*?

Software Development c++
Member Avatar for epolgar
0
10K
Member Avatar for programing

write a class Circle with one double data radius . write motheds ::: public Circle(),public Circle (double),public Circle (Circle c) public double getRadius() public setRadius (double) public getPerometer(int)where the parameter indicates the number of terms for Ï€ public getArea (int) where the parameter indicates the number of term for Ï€ …

Software Development java
Member Avatar for hiddepolen
0
201
Member Avatar for VasquezPL

Hi guys, I have a small problem I am writing a program which adds informations about broken systems in my company. Customers are informed about new events (outages) via RSS (XML) channels. My program simply download xml from the web page and give a possibility to add new items (events) …

Software Development c# xml
Member Avatar for VasquezPL
0
606
Member Avatar for clide890

Effective January 1st of each year, Gabriela receives a 5% raise on her previous year’s salary. She wants a program that calculates and displays the amount of her annual raises for the next three years. The program also should calculate and display her total salary for the three years. Annual …

Software Development c c# c++
Member Avatar for Fbody
0
360
Member Avatar for noobies

Can anyone help me to do this : Select previous field based on previous field in sql. I had tried a lot of ways but it seems doesn't works. [CODE]Select alert_value , year_id from company_alert where year_id = "2010" and year_id = year_id - 1 group by year_id[/CODE] could anyone …

Software Development sql vb.net
Member Avatar for adam_k
0
184
Member Avatar for imolorhe

What are the possible uses of the bitwise operators. i.e. bitwise AND, bitwise OR, bitwise XOR, shift right, shift left and complement. Also, what are the applications of bitwise operators in everyday problem solving. Examples would be nice. Thanks in advance

Software Development c++
Member Avatar for daddymummy
0
227
Member Avatar for zachattack05

Can this be done? I know you can databind to form controls, but what about object properties? For example, I have a form that has two functions, to edit a record and to create a new record, but the problem is that in order to create a new record you …

Software Development
Member Avatar for jbisono
0
94
Member Avatar for cypherscouter13

I try to run the following, but I keep getting the error "error C2664: 'Card::SetName' : cannot convert parameter 1 from 'const char [23]' to 'char'" I also got the following error; error C2664: 'Beginning' : cannot convert parameter 2 from 'std::vector<_Ty>' to 'std::vector<_Ty> &' I'm not that familiar with …

Software Development c++ windows-virus
Member Avatar for cypherscouter13
0
164
Member Avatar for Jessurider

can anyone tell me how can we hide [B]invisible data's [/B]permanently within bmp images

Software Development java
Member Avatar for Ezzaral
0
115
Member Avatar for coder_10

Hi, How can I add the values of an array to a char variable? Without using "strcat" btw. [CODE]char table[5],message; t[0] = "h"; t[1] = "e"; t[2] = "l"; t[3] = "l"; t[4] = "o";[/CODE] Than end up with "message = "hello""? Thanks.

Software Development c
Member Avatar for hkdani
0
201
Member Avatar for vatwindad

I am new to C# and am having trouble with some code that I am writing. Below is the code. I want the user to be able to enter a number between 10 and 50. Once the user does this, I want it to evaluate to Acceptable if it is …

Software Development c#
Member Avatar for vatwindad
0
309
Member Avatar for Donieob

I have a JFreeChart XYPlot with many series, the number of different series depends on input parameters. I wish to colour the lines in groups of two, so that series_0 and series_1 are the same colour then series_2 and series_3 are the same colour. I tried the following solution but …

Software Development java
Member Avatar for Ezzaral
0
298
Member Avatar for ethio

Need correction on my answers and description on my errors. Q1 Which of the following statement(s) is true about an abstract class? 1. An abstract class cannot have any constructors. 2. An abstract class contains only abstract methods 3. An abstract class always implements an interface [B][U]4. An abstract class …

Software Development java
Member Avatar for ethio
0
126
Member Avatar for bio-grad

Hi, I wrote this script to help me cleanup some data. The value in the 8th column is sometimes empty. When it is empty, I want it to print a zero as in the next part of the script it will be adding a number to whatever is in that …

Software Development data-structure perl
Member Avatar for bio-grad
0
232
Member Avatar for gahhon

as the question require to declare [CODE] // Creating Class Members public class Films { private String itemCode; private String title; private String description; private String language; private String runningTime; private String productionCompany; private String status; //eg, pending, premiering, running, written-off // No-argument Constructor: Without Parameters public Films() { itemCode …

Software Development java
Member Avatar for JamesCherrill
0
224
Member Avatar for SK6114

Hi, I need to integrate e^-(x^2) between negative infinity and positive infinity, now the function vanishes to a minute value much before negative and positive infinity. I need to approximate the integral using the trapezium rule, which I have coding for but I just don't know how to apply it …

Software Development python
Member Avatar for TrustyTony
0
750
Member Avatar for pelin

i am writing a program that reads the file i create. The file has grades and weights of grades anddd 3 person but i need to create a program that will read the information from the file, calculate and print the total average of each student given by the formula …

Software Development file-system python
Member Avatar for TrustyTony
0
237
Member Avatar for DeathEater

hi, I've been working on a little program for my company for keeping the records of some members, it's basically a WinApp, but since the company has a website in which certain people visit and become members i was wondering if i could update my DB from the website, provided …

Software Development c#
Member Avatar for DeathEater
0
110
Member Avatar for cdea06

Could someone explain how the flow of control works with a nested for loop? [CODE]for (initialize; condition; increment) for (initialize; condition; increment) statement; [/CODE] I know a single for loop is: initialize --> condition --> statement --> increment--> condition -->.......

Software Development java
Member Avatar for JamesCherrill
0
130
Member Avatar for jenxin

Hi guys/girls. I have a program due soon for my assembly class. My teacher expects us to bruteforce through this program, but I'm wondering if theres any other way. Here's my code basically, edx is the pointer to the value located at a position on a sudoku matrix. ie. [edx …

Software Development assembly flash legal
Member Avatar for jenxin
0
783
Member Avatar for noXi

Hi, i've been looking around the web but could not find anything about the filestructure of the following file: [CODE]{"tickets":[{"name":"Test", "id":"906935000", "description":"gültig", "userID":"310000", "price":"Preis: 1,90€", "productID":"119", "checksum":"6017", "dailyCode":"u", "hourlyCode":"y", "barcode":"", "rebuyLink":"191000", "buydate":"52744", "buydateString":"17.08.2011", "legalNote":".", "validString":"gültig bis 17.08.2011", "demo":true, "validDescription":"gültig in 210"}], "currentMonthExpenses":"1,90€", "getMoreTicketsAvailable":false, "monthlyTurnover":170};[/CODE] This .dat-File is generated in javacode. …

Software Development java
Member Avatar for noXi
0
257
Member Avatar for eikonal

Hi everyone! This is my first post even though Ive been reading you for a while. I'm a Python beginner and I'd need your help. I'm processing a very big file (more than 2 millions of lines) but I'll show you a much smaller example (24 lines rather than 74513). …

Software Development python
Member Avatar for JoshuaBurleson
0
132
Member Avatar for opawix

Hello ma'am/sir any help for the codes of input to be align.heres my code: [CODE] #include<iostream> using namespace std; int main() { float pre, mid, semi, final, total; cout << "Prelim: "<<setw(20)<< "Midterm: "<<setw(20)<< "Semifinal: "<<setw(20)<< "Final: "<<setw(20)<< "Final grade: \n"; cin>>pre>>mid>>semi>>final>>total; total = (pre+mid+semi+final)/4; system("pause"); return 0; } [/CODE] …

Software Development c++
Member Avatar for namratag
0
105
Member Avatar for aadi_capri

hello friends, how can i design a region in vb.net form(windows application), such that when i click any point inside a region a new page opens. my problem is that the region which i want to define through it is very complex..its a combination of a rectangle and another shape. …

Software Development vb.net
Member Avatar for Unhnd_Exception
0
287
Member Avatar for maybnxtseasn

[code]int Add(int nX, int nY) { return nX + nY; } int main() { int (*pFcn)(int, int) = Add; int (*pFcn)(int, int) = &Add; cout << pFcn(5, 3) << endl; // add 5 + 3 return 0; } [/code] my question is are both of these lines equivalent? or is …

Software Development c
Member Avatar for Narue
0
87
Member Avatar for Powerponken

Hi, This is probably some basic knowledge but I haven't found it out. I have this snippet of code that is causing me problems: [CODE] HANDLE hFile; char lpBuffer[100] =""; char idBuffer[100] = ""; DWORD ofs; strcpy(lpBuffer, fingerprint); strcat(lpBuffer,"\0"); hFile = CreateFile(buffer,GENERIC_READ|GENERIC_WRITE,FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL,NULL); WriteFile(hFile,lpBuffer,sizeof(lpBuffer), &ofs, NULL); strcpy(buffer,""); if(ReadFile(hFile, …

Software Development c++ file-system visual-basic visual-studio
Member Avatar for Ancient Dragon
0
182
Member Avatar for AquaNut

Hi All, Been reluctant to drop this on anyone as I wanted to resolve it myself but alas it has got the better of me. I am trying to do an insert into an Access 2007 DB but keep getting a syntax error even thougt I can get the generated …

Software Development linked-list vb.net visual-basic
Member Avatar for Naveed_786
0
305
Member Avatar for jimbakl

when it was all right suddenly when i try to compile and run a code display me this problem [QUOTE][IMG]http://img191.imageshack.us/img191/2909/captureyty.png[/IMG][/QUOTE] because i used to use DevC i never find this kind of problem, i search in to the MS visual folder in my pc but i dont find anything. DId …

Software Development c visual-studio
Member Avatar for Ancient Dragon
0
113
Member Avatar for Jessurider

can anyone please tell me how to edit the summary of a file(e.g *.txt,*.docs,*.pdf,*.avi.....etc) through by java programming.

Software Development java pdf
Member Avatar for JamesCherrill
0
345
Member Avatar for Simon180

Can sumone please give me a helping hand here am trying to do a simple sql search were it will look all items in SQL database and pull up the names that match but am having a abit of trouble with it it brings all my accounts up regardless of …

Software Development pascal sql
Member Avatar for pritaeas
0
204
Member Avatar for Silvershaft

Hey! I am making little map editor for my game, I got a textbox where I from the map with numbers and program writes them to bytes so my game can read them, but my problem is how can I read character by character from the textbox?

Software Development
Member Avatar for Vorac
0
150
Member Avatar for Nandomo

I am doing Gui's on Netbeans and am writing a program that sells flower ornaments and such. I have everything added to an arraylist. But when it comes to showing, I am on another tab and need to pass the arraylist to that method for display, any help? Link me …

Software Development gui java
Member Avatar for Zaad
0
182

The End.