43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for rogelioz

Hi, I'm having a problem using GCC 3.4.2, I'm getting 2 warnings at these lines: [code] int check_format(char array[]){ int i= 0; -------->while(array[i]!='\0'&&array[i]!='\n'){ --------->if( (!isdigit(array[i])) && (array[i]!=' ') && (array[i]!='-') && (count==9 && array[i]!='X') ) program.c:50: warning: subscript has type `char' program.c:53: warning: subscript has type `char' [/code] On GCC …

Software Development c
Member Avatar for Narue
0
266
Member Avatar for Dell XPS

I have an SSTab in my project. I want after I click a command button in Tab 1(now i am in tab1 of the ss tab) to be taken to tab2! Thank you Any help appreciated

Software Development visual-basic
Member Avatar for jireh
0
110
Member Avatar for zagrijs

Hi I am new to the forums and to Python! I am having trouble displaying a text menu in the following format 1: Name 2: Name 3: Name It displays it correctly but then it gives an error message: Below is the code with output and error message. #CreateMenu.py #Create …

Software Development python
Member Avatar for zagrijs
0
111
Member Avatar for vinod_javas

hi everyone i have a very a very basic question in mind .. i wanted to discuss .. Difference Between these? String s1= new String("java") ; String s2="java" ; and also what for 2 different classes are there in garbage collection? System.gc and runtime.gc ( both are doing the same …

Software Development java
Member Avatar for vinod_javas
1
145
Member Avatar for AnjaliThukral

Can anyone help me anything related to --- how to draw 3D objects like sphere, cone, arrow, ring etc. I am new to python but know the basic language. Thanx, Anjali

Software Development python
Member Avatar for AnjaliThukral
0
298
Member Avatar for curt22

Could someone explain how to use a list view in the windows api (Like when your in windows explorer in details view). I read an article about it and searched google, but I'm still not sure how to use it could someone explain it to me. I want a simple …

Software Development api c++ google-api windows-api
Member Avatar for Ancient Dragon
-1
76
Member Avatar for Duki

Hey everyone. I need to write program that builds an object of Pizza class and then pass that object to Order class. here's my Pizza class: [code]class Pizza { public: void setCheeseToppings ( int ) ; void setPepperoniToppings ( int ) ; void setSize ( string ) ; void setType …

Software Development c++
Member Avatar for Duki
0
189
Member Avatar for bajanpoet

I need to pull the Customer numbers from this string, where IDCUST is the fieldname and the customer code is in the brackets. How would I be able to pull all the customer numbers from it and store them elsewhere? [code] (CODECURN = "BDS") AND (SWACTV=1) AND (( IDCUST = …

Software Development vb.net
Member Avatar for bajanpoet
0
111
Member Avatar for KimJack

Can anyone provide any suggestions on how to copy an ArrayList of integers to an Array? Thank you

Software Development java
Member Avatar for masijade
0
94
Member Avatar for DeathEvil

part of the code [CODE] string phone_book[11] = {"Becky Warren, 678-1223", "Joe Looney, 586-0097", "Geri Palmer, 223-8787", "Lynn Presnell, 887-1212", "Holly Gaddis, 223-8878", "Sam Wiggins, 486-0998", "Bob Kain, 586-8712", "Tim Haynes, 586-7676", "Warren Gaddis, 223-9037", "Jean James, 678-4939", "Ron Palmer, 486-2783"}; int x, index; char lookup[50], *strPtr = NULL; /********************************** …

Software Development c++
Member Avatar for DeathEvil
0
161
Member Avatar for MillStrike

Goodday people! This time I am trying to index all files of a kind from any subdirectory. To index all files from a selected directory and 1 sublevel I use this code: [code] arrayCount = 0; DirectoryInfo di = new DirectoryInfo(SourceString); FileInfo[] rgFiles = di.GetFiles("*.mp3"); foreach (FileInfo fi in rgFiles) …

Software Development
Member Avatar for MillStrike
0
123
Member Avatar for deck55

Currently I have a list that I have read from a file and it looks similar to... file = [S,D,S,D,S,D,N,S,D,S,D,N] What I was wondering is there a way to loop through the list so that I get multiple lists. For Example.... List1 = [S,D,S,D,S,D,N] List2 = [S,D,S,D,N] If someone could …

Software Development python
Member Avatar for deck55
0
93
Member Avatar for kshrini

Dear All, I'm developing an application in visual basic 6.0. I'm using Crystal Report 11 developer. I've taken Report Viewer using which I can able to view the report but PrintReport method gives error. Anybody has solution for this? Shrinivas

Software Development visual-basic
Member Avatar for jireh
0
517
Member Avatar for curt22

How can I make this print the text in the edit box when you push the button instead of "You pushed a button." I have looked all over but I can't figure it out. [CODE] #include <windows.h> #include "resource.h" HWND hWndButton; HWND hWndEditBox; HFONT hFont; /* Declare Windows procedure */ …

Software Development api c++ data-structure queue windows-api
Member Avatar for curt22
0
143
Member Avatar for thompsongunner

I am trying to use the bit fields in a useful way to create packed fields that can be sent out as packets. Let's see if my code can help explain: [code] from ctypes import * class myPacketHeader(Structure): _pack_ = 1 _fields_ = [("seqnum", c_ubyte, 8), ("is_command", c_uint, 1), ("address", …

Software Development python
Member Avatar for thompsongunner
0
3K
Member Avatar for neilyan

im trying to creat a class called Date that includes data members: a month, a day and a year (all type int). that have a constructor with three parameters to initialize the three data members. i have to use a set and a get function for each data member and …

Software Development c++
Member Avatar for neilyan
0
170
Member Avatar for daniweb2013

Hi, I want to make media player with VB. the problem is when i lunch components window, there isnt any item called Microsoft Multimedia control 6 What should i do?!

Software Development multimedia visual-basic
Member Avatar for daniweb2013
0
103
Member Avatar for KimJack

Hello all, I have a text file with columns of words Boat Car Van Sue Bird Hue Billy Don Yoe... How do I read each separate column into separate arrays. Array 1 will read: Boat Sue Billy Array 2 will read: Car Bird Don... Any suggestions on how to accomplish …

Software Development java
Member Avatar for KimJack
0
121
Member Avatar for Lost in Code...

Greetings, I'm working on this number guessing game which works, sort off... after it get the guess, it's suppossed to check that number in the void test(int guess, int target) function. It seems that it's totally skipping this. I've been looking at this for a while and don't understand why. …

Software Development c
Member Avatar for Narue
1
111
Member Avatar for cwarn23

I am a complete newbie to c++ and I am trying to find some tutorials. What I am trying to do is use a variable (from external text file) to rotate a 3D object. Then for the program to take a picture of the position the 3D object is in. …

Software Development c++
Member Avatar for Ancient Dragon
0
108
Member Avatar for andrewktmeikle

Hey, i am having trouble with a project i have for school. The problem is as follows: I have one database(access), and it contains the specifications for 3 PC's( will be more but not atm), i have added a column stating the specification of the pc. I have an adodc …

Software Development visual-basic
Member Avatar for jireh
0
202
Member Avatar for nedwards

Hi, I'm working on this project and it requires to manually control a digital camera. I have the dll that is supplied by Cannon, but the dll is unmanaged the the demo project they have with it is in C++ or C. I've been doing a lot of research and …

Software Development c c# c++
Member Avatar for nedwards
0
193
Member Avatar for Duki

Hey guys, I keep getting a link error in my code. It says this: [code]1>prob4.main.obj : error LNK2005: "private: static int HotDogStand::totalSales" (?totalSales@HotDogStand@@0HA) already defined in prob4.func.obj[/code] Here's my code, maybe someone can help me out. [code]#pragma once #include <iostream> using namespace std ; class HotDogStand { public: HotDogStand ( …

Software Development c++
Member Avatar for Duki
0
92
Member Avatar for ceyesuma

[code] public static Connection getConnection(){ if(connection==null){ try{ Class.forName("org.gjt.mm.mysql.Driver"); connection=DriverManager.getConnection("jdbc:mysql://localhost:8084","root","ceyesuma"); }catch(Exception exc){ connection=null;} } return connection; } [/code] Here is the bean to get connected. Should this work? [code] package db; import java.sql.*; import java.sql.DriverManager; import java.sql.Connection; /** * * @author James */ public class DBConnection { static String dbdriver; static …

Software Development client-server java mysql
Member Avatar for ceyesuma
0
134
Member Avatar for Dell XPS

I have made some(10) combo boxes in my project!!! i need to make them depend the one on the other... i mean if the first combobox is a car brand (e.g Ferrari) then the second combobox must only contain ferrari models! is there a way to hide the rest selections …

Software Development visual-basic
Member Avatar for Dell XPS
0
110
Member Avatar for plusplus

I need help with sql statement that includes two tables one table has id and name, lets call it tbluser second table has id and all other info, lets call it tblinfo Something like this Select id from tbluser where name = txtname Select * from tblinfo where id = …

Software Development sql visual-basic
Member Avatar for plusplus
0
106
Member Avatar for wicked357

First if I choose A it take the qty and the only number and shows it as the largest. I believe the smallest works correctly but not sure since I get a warning message about it. The warning messages I get are: [code] loop.cpp(67) : warning C4700: uninitialized local variable …

Software Development c++
Member Avatar for Rashakil Fol
0
125
Member Avatar for rjmiller

ok, I have a list of numbers and i want to return values in a range that are not in the list of numbers... I'm thinking of something like this: [ number for number in range(1, 10) if != nums ] However, This always prints all the numbers in that …

Software Development python
Member Avatar for rjmiller
0
102
Member Avatar for wicked357

I have to take my current code which displays a menu and repeats until the option 'c' is chosen which quits the program. Now I have to modify that same code to include a function for both A and B. The function for A should have the quantity of numbers …

Software Development c++
Member Avatar for wicked357
0
123
Member Avatar for ceyesuma

I would like to return a connection to a Bean to make statements to mysql database "ccdb" I'm really not sure of [code] public static Connection getConnection(){ if(connection==null){ try{ Class.forName("org.gjt.mm.mysql.Driver"); connection=DriverManager.getConnection("jdbc:mysql://localhost:8084","root","ceyesuma"); }catch(Exception exc){ connection=null;} } return connection; } [/code] Here is the bean to get connected. Should this work? [code] …

Software Development java mysql
Member Avatar for ceyesuma
0
185
Member Avatar for OLer94

Im trying to figure out how to compute a product of ordered pairs. So if I have two sets (1,3) and (2,4), I want to generate the following tuples (1,2), (1,4), (3,2), (3,4). Now I wrote the following [INLINECODE]def orderedproduct(set1, set2): op=[set()] for x in set1: for y in set2: …

Software Development python
Member Avatar for OLer94
0
143
Member Avatar for curt22

I have a single line text box, that is wide enough to hold 20 characters and I was wondering how do I make it so that you can keep typing even though it's got 20 characters in it without making it longer and without a vertical scrollbar? I'm sure it's …

Software Development api c++ windows-api
Member Avatar for curt22
0
90
Member Avatar for DaveHammer

Hi all, I have been struggling with time/date in perl for several hours now and for some reason i get a quirky error. I have an array called "date" 44 elements in length and "time" 44 elements in length. I created this code to convert UTC to localtime (Alaska). But …

Software Development perl
Member Avatar for KevinADC
0
94
Member Avatar for ryy705

Hi, I am writing a desktop application. It would make my life easier if the application can save all it's data in a database software. Do typical desktop applications come packaged with 3rd party database software or do they rely on internal serialized data structure? If 3rd party database applications …

Software Development data-structure java
Member Avatar for ryy705
0
197
Member Avatar for curt22

I have a simple program with a button and an entry field, and I'm wondering how can I organize them (like they were in a table) so that they don't overlap? I'm using the windows api. I tried searching but I'm not sure what to call this.

Software Development api c++ windows-api
Member Avatar for curt22
0
122
Member Avatar for DaveHammer

Hi all, I am in a situation where I don't know much PERL/CGI, but am frantically reading through the learn Perl/learnCGI in 24 hour books. I just got done programing in dbase for some climatology work and now have to switch gears quickly. My mission: to read in a (comma-delimited)web …

Software Development perl
Member Avatar for DaveHammer
0
142
Member Avatar for abar_sow

How to write these file datas in the new file...It should be done by wrting bytes into characters import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.FileNotFoundException; import java.io.IOException; public class fileread { public static void main(String[] args) { File file = new File("E:\\ir_Proj estimate_out.txt"); byte[] b = new byte[(int) file.length()]; …

Software Development file-system java
Member Avatar for abar_sow
0
140
Member Avatar for BigFormat

Hi guys, I've got troubles with a conversion. My function: void stringFormat (char *input, int nums) receives a string like this: "name;3,45,5,6,77;" and a number indicating how many numbers in the String (in this case 5) I've got to tokenize the string in order to obtain: 1) a string named …

Software Development c
Member Avatar for BigFormat
0
159
Member Avatar for zandiago

So far is what I've got: [CODE] #include<fstream> #include<iomanip> #include<string> #include<iostream> #include<cmath> using namespace std; int main() { float matric = 47.60;//matriculation fee int hrz;//semester hours float regroom = 387.29;//rate for regular room float acroom = 496.49;//rate for AC room float dip = 38.00;//diploma fee float food = 619.66;//rate for …

Software Development c c# c++
Member Avatar for iamthwee
0
2K
Member Avatar for Duki

We're discussing constructors. My problem is this: Define a class called Month that is an ADT for a month with one variable as int to represent a month. Include all of the following member functions: a constructor to set the month using the first three letters in the name of …

Software Development c++
Member Avatar for Duki
0
141
Member Avatar for KimJack

I am trying to read a line from a file, then print only the first word in the line. It needs to do this until the end of the file. The file is as follows: Bib 0.9898 .iuiu k.kljlkj .98908 Joel .0909 .iuou k.iopi .jlkj ... I need it to …

Software Development java
Member Avatar for KimJack
0
86
Member Avatar for claudiu_is

is it possible to find the available logical drives? if so...how?

Software Development java
Member Avatar for Ezzaral
0
127
Member Avatar for nobody2ph

hi guys, i know this might look like a n00b's homework assignment - but it aint, im studying VB for myself. Im trying to do this tutorial over here, cuz everybody said it's good [URL="http://www.profsr.com/vb/vbless04.htm"]http://www.profsr.com/vb/vbless04.htm[/URL] Prob is when i try to press the confirm button, error message pops up saying …

Software Development visual-basic
Member Avatar for Dell XPS
0
573
Member Avatar for partyanimal

I have been asked to create a system where that can rate colleagues with colours the colours are as follows starting with the highest first Gold Silver Bronze Blue Orange Black the colleagues all will start on Orange. now the tricky part. If the colleague sells a quantity of 4 …

Software Development vb.net
Member Avatar for preetham.saroja
0
107
Member Avatar for trudge

I know there have been several posts concerning Python and CGI / HTML, but I can't get my little script to even print a web page. [code] #!/usr/bin/python print "Content-Type: text/html\n\n" print import sys sys.stderr = sys.stdout import cgitb; cgitb.enable(display=0, logdir=".") print """ <html> <body> <div align="center"><font style="font-family:verdana; font-size:18px">Hello from …

Software Development html-css python web-server
Member Avatar for trudge
0
149
Member Avatar for Kevin008

I am just starting out at JAVA and trying to write a program that counts all characters in a string, counts all characters minus trailing and leading blanks and also counts all non-blank characters. Here is what I have so far. I am stuck on the non-blank character counts. Can …

Software Development java
Member Avatar for masijade
0
186
Member Avatar for bluebird

[code] String query="SELECT *FROM addresses"+ "WHERE lastname='"+ fields.last.getText()+"'"; [/code] What is wrong with the above SQL statement? I got the error message as "Syntax error in FROM clause"

Software Development java
Member Avatar for bluebird
0
74
Member Avatar for jobs

test = [random.randint(1,10) for i in range(20)] Can someone what does the random.randint(1,10) fron to for loop does, and the square brackets around it means, make it a list?

Software Development python
Member Avatar for vegaseat
0
363
Member Avatar for tgifgemini

Hello everybody, my program have been working and today I'm getting run time error 1004 - invalid number of arguments on this line of code: [code]mystr = "Comments:" & "'" & xlApp.Clean(Trim(rsin![Comments]))[/code] Also, I am getting a "Runtime error 1004 - unable to set the RowHeight Property of the range …

Software Development visual-basic
Member Avatar for tgifgemini
0
525
Member Avatar for jarv
Member Avatar for jarv
0
6K

The End.