43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for daino

Heyall. I'm trying to use the sqlite3_exec function and am having trouble with the callback feature. I've placed my code below. I realise the callback function provides and argument void *data and the sqlite3_exec function provides a const char *data variable. That is where I'm getting the error. I've searched …

Software Development c++
Member Avatar for Ancient Dragon
0
823
Member Avatar for marnun

It seems I don't understand completely reading from and into files, line by line. Here is my code that is supposed to read lines of two file, into string variables, I assume, and then write them into third file: *line of first file line of second file .... so on …

Software Development c++
Member Avatar for marnun
0
280
Member Avatar for sheikh zohaib

hey all i am new to all this languages and Computer sciences so if you help me i am trying to write a code and its constantly giving me errors here is the code at line 10 , 102 , 115 tell me how to fix it.. waiting... #include<iostream.h> void …

Software Development c++
Member Avatar for sheikh zohaib
0
179
Member Avatar for stharmon

Hi All, I am sed and awk illiterate and needed some assistance. I would like to write a script that will have sed replace all spaces with \space. For example. Program Files would be... Program\ Files I can figure out how to replace the space with a backslash, however, when …

Software Development shell-scripting
Member Avatar for wickedjargon
0
233
Member Avatar for pilotkid424

I am trying to create a function which adds an array to another array and replaces the data in the 1st array with the new data. For example, A=A+B. However, when I write my code as below, I get the error C2676:binary '[' : 'const Matrix' does not define this …

Software Development c++ mathematics
Member Avatar for pilotkid424
0
226
Member Avatar for rachelmorg

hey this sounds like a really simple question to me but I can't seem to figure out how to do it! My code so far is public class numbers { public static void main(String[] args) { final int N = (args.length); for (int i = 0; i < N; i++) …

Software Development java
Member Avatar for rachelmorg
0
3K
Member Avatar for pars99

Is it possible to have a piece of C++ code display a picture and how? I want to display something for my Uncle's employees at a conference were holding with them and I don't know how to display pictures, if there is a way.

Software Development c++
Member Avatar for deceptikon
0
202
Member Avatar for arcticman452

My program compiles but when I fun it I cannot get the city from the JComboBox to show in my JOptionPane. It shows up as "null" and when I click the clear button, nothing happens. I'm not sure how to fix these two problems. Here is my code: import java.io.*; …

Software Development java java-swing
Member Avatar for radhakrishna.p
0
162
Member Avatar for CHOCHOCHO

For example if my string is "^^^^^^Big^^^Bob", i want to turn it in to "Big^Bob"

Software Development c++
Member Avatar for Lucaci Andrew
0
373
Member Avatar for hasan101002

why the code is not running? #include<iostream> #include<string.h> using namespace std; class person { char name[20]; float age; public: person(char *s,float a) { strcpy(name,s); age=a; } person & person::greater(person &x) { if(x.age>=age) return x; else return *this; } void display(void) { cout<<"Name:"<<name<<"\n"<<"Age:"<<age<<"\n"; } int main() { person P1("John",37.50),P2("Ahmed",29.0),P3("Hebber",40.25); person P('\0',o); …

Software Development c++
Member Avatar for hasan101002
0
405
Member Avatar for myk45

Hello All, i am trying to tidy-up some code and i'm not completely sure how this can be done. What i have is this: (This is some sort of psuedocode that i just wrote to explain the problem, not proper code) void foo1(typeofList1 list1) { for (i = 0; i …

Software Development c++
Member Avatar for myk45
0
192
Member Avatar for ImZick

Help i need to import excel to my listview using adodb or oledb but i dont know how? in vb6 i use adodb and the code is like here Dim lngI as Long Dim lvItem as listItem *'adodb connection goes here...* *'then this code will import all excel data in …

Software Development listview microsoft-office vb.net
Member Avatar for ImZick
0
2K
Member Avatar for WDrago

All, I am working on a project in C# with Visual studio 10 (on WinXP 32bit with .NET 4.0) and I need to use SQLite. I am totally confused by the SQLite installation process. [This FAQ](http://system.data.sqlite.org/index.html/doc/trunk/www/faq.wiki#q8) says that there is no need to install SQLite, but the [instructions given here](http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki) …

