132,726 Archived Topics
Remove Filter ![]() | |
How would you write a string that has "are" in it: I beleive this would be a wrong way ? String GetString = [B]"Hello how "are" you"[/B] Software Development c++ | |
class B is nested insider class A but it does not declare the class B as its friend. However, the member function void B::print(A a) can access to the private member data int a, b of class A. The books introduce the nested class must be declared as friend then … Software Development c++ | |
I have this piece of code wherein I want p to point to array index with value 10 struct_a { int value; ... } There is an array of struct_a. finditem looks through the array to find one with value = 10; main() { struct_a *p; fixup_p(p, 10); } void … Software Development c | |
Hi all, I am having problem about file operations. There are a few numbers in my txt file. I want the program to calculate average of these numbers in the txt file. The code I have written is as below. Number of numbers in the file is 5. When I … Software Development c++ file-system | |
I have adapted a program that implements a register of players and stores the players in a struct, with BIN file handling. Now it's not possible to use the records after they have been loaded from the BIN file. The compile is ok and both functions below are excuted without … Software Development c++ file-system ios | |
Hello, I'm trying to get my first RMI Program working, and I keep getting a Timed out exception. I believe that the error is occurring in the "bind" method... Does anyone know what the problem might be? Here's the code and the error: [code=Java] /** Server */ import java.rmi.registry.Registry; import … Software Development client-server java | |
Hello, for the project I'm working on, I need to be able to access say, a JPanel object that was created from the execution of a Jar file, and use it inside another class outside of the Jar file. Any ideas? Thanks Software Development java | |
I am writing some code which already gets the pixel array from an image, I then alter the pixel values. How do I now display this new pixel array as an image? I hope someone can help. Thank you | |
I'm a student trying to teach myself C. I know the basics of it and now I would like to write a simple DLL using the WinAPI so I can use it in another BASIC-like language. I'm using CodeBlocks with the compiler it comes with (since I can't afford to … Software Development c | |
hi :) This is my code: [code] public static void ChangeColor(string myObject, string myColor) { myObject.ForeColor = Color.myColor; //This doesnt work, why? } private void button1_Click(object sender, EventArgs e) { ChangeColor("Programming", "PowderBlue"); } [/code] "Programming" is a label I've written many programs in VB but i'm new to C# so … Software Development | |
Hi guys, I am currently doing my assignment. It requires me to create a program that will be able to create an address book using File.So far, I managed to display all the contacts, search the contacts and delete the contacts. But , I m not able to sort the … Software Development c | |
I have suddenly began getting 'out of memory' messages while editing an Acess2003 module VB code. It deletes the entered text that caused the message. There is no error number - that's the exact text. Restarting Access and rebooting have no effect. XP SP3, Access 2003, VB 6.5, 1.5GB memory, … Software Development visual-basic | |
Hello. First of all, sorry for making the other thread before looking more deeply. I did not make this mistake this time, though. I have a really odd error. I have no idea what might cause it. Here's the error (Gives me two of these). [code] \main.cpp(74) : error C2143: … Software Development c++ | |
hi , i m looking for a project which contains some graphics,lots of functionalities, and most of all is something different from the normal management projects (online test,hote; or lib mgmt etc). I have thought of something related to "Stock exchange" or Artificial intelligence project(which can predict behavior of situations-"brainstorming" … Software Development java | |
hi i want to compile .c file as .cpp file using makefile!!. please some one help me to create makefile Software Development c++ | |
Thanks in advance for any one who helps me. Code is in C using unix system calls. I am writing a code that forks a process and that forked process gets worked on by a function, in my case its called processone. I had a similar program, in which i … | |
I am able to create .xlw files that will open with Microsoft Excel, but is there a way to turn that into a .csv file? The code I use to create the .xlw file is as follows: [code]Set oExcel = CreateObject("Excel.Application") Set oBook = oExcel.Workbooks.Add Set oSheet = oBook.Worksheets(1) oSheet.Range("A1").Value … Software Development visual-basic | |
hey...i'm having trouble passing a user define 2d array... [CODE] void genrand(int &game[][],int &size) { int i,j; for(i=0;i<size;i++) { for(j=0;size;j++) { game[i][j]=(rand()%100); } } } int main() { int size; int game[][]; cout<<"Please enter your Game Size"; cin>>size; genrand(game[][],size); return 0; system("pause"); } [/CODE] This is my code...i read in … Software Development c++ | |
Hi! I have been programming in FreeBasic for 2 years now, and decided to switch to C++ a few weeks ago. This means that I'm not completely new to programming. I downloaded Visual C++ Express Edition 2008, and have already read all 12 chapters of C++ Beginners Guide (well the … | |
Hi, I am using this zipfile.Zipfile module to zip around 600 MB of data. But after zipping, the size of the zipped folder is app. same. file = zipfile.ZipFile(yesterday_date_time + ".zip","w") os.chdir(rawFileLocation) dirList = os.listdir(rawFileLocation) for fnames in dirList: file.write(fnames) file.close() If i try to use compression method as ZIP_DEFLATED, … Software Development python | |
Hi, I am having issue with the Scanner class, it seems to fall through to the next line, depending on how I call it from my class. I cannot track find a pattern to this. Except it tend to happen more when calling the nextLine() from the Scanner class. Some … Software Development java | |
[code]include<stdio.h> #include<conio.h> void main() { char u,pp; printf("\n\n\t\t enter the username and password"); scanf("%c%c",&u,&pp); getch(); }[/code] what was wrong in this code, Its taking the username but its not properly taking the input of password. And my another doubt is how can i use string for this program instead of … | |
Pls see my code.Nothing is displaying in the grid [code]Private Sub MainForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim connString As String = "Provider=SQLOLEDB;Data Source=MSALAMEEN;uid=sa;pwd=Sa1;Initial Catalog=Biometric" Dim myConnection As OleDbConnection = New OleDbConnection myConnection.ConnectionString = connString Dim da As OleDbDataAdapter = New OleDbDataAdapter("Select ID from bdata", myConnection) … | |
Hai, I don know how to store data from datagrid to SQL database. I also don know how to find the number of records in dataset or datareader. for an example [B]myCommand = New SqlCommand("Select * from discounts", myConnection) dr = myCommand.ExecuteReader()[/B] How can I know whether there is any … | |
Hi, I have one question. You know some applications can be minimized to the lower right corner and with a hot key (e.g. ctrl+F1). Once the hot key is pressed, the application is activated or some event is activated. I wonder how to do that in java if there is … Software Development java ![]() | |
Hi,Can anyone help in FEC coding in C++,I tried a lot but m not getting the logic. Atleast anyone can suggest me the logic. Thanks Software Development c | |
I was trying to find out what tk is (with respect to tkinter) and I regularly came across the words API and "binding". What do they mean? | |
Hi, I am still a newbie to C++ and ran into a strange problem - I am using a static instance variable in my class, as soon as I do so I get an error LNK2001: unresolved external symbol error message - however this only occurs when I am trying … Software Development c++ visual-studio | |
Hi! What i want to do is for my program to detect all USB disks inserted and return the device path (/dev/XXX) and system type. My first tought was to fetch output from fdisk -l but thats not very fancy and i guess there is some function or such to … Software Development python | |
Good Day All, Not sure if I should post this request here or under the SQL Forum. I am studying JAVA and my code is for JAVA, but my query is regarding the SQL prepared statements to be used in my JAVA code. I have a program called SingleUser.java. The … Software Development java user-interface | |
Hello good people of vb.net, I'm experiencing problems with an application I'm writing. I have a login dialog that is loaded in the main form's load property, like this: [CODE] Private Sub FrmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' show login if configured If My.Settings.login Then … Software Development vb.net | |
I am having a much harder time than I should trying to deallocate the memory used by an STL map. Some example code: [code] void mainfunc() { testmap(); testvect(); } void testmap() { map<int, float> testmap; for (int i = 0; i < 1000000; i++) { testmap[i] = (float)i; } … Software Development c++ | |
Hello, this is my 1st post here,:) I have a problem With C#.net 2008, I can't find the way to send variables from form to form, Could you post here all the ways to do so? + But my problem really is this.:icon_eek: I have 2 Forms, 1-[B]Form1[/B], 2-[B]SP[/B]([I]name of … Software Development c# | |
Hello, I have an array 'summed_MWloss' which has the following content: [0.00024064097412677081, 0.0010840802387205584, 0.003607376872954593, 0.0078014804983401742, 0.013657631815844617] I am having trouble writing it into a CSV file into seperate rows. The code I am using at the moment is: [ICODE]t = open(r'F:\IPSA\My_Work\Python_Files\my_powerD2.csv', 'w') output = csv.writer(t, dialect='excel', delimiter=',') output.writerow(summed_MWloss)[/ICODE] which allows … Software Development python | |
Hello all, I'm trying to add a new row to a new datatable. The following is my code,but I get the error of "Cannot find the column 0." Anyone can help me on this? [CODE] Imports System.Windows.Forms Imports System.Data Imports System.Data.OleDb Public Class Form1 Dim cn As New OleDbConnection Dim … Software Development dataset open-source vb.net | |
pls someone give me a puiz project using visual basic 6 and ms access with adodc connection...plssssssssss... i am under pressure....pls upload file and send me immmediately Software Development visual-basic | |
how can i print a triangle in java.Its shape is like this A B C D E F G H I J K L M N O i have to use ascii code for printing alphabets. Software Development java | |
package javaapplication1; import java.util.*; import java.io.*; public class GO { public static void main (String[] args) throws FileNotFoundException { Scanner inFile = new Scanner (new FileReader("grades.txt")); PrintWriter outFile = new PrintWriter ("output.txt"); int q1,q2,q3,q4,q5; double g = 0; int ctr = 0; double ave; String name; double cAve; String grade; … Software Development java | |
Hi all, What I want to do is, when I leave a cell I want to make sure that that cell is not null, that is there is a date data there, and when I leave, I want to add some days to date and place this result on another … Software Development | |
I have a file like this: [CODE] 2 | H| 2 | H| 2 | H| 2 | H| 2 | H| 2 | H| [/CODE] & this code to read it in: [CODE] f = fopen(p, "r"); char *t[100]; int i = 0; int i2 = 0; int n … Software Development c file-system | |
Hello, I have a class with as many objects I need. I am changing the value of some member variables individually here and there, however, now I want to be able to change one specific member variable of all objects e.g. bool visibility at once, so that all objects wll … Software Development c++ | |
This a portion of my code with 2 sets of 2d array [CODE] public class Form2 { public static void main(String[] args){ int[][] dayForm = { {25,15,28,17,19}, {31,21}, {23,24,19,18}, {15,19,22}, {14,17,13,18}, {8,12}}; int[][] boardForm = { {10,18,17,17,15}, {16,9}, {13,19,15,25}, {11,10,8}, {14,17,19,13}, {11,4}}; final int SIZE = 4; int[] totalday = … Software Development java | |
hi friends, in visual C# 2008 express edition IDE, when I tried to add more than one C# source files in the same project then I got following errors: [CODE] Error 1 Program 'C:\Documents and Settings\Santosh Tripathi\My Documents\Visual Studio 2008\Projects\ConsoleApplication1\ConsoleApplication1\obj\Debug\ConsoleApplication1.exe' has more than one entry point defined: 'ConsoleApplication1.Class2.Main()'. Compile with … Software Development c# ide visual-studio | |
Hi there all, Could someone please tell me how I could increase my precision for floating point arithematic? My requirement is that I add a very small value of the order 10^-7 with a relatively big value, say 36.63 and then I want multiply it with 10^7. The problem Im … Software Development c++ | |
Is it possible for me to typecast or convert a type [icode] IplImage* [/icode] to [icode] const char* [/icode] It seems impossible, but i would like to send a frame captured from webcam through a winsock socket directly through memory but the 'SEND' function only accepts type const char *. … | |
What is a parser and what does it do? For example, what would an HTML parser do in python? Software Development python | |
HI, I was trying to learn more about I/O with files in C++ and I can't figure out why this program can't output to the file... [code=cplusplus] #include<iostream> #include<string> #include<fstream> #include<algorithm> using namespace std; char userinp; void print_interface() { cout << "Enter E to Encrypt" << endl << "Enter D … Software Development algorithm c++ file-system ios | |
Hello! I have a piece of software called X-Mouse Button Control, and its able to intercept mouse events. The website for my mouse had this instead of a driver specifically for the mouse. In the program, I am able to "Intercept" the functions of Leftclick, Rightclick, ect, globally for windows. … | |
hi, I have more than two form in my vb.net project. please let me know, how to run(load) or debug my current form?. For Ex: consider forms like, form1,fom2......if i run the project means, it start from the first form, but i have to run only the second form. Software Development vb.net |
The End.