132,726 Archived Topics
Remove Filter ![]() | |
Newbie. Sorry for lame question. I want to use each bit in an int (binary number) as a boolean. In essence (this is c"ish" pseudocode): [CODE] bitVal = 0x01F; // 32-bit value for(i=0; i <LIST_SIZE; i++){ if(bitVal[i] == 1) printf(List[i]) }[/CODE] So, for Python, I just need to know how … Software Development python | |
hi, I found on the net that to make a query one needs to create a dataset. therefore i have created a datatable to this dataset with 3 columns into into. Now i have created a query to display the information according to the query. the problem is that i … Software Development dataset | |
Hi, i'm new to C++ and i understand someone else has asked this question on this forum before. I read the replies but still don't know how to resolve my error. gcc version is 4.2.2. The linker error i encountered is build_products/shared/x86/sgos_native/debug/gcc_v4.4.2/ced.o: In function `CEA_Disk_lister::CEA_Disk_lister(CEA_Disk*)': ced.cpp:(.text._ZN15CEA_Disk_listerC1EP8CEA_Disk[_ZN15CEA_Disk_listerC1EP8CEA_Disk]+0x25): undefined reference to `vtable … Software Development c++ | |
how can i make this code more efficient (e.g less code inside the loop)? [CODE]loop: beq $a0, $a1, exit slt $t0, $a0, $a1 bne $t0, $zero, label sub $a0, $a0, $a1 j loop label: sub $a1, $a1, $a0 j loop exit: add $v0, $zero, $a0 [/CODE] thanx | |
This code was in discussion of getting numeric input to Python. This function returns the zero-stripped, normalized string form the input string if it is correct, False truth value otherwise (it can not be mixed with number 0 as accepted '0' are returned as string '0'). If string passes the … Software Development python | |
I need to put a digital (or analogic) clock in a pygtk window with a exit button. I was looking a example with Tkinter but I do not know how to integrate in a pygtk window [ICODE] from Tkinter import * import time root = Tk() time1 = '' clock … | |
Hi All, I need help with adding and deleting nodes(parent nodes) and subnodes(child nodes) in a TreeView. I have a form with a TreeView control that is pre-populated with two parent nodes (named "Finances" and "Personal")both containing two child nodes each when the form is loaded. I would like to … Software Development | |
Hi gusy, Can any one suggest , how to install DBD::mysql on windows mechine. (Its eating my head). I tried all the possible ways , but its not installing. 1) I tried to install directly from cpan , failed 2) manually downloaded, and tried to install, still failing : showing … | |
hi there, how can i add add a row to the bottom of the datagrid view in C#?? thanxx Software Development | |
Hey I'm having trouble using scanf to input two number and it is only letting me input 1. here is my code [ICODE] #include <stdio.h> int main() { int i ; int j ; int tl[10][25] ; int br[40][5] ; int point1[100][100] ; for(i=0;i<40;i++) for(j=0;j<25;j++) { printf("please enter value x,y … Software Development c | |
![]() | I am new to C++ and cant get my program to compile because of #include recursion. I have 3 classes A, B, C. A includes B.h and C.h B includes A.h C includes A.h and B.h They include each other because they either need to send messages between themselves. No … |
I have these structs. and I have two files one is program.dat and other is course.dat and I am supposed to load the values from those .dat files to the struct. The separation between attributes in program.dat and course.dat is '|' for example programID|programTitle|ProgramCode........ and I have used string tokenizer … Software Development c | |
Cud any1 let me know how this code works with respect to pecedence and associativity Thanks in advance[code]#include <stdio.h> main() { int i = -3, j = 2, k = 0, m; m = ++i && ++j || ++k; printf ("\n %d %d %d %d", i,j,k,m); }[/code] Software Development c | |
Hi, in part of my app I have to load an XML file and read an Attribute from it to output in a MessageBox. The MessageBox is called from a click event on a DataGridView. The way I have the code below I get an error that my INT gSize … Software Development xml | |
Hope your ready :P [CODE] /* THIS PROGRAM IS INCOMPLETE!! PLEASE DON'T CORRECT THE EMPTY FUNCTIONS!! Thanks, Spartan118*/ #include <iostream> #include <string> #include <windows.h> #include "H:\profile\desktop\rawrr\lvp\random.h" #include "H:\profile\desktop\rawrr\lvp\conio.h" #include <fstream> using namespace std; void combat() { randomize(); string object; cout << "Entering combat." << endl; cout << "You are behind … Software Development c++ | |
Hey guys! Hope you all doing well :) I have the following error in my assemblies: 'System.CodeDom.Compiler.CodeDomProvider.CreateCompiler()' is obsolete: '"Callers should not use the ICodeCompiler interface and should instead use the methods directly on the CodeDomProvider class. Those inheriting from CodeDomProvider must still implement this interface, and should exclude this … Software Development | |
hi everybody! i have this code for queues but it doesn't execute due to final Queue s = new Queue(); what should i do with this? pls help me :( [CODE]// Testing the Queue class of the java.util package import java.util.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class QueueTest … Software Development java java-swing queue | |
Hey guys~! I am working on a code and I am having some difficulties with it -- Basically I have a 3x3 grid of JButtons that represent the squares on a TicTacToe grid. The code seems to run fine but then after it determines a victor it crashes and says … Software Development gaming java java-swing | |
im trying to use stacks to output files with names here is what i have so far ive tried every combination of file.open i could think of any suggestions? [CODE] #include <iostream> #include <string> #include <fstream> #include <stack> using namespace std; int main(){ stack<string> filename; string fname; int count; ofstream … Software Development c++ | |
Hai, I've been fiddling around with char, char* and string and thoroughly confusing myself as to what the actual differences are but all in all, I couldn't seem to figure out a way to edit a string/char/char* to do something like this automatically: [I]"File1.txt" "File2.txt" "File3.txt" etc.[/I] None of the … Software Development c++ | |
hi there, i get a Argument Out of Range Exception in the line "dgvDAction.Rows[r].Cells[0].Value = dt.Rows[r]["TActionDes"].ToString();" when it runs for the second time.dt.Rows.Count = 2. why is this happening??? [CODE] String query = @"Select TActionDes,TAssignTo,TDueDate,TStatus,TDateComplete,TComment from TopicAction Where TopicNo=@topicno and Phase=@phase "; SqlCommand command = new SqlCommand(query, DB.getConnection()); command.Parameters.Add("@topicno", SqlDbType.VarChar).Value … Software Development | |
Hey all, I have a conceptual question. I have a 2-dimensional grid with on/off (0/1) values for every cell it. What I would like to do is to calculate the distance covered over cells with a value 0 and the distance covered over cells with a value of 1 when … Software Development python | |
Hello, I am learning dictionaries and I need help. Here is a script and the task is to modify print_hist to print the keys and their values in alphabetical order. I imagine that the result should be like this: d 2 o 1 r 1 v 1 thing is I … Software Development python | |
I have a form that has multiple text boxes, check boxes etc... The question is, instead of writing out: [CODE=c#] cmd.Parameters.Add(new SqlParameter("@myparam", (object)textbox.Text));[/CODE] a million times for each parameter, is it possible to load all of the names of the objects on a form into an array and just do … Software Development sql | |
Context: I have a search functionnality in my webapp that is looking in a few different xml for the ids im searching for. (I can search for a range, or different values). After search is completed it returns me a bunch of objects that I can click on and it … Software Development first-post xml | |
hi there, when i pick a date from the datetime picker and do to save it in the databassse the time is as 12.00.00 am in the database with the date. how can i make the time to set the default system time to be saved to the database. i … Software Development | |
Please wrap code related toantivirus. Any information related to Antivirus. Code related to scanning etc. Software Development java | |
Hi all, I would like to make a method that replace from a string the character k with x if the number of characters k is bigger than the x number, and the opposite replace. My code is : [CODE] class Replacing_class { public static String changeString(String str) { char … Software Development java | |
Hey guys I want to create a secure log in/ clock in / out form where different employees could log in and be automatically directed to there correct form. I have tried to create one but i keep getting "run time error 3011" [CODE]Dim WithEvents kell As Timer Private Sub … Software Development visual-basic | |
As the title suggests Any help for keypress action folks?? Do we have a keypress func in c++. I'm runnin Win Xp Dev c++ Software Development c++ | |
hi there, how can i check the checkboxcolumn in a gatagrid view in C#. thanxxx Software Development | |
I am working on a project for my programming class in which I need to use a Tracker class. The guidelines given to us are as follows: class Tracker: def __init__(self,window,objToTrack): # window is a graphWin and objToTrack is an object whose # position is to be shown in the … Software Development python | |
hey, i need both the import.sql.date; and import.util.date, at the moment im importing them like import.sql.*; import.util.*; How do i specify which library i want for any particular Date object? | |
All, I have a DataGridView bound to an XML file, then I add an unbound column of checkboxes to the DGV. [CODE] private void btnReconcile_Click(object sender, EventArgs e) { DataSet ds = new DataSet(); ds.ReadXml(txtPath.Text); DataSet modds = new DataSet(); DataTable dt = new DataTable(); dt = ds.Tables[0].Clone(); foreach (DataTable … | |
[code] string sqlInsert = "INSERT INTO Transaction " + "(VIN, Price, TranDate, TranType) " + "VALUES('" + VIN + "', '" + price + "', '" + aDate + "', '" + transType + "')"; // check SQL string in Output window for debugging Console.WriteLine(sqlInsert); myDataAdapter = new OleDbDataAdapter(); //insert … Software Development sql | |
This is my code to create a new file below. The main problem is that the program does not halt for entering file name and also the program creates a file .txt and doesn't save anything in it. Please Help [CODE]int newfile() { system("cls"); cout <<"\t\t-------------------------------------" <<endl; cout <<"\t\t| NEW … Software Development c++ | |
im having a problem with making stack with array converted to linked list so far this is my code ... [CODE]import java.util.*; public class Nkakainis { public static void main(String[] args){ Stack <String> istak = new Stack<String>(); String[] names = {"john", "mark", "peter"}; List<String> list1 = Arrays.asList(names); System.out.println("pushed " + … Software Development java linked-list | |
hello all, I need assistance on MS Access 2007 database with C#, I have a form with many textboxes.. and i need to store these userfilled data to my database! and after that I need to see detail of any perticular item form database!!! please say how to do this... Software Development c# | |
Hi experts I m using Hindi font In a text box, these textbox has a value [B][U]"uxn ¼dS'k½"[/U][/B], when I use select command for searching "uxn ¼dS'k½" value, it's show error. I know this error is showing for ' which is in "uxn ¼dS'k½" , how to search m I Software Development vb.net | |
So, I made this function to return data from the registry. I'm going to be calling different things from different places to get hardware information. Unfortunately, it works the second time you call it. Here is the output: Could not find value: Identifier Returned: ?? Returned: x86 Family 6 Model … Software Development c++ | |
Hi all ive been thinking of a writing a compiler in java for my final year project. I have started to browse the net for help but to be honest its confused rather than helping me to get a clear image of what I would like to do. E.g. I … Software Development java | |
So uhm...I want to do the bubble sort and i found a code but actually i don't really know what's missing...ok...sorry but i am just a newbie and not so average of logic(lol. :p). My goal here is to complete this code, 'cause i tried to run it but it … Software Development c | |
Hey guys, just wonderin why I am getting a compiler error on this code... I've had this error before and spent ages tryin to fix it.... But i can tfor the life of me remember... Thanks to all who reply...:) [ICODE] class Date { public: Date(); private: }; class Time … Software Development c++ | |
Hi, can anyone tell me how to access a specific memory location in C++ (I use Dev-C++ 4.9.9.2) without the OS giving me an error and stopping the execution of my prog? I've tried the following code on both WinXP and Win98, but they both gave me an error : … Software Development c++ | |
this code was suppose to prevent any single line from appearing twice for each display, i thought it was ok but later found that it wasnt, i was directed to use the hashset method in combination with my code to prevent that from happening, but it is not consistent, i … Software Development java | |
Some of you may have noticed that I am always harping about "abstracting the problem" and "posting the smallest compilable piece of code that demonstrates a problem." I rambled a bit about why this is important if anyone cares to read: [url]http://daviddoria.blogspot.com/2010/05/problem-abstraction-helping-others-help.html[/url] Dave Software Development c++ | |
Hello all, I'm am trying to get this program to work for class tomorrow. Maybe someone would be kind enough to be able to check it out for me. I'm using the g++ compiler in Ubuntu trying to get this openGL application to work. It compiles fine but has a … | |
I am trying to write one generic class for the purpose of any types of method logging. I am able to track the parameter name and their data types in my class but unable to track the parameter value which is passed at the time of function call. I need … Software Development java | |
Many of the student don't know how to find connection string, if they find then there will be some mistake. it's a simple idea to find connection string try it. and vote for it how to find connection string of any database or any server like, access or sql or … |
The End.