Software Development sqlite visual-studio
Member Avatar for JOSheaIV
0
335
Member Avatar for RobRTaylor

Frusterated... Should be simple. I have several forms that all do the same thing and I re-use the same basic code in all of them. But this one form is pitching a fit. I have a DataGridView that is able to read data I have saved in a local DB. …

Software Development vb.net
Member Avatar for john.knapp
0
2K
Member Avatar for Violet_82

Hi there, I am trying to find an explanation for what the `findWithinHorizon()` does. I landed on this page http://docs.oracle.com/javase/7/docs/api/ and I know that the method is part of the `java.util.Scanner` class (isn't it?). How do I find it in the page above please? thanks

Software Development api java oracle
Member Avatar for Violet_82
0
248
Member Avatar for visweswaran28

Hi, I have a DSD file. I am reading DSD file content into XMLdocument, after some modification and trying to save that entire content in same exising DSD file. No Error / Exception has occured. But the DSD file is updated. (FYI, this is running in Win 7) Please suggest …

Software Development xml
Member Avatar for tinstaafl
0
111
Member Avatar for vishalonne

Hello I am just testing how to get the fatorial of a number by using MACRO - Here is my wrong code - #include <stdio.h> #include <conio.h> #define FAC(n) for(typeof(n) i=2; i<=n; i++){f *= i} void main() { int i=5; int j=FAC(i); printf("%d",j); getch(); } And these are error Error …

Software Development c
Member Avatar for Tumlee
0
137
Member Avatar for marnun

We started learning Heap property in class. Here is an exercise on the topic: > isHeap > Write the definition of a function named isHeap that receives three arguments as follows: > x : an array of ints > i : a valid index into the array x > n …

Software Development c++
Member Avatar for marnun
0
240
Member Avatar for jeansantos

The idea would be to read the items of Listbox1 (one-by-one) and run a query (Listbox1 ->Field1) and display the result (Field2 -> Listbox3) in the same Listbox3. For some reason, only appears in Listbox3 the result of the last item of Listbox1. Dim con As New OleDb.OleDbConnection …

Software Development open-source vb.net
Member Avatar for jeansantos
0
134
Member Avatar for milan2011

Hi, i am trying to make a dictionary which takes an english word and its meaning in spanish in the following format from an input file. <english>:<spanish> i also need to add words manually,remove,search,print ,and store new tree in the same file by updating the file. my up() and load() …

Software Development c++ ios
Member Avatar for jrobertomar
0
2K
Member Avatar for mrbungle

In my app, I have a text box that takes the text and transfers it to w Word doc for printing. It does this with the bookmark feature in Word. On the Word doc, I only have "X" amount of space. The bookmark in Word will auto size and fill …

Software Development vb.net
Member Avatar for ponkhiraj
0
587
Member Avatar for hanvyj

Hi, I'm trying and failing to get this CSV reading library to work. I started making a question on accessing the data in CsvReader, which I could see in the debugger but couldn't work out how to access via code. However, I'm getting annother problem now which I wasn't before, …

Software Development
Member Avatar for hanvyj
0
672
Member Avatar for siaosituimoloaublood

i am in need of help with this homework. The instructions are as followed: Package Newton's method for approximating square roots in a function named newton. This function expects the input number as an argument and returns the estimate of its square root. The script should also include a main …

Software Development python
Member Avatar for TrustyTony
0
5K
Member Avatar for johnathan.millsap

#Guess the number game by Johnathan Millsap import random guessesTaken = 0 print('Hello! What is your name?') myName = input() number = random.randint(1, 100) print('Well, ' + myName + ', I am thinking of a number between 1 and 100.') print('Try to guess it!.') while guessesTaken <= 3: print('Take a …

Software Development python
Member Avatar for vegaseat
1
1K
Member Avatar for new_developer

In the following program i can't access balance value of parent class in the child class. If the child class can access all attributes and methods of parent class, then why i am getting 0 value when i access parent class balance. Anyone please help, my programming understanding is very …

