43,549 Solved Topics
Remove Filter ![]() | |
Hey hey ..I've got stucked onto another one ... So, not sure how to explain this 1 but I can give an example ... When input = 1 - expected result is a string = "a b c d e f g h i j k l m n o … | |
Hey guys, I've got stucked on something here ... so to explain it here is an example. Let's say I have a string "aa a i". My idea is to get a result that is "aA A I". -> this is a challenge on Codehunt and I got stucked on … | |
Hey guys, I am making something that it takes a char, then it sums it with 5 and returns the new char according to the ASCII table, for example input is 'a' , then output will be 'f'. This code is doing it somewhat .. public static String Puzzle(String s) … | |
I keep getting coredumps when i run this function. void readUser(int uid) ///Reads users from data directory { std::stringstream fileName; fileName << "./data/" << uid << ".dat"; user myUser; std::cout << "USERNAME:" << myUser.name << "\n UID:" << myUser.uid; ///Reads data from file FILE* dat = fopen(fileName.str().c_str(),"rb"); fread(&myUser, sizeof(user), 1, … Software Development c++ coldfusion github | |
Hi, I already have an excel file (MyXL.xls) and a Visual Basic (Form1.frm) with a command button. Now, I want to write a code for the Visual Basic so that when I click on the command button, the excel file will be opened. Any help is significant to me! Thank … Software Development visual-basic | |
I'm reading my C++ book and I've come to a chapter on structures and unions. The book has tried to explain the difference but I'm not getting it's explanation. Playing with the structure examples in the book reminds me of accessing attributes to a python Class but apart from that, … Software Development c++ | |
I am taking my very first programming class ad kind of stump on the problem mention in this post.. In coding I only got so far as what shows here.... 2. Write Python statements corresponding to the following: a. Assign to variable flowers a list containing strings 'rose', 'bougainvillea', 'yucca', … Software Development python | |
Hey everybody, As of this moment i'm trying to work out how to approach a state design. I've come across Source Makers' site [http://sourcemaking.com/design_patterns/state/cpp/1](http://sourcemaking.com/design_patterns/state/cpp/1) and am testing out the example. The program works fine when it's all in 1 file, although i had to change some stuff in main, but … Software Development c++ oop web-design | |
Hi! i am writing a program in which i am reading a text file named "studentinfo". I have made a notepad file as "studentinfo" and then wrote a program to read this file. but there is an error occuring : " invalid operand of types 'char[20]'and '<unknown type>' to binary … Software Development c++ file-system | |
Hello Daniweb, So, I am currently working on a simple download time estimator program using JOptionPane and some loops. I have some beginning code and wanted to check how it is working, only it seems I messed up something and am stuck in my loop when I run it. I … Software Development file-system java java-swing | |
Hi, I have an Item class, how can I make my Item object be composed of more Item objects? Say I have a gun and its composed of more items like bullet and magazine, how can i make it do that? /*Item.h handles the item in game*/ #ifndef ITEM_H #define … Software Development c++ | |
I am trying to make a simple calculator, unfortunately, it isn't going so well. Any ideas on how to make it simple? if gamemode=1 then {If gamemode 1 has been chosen} begin clrscr; title; writeln ('Welcome to Calculator'); writeln; writeln ('To begin, press <Enter>'); readln; clrscr; title; writeln ('Choose which … Software Development pascal | |
Hi! I want to display a table in the Local Report using SQL Connection. Parameters will be user-defined. Example. sqlSearch = "SELECT * FROM shipment WHERE " & port & " BETWEEN @datePerformedFrom AND @datePerformedTo ORDER BY recno DESC" `@datePerformedFrom` and `@datePerformedTo` will be supplied by the user. Please help … Software Development vb.net | |
Is the a model folder and file structure to follow if I wanted to build java projects in eclipse? | |
I have a couple java apps that run good in netbeans and in eclipse yet when I compile on the command line during the build.xml they all get these 100 errors. The list looks daunting but they are all dealing with joda time. Not sure what is going on. I … Software Development java java-netbeans | |
Hi! The for loop works and it reads the value of `recno()`. However, the sql code itself is being executed once only. Is there any tweak I need to do for DB2 iSeries codes? For k = 0 To recno.Length - 1 sqlUpdate = "UPDATE shipment SET status=@status WHERE recno=@recno" … Software Development vb.net | |
Hello to all frndz! i want to write a program in which i have stored some integer elements in an array and i want that my program searches for the largest integer and displays it. for example if i have some integers in my array like 23, 38, 81, 12. … Software Development c++ | |
Hi All, I'm working on a script which has a primary function to look for jpg files. I can get it to work if the folder path is just my desktop but if I try the start of the path to be C:\ it errors out. Right now the error … Software Development shell-scripting vbscript | |
Sup everyone, Does anyone have any recommended tutorials/sites for Hash maps? I'm planning to use it to create and link "locations" in a basic text-based game but i've looked around and there seems to be a lot of description on hashmaps but not much tutorial/examples for them. Any sort of … Software Development c++ | |
Description: You are to develop a program that prints out the multiplication or addition table given the users start and end range and type of table. The program will make use of 2D arrays to calculate the table. The program will make use of the System.out.printf() method to allow formatted … Software Development java | |
Hi i want to display version information on my MDI form text Below code displays "1.0.0.0" it doesnot display rivision no `Me.Text = System.Windows.Forms.Application.ProductVersion` how can i display version revision ? thanks | |
Hi. I am making a really simple program to refresh my knowledge in java (which is obviously needed). When I click the screen, I want a bullet to appear in the center and move towards the point I clicked. Right now, when I click on the left half the bullet … Software Development java java-swing | |
Can someone post an example of:importing a .properties sheet,and the basics of what needs to be in the file?also,along with the baseline . Dir is it possile to also reference a a system environments variable that I created to reference the path to my eclipse workspace? Software Development xml | |
I would like to import a netbeans project with dependencies into eclipse. Is there a standard procedure to do this? Software Development | |
I'm reading 'C++ Programming in easy steps' and the program the book has given me will not compile. Compile line -> `g++ -g -Wall "${ARG}" -o "${ARG:: -4}" &&` ARG is command line argument 1. object.cpp:7:5: error: ‘string’ does not name a type string color; ^ object.cpp:14:19: error: ‘string’ has … Software Development c++ | |
![]() | Greetings everybody, I have been trying to convert UTC time into local time. Using ctime library, time_t, gmtime etc. But I am having nothing. When I searched the web, I saw nothing but examples with this library... I would like to ask you how could I convert UTC, a double … Software Development c++ ![]() |
I'm trying to use this code for a fibonocci sequence where I'm setting the starting numbers as b= and c=. What I'd like to do though is have it stop after so many numbers are added together, in this case it would be 53rd (a=53). I've tried a 'for i … Software Development python | |
how do I create an email with VB? when we click the button, type in all the data we sent to the email address we are headed Software Development email visual-basic | |
hello i am doing my assignment on simple calculator in java.Now I want to handle exceptions in it. so i need some information about exception for exemple a user enter any expression like `(10+23+56-55)` it is corrent formate but when the user enter wrong formate like `(20++56//5)` i mean operator … Software Development java | |
Hi, If I have a sentence like this: "I now have a total of % yellow bananas!" but I need it to change the number 2 to a 3, print, then a 4, print, etc until it reaches a set number like 10, how can I go about that? sentence … Software Development python | |
Hello: I am practicing with some existing code from the book, but when I go to compile this code I get an error on line 4: .....cpp(4) : fatal error C1083: Cannot open include file: 'mystack.h': No such file or directory [CODE]#include <iostream> #include <iomanip> #include <fstream> #include "mystack.h"[/CODE] Any … Software Development c++ | |
How can I remove the selection triangle in the rowheader of a DataGridView? I looked here, I googled, MSDN etc. Perhaps I overlooked it on how to do it because it is such a huge class. The only thing I have right now is the [B]ShowEditingIcon [/B]property. When set to … Software Development | |
![]() | Try DoInsertQuery("If Not Exists(" & _ "SELECT * FROM tblSchoolYear " & _ "WHERE schoolYear = 'SY " & Trim(txtAddSchoolFrom.Text) & "-" & Trim(txtAddSchoolTo.Text) & "')" & _ "INSERT into [tblSchoolYear] ([schoolYear]) VALUES ('SY " & Trim(txtAddSchoolFrom.Text) & "-" & Trim(txtAddSchoolTo.Text) & "')") Catch ex As Exception MsgBox(ex.Message) End Try … ![]() |
Hey guys, I'm interested in learning about simple multithreading in C++ for Windows. Does anyone have any reccommended tutorials/links thats quite good? Software Development c++ multithreading seo | |
Hi, I am trying to find 2nd largest number that given input of numbers. The question is actually consider that you enter 5 number : 60, 70, 30, 40, 55 randomly -the order does not matter- my function should find 2nd largest number and return it. I am trying but … | |
Just need some help with java Math.max and Math.min when user inputs random numbers. Software Development java | |
Hi All, I'm using Tomcat 7 with APR. I have HttpServletRequest from which I get client certificate. X509Certificate[] clientCertificates = (X509Certificate[]) req.getAttribute("javax.servlet.request.X509Certificate"); * when I do full SSL handshake, clientCertificates are returned correctly, * when I do Session identificator handshake, clientCertificates are returned correctly too, * but when is TLS … | |
Hello, i try to develop some application for inventory and transaction using VB.Net with database access i have a problem with query result, it looks like not using newest database when application already run. for example : i have MS access table like this ID CustomerName 1 John 2 Doe … | |
I have a form where the user can select an image (via a file dialogue) of any size which is then previewed in a pictureBox sized at 150px by 150px with the sizeMode of the pictureBox set to zoom any space that is then not occupied by the image is … | |
I have been working on a project with selenium 2 webdriver for a few weeks. I got to a milestone and decided to compile my project in release mode and test the executable. Thing is, it crashes if I try to run it from the release folder (or anywhere else … Software Development | |
Hi, I want to convert my word file to pdf file in vb6. source code will be appreciated. so far, i have tried with below code also. Private Sub Convert_WordDoc_to_PDF(DocPath As String, sDestsPDFFile As String) 'Dim worddoc As New Word.Application Dim worddoc As Object Set worddoc = CreateObject("Word.Application") Dim x … Software Development file-system open-source pdf visual-basic | |
Hi there, i am a novice coder and i'm trying to comprehend the addhandler function. on my current form, i have two pictureboxes, that i am trying to use in an addhandler with a loop, so when they are highlighted, the sender will change image. Public Class Form1 Dim i … Software Development vb.net | |
I am working with dynamic arrays which have been created using **<vector>**. For convenience, I have created a typedef : typedef vector<double> C1DArray; In the main program, several variables are created using this definition which, at the moment, means working with arrays of size 30. main() { . . . … Software Development c++ | |
any tutorial for insert data in mysql with c language | |
Hey guys, I was just looking into LinkedList and I came accross couple of methods. I quickly made a linkedlist and added numbers from 0 to 9 in the list then tried different methods such as pop poll, removeFirst and they all returned the same answer from 0 to 9. … Software Development java | |
Define a function string sort(string s) that returns a string with the same characters as s, but arranged in ascending order, according to ascii value . For example sort("hello") will return the string "ehllo". Notice that the function returns a different string from the original argument, since s is not … | |
Hi all, I'm working on my python script as I'm pulling the data from the sqlite3 database. I'm trying to convert the string object to datetime object, but I have got a problem with the code as I get the error when I'm trying convert from the string object to … Software Development python | |
Write a function int findLast(string words[], int numWords, string target) that returns the index of the last occurence of target in words or -1 if there is no occurrence. Remember: you can compare string objects using ==, these are NOT C-strings ! Here is my solution: int findLast(string words[], int … Software Development c++ |
The End.