132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Sandro_1

How can I sum only the first and the last item in an array list? ex.: list = (300, 450, 150, 800, ...)

Software Development java
Member Avatar for Schol-R-LEA
0
285
Member Avatar for Michael_35

Hi All,I am coidng a movie database using vb.ebt (VS 2013) and using access (2013) I am trying to code my save button, but every time i run the program and try to save my data I get the below error An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in System.Data.dll …

Software Development microsoft-access vb.net
Member Avatar for Reverend Jim
0
359
Member Avatar for VengefulToast

Hi, I have made a class and have an overloaded ostream operator method in it... However it tells me: "overloaded 'operator<<' must be a binary operator (has 3 parameters)." Can someone tell me how to fix this? Thank you! I have included some of my code: class Element { private: …

Software Development c++
Member Avatar for Schol-R-LEA
0
494
Member Avatar for samer.aboufakher.3

#include<iostream> using namespace std; class product { private: int code; char name[20]; double price; int instock; double soldperyear[12]; public: product(int,char[],double,int); void setproduct(int c , char n[],double p,int i) { setcode(c); setname(n); setprice(p); setinstock(i); } void peryear(int i) { for ( i=1;i<=12;i++) soldperyear[i]=0;} void setcode(int c) { if(c>=2500&&c<=2750) code=c; else code=2500; …

Software Development
Member Avatar for rubberman
0
190
Member Avatar for Syed Ammar

Q:Write a program that reads characters from the user until a * is entered. Your program displays the count of capital case letters, small case letters, vowels (capital or small) and digits. (Problem) when user enter input char more than 1 digit as(gggg*) then {cout<<"\nPlease Enter Input\n";} repeats 4 times …

Software Development c++
Member Avatar for rubberman
0
206
Member Avatar for Shalu.23

how to dynamically insert keys into an existing python dictionary, input is the .json file and the output in a .csv file. this is the input in the .json file [{"FIRSTNAME":"barc","EMAIL":"jahg@jh.com","ADDRESS":"gyuyj"}, {"FIRSTNAME":"rth","EMAIL":"tht@thuyj.com","ADDRESS":"ytju"}, {"FIRSTNAME":"trhy","EMAIL":"klo@pyu.com","ADDRESS":"trght"}, {"FIRSTNAME":"ghy","EMAIL":"ytj@uki.com","ADDRESS":"ukyk"}] output is required as .csv file(in each row its specified columns should be added) "FIRSTNAME":"barc","rth","trhy","ghy" "EMAIL":"jahg@jh.com","tht@thuyj.com","klo@pyu.com","ytj@uki.com" …

Software Development json python
Member Avatar for vegaseat
0
257
Member Avatar for DS9596

When I run it, it prints out but the largest and lowest frequency's don't come out correctly? #include <ctime> #include <iostream> #include <iomanip> #include <array> using namespace std; void DisplayNum(int *x); void DisplayData(int *x); void FindMaxMin(int *x); struct NUM { int n; int freq; }; NUM ALL[10]; int main() { …

Software Development c++
Member Avatar for tinstaafl
0
163
Member Avatar for miazara

Write a program that calculates how much a person would earn over a period of time if his or her salary is one ringgit the first day and two ringgit the second day, and continues to double each day. The program should ask the user for the number of days. …

Software Development c++
Member Avatar for Schol-R-LEA
0
175
Member Avatar for Suzie999

I'm getting an excel range to an array. From my search it was clear I need to use object array. object[,] saRet; oRng = oSheet.UsedRange; saRet = (System.Object[,])oRng.get_Value(Type.Missing); This works fine, but what I really need is for that array to be string. So how might I cast object[,] to …

Software Development microsoft-office
Member Avatar for Suzie999
0
7K
Member Avatar for Rimi_1

# Heading Here # Im Getting declaration syntax error in void func2 (intc, intd), need help fixing it, and im new to this so i have no idea whats going on.. #include <stdio.h> #include <conio.h> void func1 (int a, int b) void func2 (int c, int d) void main (void) …

Software Development c++
Member Avatar for Moschops
0
588
Member Avatar for kubi081

I need to play video files which are located under client pc. For this I need to use embedded http server which will be setup on client. [embedded http web server is taken from here](http://www.codeproject.com/Articles/20445/C-Customizable-Embedded-HTTPServer?msg=4370868#xx4370868xx)If there is more advanced one I would like to learn. I'm using jwplayer to play …

Software Development asp.net video web-server
Member Avatar for kubi081
0
280
Member Avatar for wilsonchama

Hi guys, I am a new member to the group. I am trying to build an inventory management application using VB.net 2008 express edtion and MS access 2007. I have managed to load the Combo box (cmID) on form(frmSales) with product Ids from tblProducts. I have two textboxes on the …

Member Avatar for wilsonchama
0
210
Member Avatar for nitin1

I have come across one question: find the size of two 2-D arrays when double pointers are given for them.Then find, if we can muliply these two matrices(those mathematics rules). finally we have to multiply the matrices. I have asked this question(small part of this question) earlier also. someone answered …

Software Development c mathematics
Member Avatar for Moschops
0
192
Member Avatar for Doogledude123

So, I've written a Custom Binary Format outline but I'm not sure how to translate it to code. I was looking for a few tips on where to get started? Here's my outline. MAPDATA { signature // U24 0x4D, 0x41, 0x50 (MAP) version // U8 0x01 width // U16 (MAX …

Software Development java
Member Avatar for JamesCherrill
0
854
Member Avatar for Genessis_1

Hi, I am new to google mock so sorry if you think this is an easy question. I am currently testing codes for a project. There are async calls and i am having a hard time checking the sequence of function calls. I cannot share the codes so I'll just …

Software Development c++ google seo
0
267
Member Avatar for Mahantesh_1

Count Equal Numbers in Text box How ? Hey guys, I want to Know is there any way to Count Similar Numbers which entered in single textbox in VB6 as a example; i have textbox named txt1 in that user can type any value (2,12,23,2,34,12,2,2,23,54,12....) (separate the values by adding …

Software Development visual-basic
Member Avatar for Reverend Jim
0
370
Member Avatar for Nikki_1

Write the nested loop that causes this output below: *It can only use one if statement ( I'm having issues solving it I never solved a nested loop like this one before seriously need some input on how to solve this program) Here is a link the proper image of …

Software Development
Member Avatar for overwraith
0
420
Member Avatar for Mamed

Hello , I've been trying to figure out this code and determine what's causing the miscalculation on it. Everything seems right for calculation , I don't get why there is if else statement for output screen. This is just a practice question for myself. The High Fashion Department Store wants …

Software Development c++ pay-per-click
Member Avatar for Schol-R-LEA
0
522
Member Avatar for zrd0808

This is a homework problem; however I just want some direction. I have to write a module graph.cpp that implements djikstra's algorithm. so far i am at the reading in module and am trying to make an array of structures. here is the code. [code=c] // Zachary Dain // CSCI …

Software Development c++
Member Avatar for Schol-R-LEA
0
445
Member Avatar for DeanMSands3

Hi, Guys. I'm calculating the correlation coefficient between two HashMaps of Stock Prices keyed on Dates. However, the Dates do not always line up perfectly. So, I need to line-up the two HashMaps by their Keys. Thus far, I'm creating two ArrayLists of the Dates, doing retainAll between them and …

Software Development java
Member Avatar for DeanMSands3
0
2K
Member Avatar for G_S

Hello everyone. I am currently making some database connection modules in Python inb order to learn Python's approach to OOP and also to lear how to connect to databases via Python. I successfully made a package with modules for postgres, mysql, sqlite3, and MongoDB. The classes simply connect, disconnect and …

Software Development mongodb python
Member Avatar for Gribouillis
0
524
Member Avatar for Casey890

Okay I have an array but how do I make it descending? I have it able to print out 1, 2, 3 but would rather have it do 1 2 3. code below #include <iostream> //Initalize Iostream using namespace std; void printarray(int arg[], int length) { //Print array function for …

Software Development c++
Member Avatar for Casey890
0
156
Member Avatar for samkri

I have class within class public class List { public int RecordCount { get; set; } public IEnumerable<ServiceElementItem> ServiceElement { get; set; } } public class ServiceElementItem { public int ServiceElementId { get; set; } public string ServiceElementBusinessId { get; set; } public string Description { get; set; } public …

Software Development c c# c++
Member Avatar for TekknoDraykko
0
3K
Member Avatar for Rohith_1

i need to connect my PC to Micro controller through Bluetooth,to make it simple my PC will continuously send string to Micro controller depending upon string micro controller performs task ,can this post will be useful to my problem else can u please guide me? Thanks in advance

Software Development java
Member Avatar for peter_budo
0
212
Member Avatar for AQ

Hey guys ..!! so today I was solving another problem involving a loop in it and i'm not sure exactly how to apply that condition to repeat it unless the terminating condition becomes true. I tried to do it on my own but its not working. can anyone of you …

Software Development c++
Member Avatar for NathanOliver
0
250
Member Avatar for Leonard_3

Hello my name is Leonard Norwood Jr. I'm doing a little Poker thing right now on my own time for practice, but I have a heck of a problem. I'm making two classes called Poker.java and PlayPokerDriver.java right now, and I'm almost finished by somewhere between initializing the decks I …

Software Development java
Member Avatar for JamesCherrill
0
333
Member Avatar for akane.mikazuki

This is supposed to be a Rock-Paper-Scissors game. Everything's just going fine until I inserted graphics. What I was supposed to do is to display the figures I've poorly made whenever a choice is made. I can't really explain it so please take a look at my code, thanks (I'm …

Software Development c++
Member Avatar for Schol-R-LEA
0
342
Member Avatar for Gà_1

**Problems 1: Spiral matrix - Advanced** Source of the problem: [Here (not in English)](http://www.spoj.com/PTIT/problems/BCACM11B/) Spiral matrix is formed by filling number 1 in 1st row 1st column, after that, filling with increasing number by clockwise, example: 1 2 3 4 5 16 17 18 19 6 15 24 25 20 …

Software Development c linked-list matrix-multiplication
Member Avatar for tien.nguyen.3532507
0
378
Member Avatar for Darth Vader

Hi, I wonder if it is possible to put a "Twitter Follow Button" on a windows form application? Usually I have this code on a ASP.net webform. <a href="https://twitter.com/_TwitterName" class="twitter-follow-button" data-show-count="false" data-show-screen-name="false"></a><script> !function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (!d.getElementById(id)) { js = d.createElement(s); js.id = …

Software Development gui social-media
Member Avatar for Darth Vader
0
376
Member Avatar for Bendez Thyna

can someone give me some hint on how to use a array structure in a fuction?? Thank you

Software Development c++
Member Avatar for NathanOliver
0
108
Member Avatar for anumash

I am having a confusing time with understanding arrays and variables because of this reasoning: Variables are aliases for memory locations and array name is the address of the first element of the array then why are variables not accesssed as *i whereas the first element of array is accessed …

Software Development c
Member Avatar for Schol-R-LEA
0
155
Member Avatar for Suzie999

Here is my RegEx declaration. private Regex rxPattern = new Regex("^(book-[a-z]{1}\z)"); I'm expecting it to match start of string "^" To end of string "\z" But the "z" is causing the error. I'm fairly new to RegEx and cannot find a solution, if anyone can educate me a little that …

Software Development regex
Member Avatar for DaveAmour
0
141
Member Avatar for sanketdomal

Hello Everyone Please share any complete example on protocol buffer with Java.I also need instruction to compile java code which use these protocol buffer (protobuf).

Software Development google java seo
Member Avatar for JamesCherrill
0
192
Member Avatar for kubi081

I'm using a Customizable-Embedded-HTTPServer for a project. Simply I'm calling response.SendFile(@"E:\folder\xx.mp4", "video/mp4") to play video files located at local folder. But it gives me "An existing connection was forcibly closed by the remote host" error. I've searched a lot but couldn't find a solution! using (FileStream fs = File.OpenRead(path)) { …

Software Development client-server video
Member Avatar for kubi081
0
384
Member Avatar for Russ_1

Hi, So, I'm trying to do what's presented in this Quora thread: http://www.quora.com/How-can-I-export-YouTube-comments-into-a-spreadsheet I want to know how to frame the parameters for a YouTube video's comment feed, the comment author, and the comment text itself, using =ImportXML for Google Docs. My Xpath is weak -- can't figure out the …

Software Development video xml
Member Avatar for DaveAmour
0
209
Member Avatar for gordon_1

This is the program I need to re-write and I dont understand. Sub Main() Dim array(24) As Double, i As Long array(0) = 1 For i = 1 To 24 array(i) = 2 * array(i - 1) Next i Call DisplayArray(array) End Sub Sub DisplayArray(ByVal array() As Double) Dim i …

Software Development vb.net
Member Avatar for Reverend Jim
0
136
Member Avatar for Shetty_1

Actually I have a raw data which will have the information about scan rejected files. Each rejected item will log info. in 3 elements in raw data i.e i)ScanRejected ii) ScanInitiated iii) CardSupplier. I'm trying to process this raw data and put it in XML in a formatted way. While …

Software Development xml
Member Avatar for xml_looser
0
394
Member Avatar for pww71

Title: The core of the core of the big data solutions -- Map Author: pengwenwei Email: pww71@sina.com Language: c++ Platform: Windows, linux Technology: Perfect hash algorithm Level: Advanced Title: The core of the core of the big data solutions -- Map Author: pengwenwei Email: pww71@sina.com Language: c++ Platform: Windows, linux …

Member Avatar for mike_2000_17
0
260
Member Avatar for mridul.ahuja

I came across this code of [firefly algorithm](http://en.wikipedia.org/wiki/Firefly_algorithm) and need to use it in my major. If any of you could explain the working of the functions, it would be of great help to me. Thanks in advance. #include<iostream> #include<stdio.h> #include<stdlib.h> #include<math.h> #include<time.h> #include<string.h> #include<memory.h> #defineDUMP 1 #defineMAX_FFA 1000 #defineMAX_D …

Software Development c objective-c
Member Avatar for Schol-R-LEA
0
289
Member Avatar for cjohnweb

Hello! I'm working on a program at work for a device we are building, it's a device that (basically) in real-time reads in sensors, makes decisions about said data, and performs output. I have a loop that runs, and then calculates how long to sleep, so we can get as …

Software Development motherboards-cpu-ram python redis
Member Avatar for vegaseat
0
370
Member Avatar for tgreiner

OK, I've seen this error explained at least 100 times on the net. But in every case, it seems to be an error of #including <string.h> instead of <string> or metioning string instead of std::string. But, I've done all those things. And it still does not work. By way of …

Software Development c++ ide
Member Avatar for Schol-R-LEA
0
10K
Member Avatar for ddanbe

For my own use, I'd like to develop a small Vector and a Matrix class, independent of some big libraries that exist out there. My question is: Should Vector and Matrix stay two independent entities or should I derive a Vctor frm a Matrix or a Matrix from a Vector? …

Software Development mathematics matrix-multiplication oop
Member Avatar for mike_2000_17
0
363
Member Avatar for tentrabyte

#include<iostream> #include<cstdlib> using namespace std; int main() { srand(21); cout << "Unique numbers:"; for (int x = 1; x < 10; x++){ cout << 1 + ( rand () % 20) <<endl; } system("pause>0"); return 0; } Guys this is my program. Can i ask if how can i vertical …

Software Development c++
Member Avatar for mridul.ahuja
0
198
Member Avatar for JohnMcPherson

Hello, I am trying to compare a double to be within various ranges, but the comparison is not working correctly. Rounding precision is not a concern, because if the value will match the boundaries so rarely, and it is rounding up to the higher range is acceptable. Below is the …

Software Development c
Member Avatar for JohnMcPherson
0
221
Member Avatar for ddanbe

For a small class it doesn’t matter that much, but for a bigger class I find it handy to have an oversight of all the methods at hand. That’s what I did here. One requirement is that the class file has already been compiled error free. Don’t know if my …

Software Development
Member Avatar for JOSheaIV
0
425
Member Avatar for Suzie999

I have a function that counts the commas in each item of an array of string. public int CommaCount(string[] sarray) { int count = 0; int commas = 0; for (int i = 0; i < sarray.Length; i++) { commas = sarray[i].Count(c => c == ','); if (commas > count) …

Software Development
Member Avatar for DaveAmour
0
776
Member Avatar for akane.mikazuki

I need help to display on the screen rock when user picks rock, paper when user picks paper, and scissors when user picks scissors. Thanks

Software Development c++
Member Avatar for Schol-R-LEA
0
486
Member Avatar for sabata mmoledi

how do I print all elements in an ArrayList?? this my code below. import java.util.ArrayList; /** * Write a description of class PetDatabase here. * * @author (your name) * @version (a version number or a date) */ public class PetDatabase { private String name; private String species; private int …

Software Development java
Member Avatar for stultuske
0
216
Member Avatar for ogsirus

Hi guys, I am trying to write a program which picks the closest number possible out of a dictionary. The dictionary contains 50 doubles values, and I use a random double to pick the number i want to get the closest to if that makes sense. Currently I am using …

Software Development
Member Avatar for ogsirus
0
861
Member Avatar for Jan Adi

please help me to make a knight tour code using c# form

Software Development c#
Member Avatar for Jan Adi
0
346

The End.