Software Development c++
Member Avatar for Lerner
0
294
Member Avatar for Begginnerdev

I have a question. Does anyone know of a way to scan an image into vb.net, and then save that image as a multipage tiff? I would need a redistributable. I have been looking for a library that will do this, but every one I have found does not meet …

Software Development vb.net
Member Avatar for Begginnerdev
0
3K
Member Avatar for Nandomo

I have this assignment for my java class, it runs fine, but the professor wants us to incorporate a private gradeExam method, which I don't know how it work fit, since I cannot call it from the DriverTest class which contains my main. package project6; /* A demonstration of how …

Software Development java
Member Avatar for Nandomo
0
200
Member Avatar for marnun

Next exercise from codeLab that I am getting logical error indication for. What am I missing? Thanks in advance. > You are given an array x of string elements along with an int variable n that contains the number of elements in the array. You are also given a string …

Software Development c++
Member Avatar for marnun
0
2K
Member Avatar for kingrev

Hi everyone I hope you guys could give me a hand with this project, I am not an expert of c++ and i am really struggling with this. here is the problem: I been asked to make a programn as follows: A new railway journey planner is required to help …

Software Development c++ ios
Member Avatar for deceptikon
0
260
Member Avatar for tamas.vincze.714

I have a course (reverse engineering) in uni and i have a homework. I got a .obj file (which was compiled with visual studio 2008), and i have to disassemble it, figure out the control structure and call it in a little c program. I used IDA decompiler, here is …

Software Development assembly engineering visual-studio
Member Avatar for pritaeas
0
529
Member Avatar for yousafc#

How Can Transferdata from RitchTextBox to Label with all Formats. i.e RitchTextBox's Text Color ,Font,FontStyle

Software Development
Member Avatar for yousafc#
0
178
Member Avatar for marnun

Hi, another codelab sorting exercise I am having problem with. any advice is appreciated. ---------------------- > You are given an array x of int elements along with an int variable n that contains the number of elements in the array. There are no duplicates in this array. You are also …

Software Development c++
Member Avatar for marnun
0
1K
Member Avatar for shaneos

I posted this somewhere else but I think it was deleted so I'll post it as a new question... Here's my problem; I've been developing a packet sniffer using the Jpcap library from http://netresearch.ics.uci.edu/ . I was developing using the windows version of the java library, but now I realize …

Software Development java
Member Avatar for shaneos
0
496
Member Avatar for Violet_82

Hi there, as one of my first programs in java, I thought I will do a simple (!) lottery program...needless to say it doesn't compile, and after looking at it for quite awhile trying to unsuccessfully spot the error (I am not sure how to debug in netbeans, any advice …

Software Development java java-netbeans
Member Avatar for Violet_82
0
13K
Member Avatar for myadav

Hi All... I am new to java, I am facing problem... Problem: 1) I want to create a ArrayList <String> and add Strings into it. problem: 2) I want to compare two Array List elements . their size and contents (strings type) which may be stored in any order. For …

Software Development java
Member Avatar for myadav
0
372
Member Avatar for hanvyj

Hi, I'm trying to get a bunch of files off an ftp server. I connect fine: batch script: ftp -v -s:"C:\Documents and Settings\xxxx\Desktop\download.txt" xx.xx.xx.xx and download.txt: xxxx xxxx lcd "D:\Data\FileDump" cd "backup" mget *.* It runs fine until it gets to the mget *.* and then it just outputs all …

Software Development shell-scripting
Member Avatar for hanvyj
0
140
Member Avatar for arcticman452

I have the main part of my code done but I don'T know if I should use an action listener or an event listener for my JComboBox. I have 4 JComboBoxes and only need to retrieve the info from my vehicleBox and fuelBox at this point. I need to take …

Software Development java java-swing programming-construct
Member Avatar for jalpesh_007
0
203
Member Avatar for sym366

trying to impleament a checkWin function that checks all possible wins for a player, but I'm notreally sure how to do it. from connect4cell2 import Connect4Cells from Tkinter import * class Connect4Frame(object): COLORS = ["White", "Red", "Yellow"] def __init__(self,rows = 6, columns = 7): self.cells = Connect4Cells(rows, columns, 3) self.rows …

Software Development gui python tkinter
Member Avatar for sym366
0
1K
Member Avatar for GeneClaude

I won't be asking for a source code yet. What I need to figure out is the process of a certain Math problem with the equation that seemed to be impossible to be converted to source code. Here it goes: **A certain waveform is 0 volts for time less than …

Software Development c++ engineering mathematics
Member Avatar for Ancient Dragon
0
465
Member Avatar for VIPER5646

Hi all I'm trying to shade a cell based on a date difference between column 7 & 8. It seams to work accept column 8 seams to be the one being shaded instead of column 7. I have googled but can't find a solution to have the calculatin being made …

Software Development vb.net
Member Avatar for john.knapp
0
318
Member Avatar for flopoe

Hello everyone; I am new to Python. How can we explain this code step by step. I couldn't understand some parts. myList=[43,21,12,80,3,2,35] end=len(myList)-1 while (end!=-1): swapped=-1 for i in range(0,end): if myList[i]>myList[i+1]: temp=myList[i] myList[i]=myList[i+1] myList[i+1]=temp swapped=i end=swapped print(myList)

Software Development python
Member Avatar for vegaseat
1
984
Member Avatar for inaxassan

Consider a hospital scenario. Design classes for: Patients. The class might have fields like unique ID for the patient, name, male or female, age, address, phone number, date of birth, height, and weight. I need help with this problem

Software Development python
Member Avatar for vegaseat
0
2K
Member Avatar for inaxassan

Design a schedule class for classes that a student takes during a semester? This is not a homework `class schedule: def classes(self, course, points, level,): self.course= course self.points = points self.level = level def get_course(self): return course.name` I am stock here

Software Development python
Member Avatar for vegaseat
-1
756
Member Avatar for darkeclipse8

My professor asks me to program the Game Of Life with some required and I find unnecessary classes. But anyhow as I am coding and running the program midway I run into this problem void Life::setup_grid() { cout << "Size of Grid: " << grid.size() << endl; cout << "rows: …

Software Development c++ gaming open-source
Member Avatar for NathanOliver
0
409
Member Avatar for slasel

Can I change the font size in only one widget and keep it the same in the root window? if yes then how please?

Software Development python
Member Avatar for vegaseat
0
243
Member Avatar for szejna

Hello, I am working on a homework problem that has to do with inheritance, I thought that as long as the class interface and implementation files for the base classes the derived would work with the include statement: #include "salariedemployee.h" and the line class administrator : public salaried employee. I …

Software Development c++ oop
Member Avatar for szejna
0
266
Member Avatar for arcticman452

I cannot get this to show up when I run it and I can't figure out whats wrong. import java.applet.*; import java.awt.*; import java.awt.event.*; import java.text.*; import javax.swing.*; public class TravelCostEstimator extends Frame implements ActionListener,ItemListener { //This part defines how the program will look Panel partOnePanel = new Panel(); Label …

Software Development java java-swing
Member Avatar for arcticman452
0
211
Member Avatar for Sevyt

For whatever reason beyond my understanding did my DB start this problem. I got 2 tables in my database. 1 dealing with personal info 1 with dates and time To keep my startup form empty I have the first row empty in both tables. But for some reason after I …

Software Development sql vb.net
Member Avatar for john.knapp
0
133
Member Avatar for nitin1

actually, I just want the idea here. I have a server, a client . client will request to display the files names in its directory(server's current directory). server will send the list. my thinking : system command will be used here. when clinet enter "-ls" then server will have system() …

Software Development c file-system
Member Avatar for L7Sqr
0
162
Member Avatar for inaxassan

Design a class called "sentence" that have a constructor that takes a string representing the sentence as input. The class should have the following methods: get_first_word get_all_words replace(index, new_word) Change a word at a particular index to "new_word." E.g. If the sentence is " I'm going back." and set_word_at_index (2, …

Software Development python
Member Avatar for sneekula
0
1K

The End.