199,114 Archived Topics
Remove Filter ![]() | |
This is not a question about C/C++ as such, but I couldn't think of where else to put it. I would like to know how to call either gcc or g++ and specifying that all error messages that are to occur when compiling some source code are to be written … | |
Hello guys, I found a lot examples about this one but I still don't have it all working. So the thing is that I have a button in my C# web application called Export to Excel. The functionality should works as if the button is clicked - it just simply … | |
Hi, i am new to pthread area. i like to pass the dynamic argument into the thread function. example [CODE]function(void *value) { printf("%s",(char *)value); }[/CODE] here i like to pass dynamic argument when thread is running. so is it possible in pthread? please share your ideas... | |
Hi I have a database of one table with headings as shown DONOR COURSE TITLE START DATE END DATE MIN/DEPT ANNOUNCED TO DATE RECEIVED BY HRD DONOR DEADLINE DATE FORWARDED NOMINEES BENEFICIARIES-MALE BENEFICIARIES-FEMALE NUMBER ACCEPTED REASONS FOR NON-ACCEPTANCE DATE OF ENTRY NATIONAL COUNTY The table is in access. I would … | |
Is it possible to open programmaticaly vlc and send to it one subtitle file (programmatically too)? For example I want to run vlc(I know how to do that) and then programmatically press video-->subtitles track-->open file... If it's not possible with c# is it possible with any other language? | |
The problem I am trying to solve is Write a program using fork() to compute average of N numbers. The parent process forks a child process that takes input from the user, adds all the numbers and returns the sum and the count of numbers to the parent process that … | |
hi i have the table in which date valve is like this [COLOR="Red"]11/11/2009 6:08:29 AM[/COLOR] how can i compare the value or select them , the to_date is working in SELECT but,i want to select the records using this colmn and by giving value ie:[CODE]SELECT * FROM SENTMAIL WHERE SENTMAIL_SENT_DATE='01-OCT-2011'[/CODE] … | |
hi everyone... i have a page running html and javascript... basically its a faq page, viewers click on a question heading and then the related questions appear below (done using the js hide command) i had the problem where everytime i clicked a heading the page went back to the … | |
Hello in a case there I wan't to change letter in an index from 0- 28 to just 0 - 26 it's commandbuttons, and the 3 letters should be dissaabled, the code is in swedish just now, but I will change that in language settings to english letters. and how … | |
How can I check if my program was launched from the command line or from windows explorer? | |
Hello! I need to import some data from a .csv file, process it and write results in an Excel file. So... I use ADODB recordsets and Microsoft Text Driver: [CODE] Dim rs As New ADODB.Recordset Dim cn As New ADODB.Connection Dim cnStr As String cnStr = "Driver={Microsoft Text Driver (*.txt; … | |
Here is my code . Switch statement doesn't working in this. why? [CODE] int callprocess(FILE *File) { int Rec = 0; // record number char tcode[3]; //char buffer[30]; struct timeval b,e; long int tms,tme; do { printf("\nMenu :Init, Dummy, Add or Quit ( I, U, A or Q) : "); … | |
As is well known, the Javascript Date object provides a method getTime() to return the number of milliseconds since 1/1/1970. However, I'm seeing a problem when such timestamps are used in calculations with DOM Event timestamps in Firefox. It appears that the DOM Event timeStamp field in Firefox is the … ![]() | |
HI,I am web development beginner and i have to make an online database project in just 8 to 9 weeks,please recommend me that which tool i should use to make my project that is fast ,reliable and efficient... Following are the tools under my consideration Joomla Dream weaver xamp wamp … | |
Hi Guys, how to call one shell script from another script inside a loop ? any suggestion most welcome. Prakash | |
Hi all, I'm having trouble coming up with the correct XSLT code and was wondering if anyone could point me in the right direction. This is what I need to do... I've got an xml tree with pages like so: [CODE] <page> <title>A<title> <subtitle>I</subtitle> <item>1</item> </page> <page> <title>D<title> <subtitle>V</subtitle> <item>7</item> … | |
Hi there, I've been given the task of adding a Google recaptcha to a form on this website I'm working on. I'm not really familiar with the code that I've been given to edit, so I was wondering if anyone can help me. Basically, the "contact" page looks like this … | |
Hi all, I am currently working on jasper reporting. Designing reports using iReport Designer. Everything is working fine, but what I want to know is what is the way to use JavaScript in Reports (designing in iReport). For example, if i want to add the below code (clicking the button … | |
hi, i'm new to vb.net.is it possible to link item in drop down list to image? for example if i click "computer" in the drop down list, the image of the computer will appear. sorry if my question sounds silly. i'm really a newbie in vb.thanks for ur help. | |
I am writing a program that reads customer info from a file, then reads transactions from another. I am building my ADTs for this as I cannot use templates for this class yet and have a cpl of issues. The linked list contains the clientID as an int and a … ![]() | |
I want to readfile and merge them all to the arraytotal array , It works fine for individual file, don't know why, it printed out some weird character for the final Thanks [CODE]#include <stdio.h> #include <string.h> #include <stdio.h> #include <stdlib.h> using namespace std; #include <iostream> void fnSortHeap(char array[], int arr_ubound); … ![]() | |
I am trying to make a Fibonacci sequence program to display up to the nth term(only positive numbers). For some reason it doesn't seem to work. [CODE]import java.util.Scanner; /** * * @author Toby */ public class Fabonnacci { /** * @param args the command line arguments */ public static void … | |
Dear Daniwebbers, I have a problem regarding the calling of methods on a protected parent object from within a child object, the protected parent object being a child object of the same class. I have a class HostileArea, wich has a "protected DungeonRoom[][] dungeon", DungeonRoom being a child of HostileArea. … | |
hey Guys, im creating a clas that is to be used in a HashMap to map phone numbers to name. for example : map.put( new PhoneNumber(207, 8269600, 260), “Paul”); [CODE] public final class PhoneNumber { private final int areaCode; private final int number; private final int extension; public PhoneNumber(int areaCode, … | |
is it possible to send data from remote object to the server in C# remoting using TCP channel???? Please reply thanking you in advance.................... | |
Hello I just read a document using PHP and I need to skip the first 58 lines of that document and then start sending the data that follows from those lines to my database. How do I go about skipping the first 58 lines of the document. I really need … | |
Hello all! I don't know what is wrong with my program. I know i'm missing something but still i can't figure it out. #define TRUE 1 #define FALSE 0 int search2Darray(int x) { int i, j; for (i =0; i< 2; i++) for (j=0; j < 10; j++) if (a[i] … | |
[code] import java.util.*; import java.text.*; public class FactorialApp { public static void main(String[] args) { // create a Scanner object named sc and intializ variables Scanner sc = new Scanner(System.in); // perform Factorial application when user enters "y" or "Y" String choice = "y"; while (choice.equalsIgnoreCase("y")) { //get input from … | |
Hello there! anybody can help me how to execute this application? Thanks you very much! Here's the application goes: Write an application that contains four command buttons. The command buttons should be blue and have boldfaced, italicized caption that read change color, change bold, change height, change width. When the … | |
Hi everyone, I'm trying to write a script that will list all files and their details within a directory - so for example, if I have the structure /home/ /home/folder1/ /home/folder2/ /home/folder3/ It will print something like +---------------------------- | /home/folder1/ +---------------------------- | *files here* | *size* +---------------------------- | /home/folder2 +---------------------------- … | |
I am using a gridview in my application,in gridview i am having textbox which i had created by item template,i am new in programming i have no idea how to populate the data to the gridview,the data should be displayed in the gridview and after that the user had to … | |
I want to open different file names, at first it work well on couple files, but it has to be in order, what if i open random file like fall01, fall05,srping09 etc Thanks [CODE]#include <stdio.h> #include <string.h> #include <stdio.h> #include <stdlib.h> using namespace std; #include <iostream> int main() { FILE … | |
I have an unusual situation where I had a hard drive with some bad sectors and moved the data to a new drive. I did the move with cp -Rfp and >& logfile. I moved the data (~285GB) with about 20 copy commands. The >& should have given me information … | |
Hi Sir, My name is tariq , i am intrnee developer in my company . i have project EPS which i will make using joomla cms mvc so i need help more because i am intrnee please must be help me any one thank you very for this kind of … | |
Ok I'm working with a program that uses addresses and with all of the Interesting charecters (. / \ and spaces) I need tO get a line of characters. I know how to do this with ifstream but how would I do this with plain old cin? | |
hello all In a cells of a datagridview I place a gif image name new.gif . I can show it immediately after the the form load even I try to print this datagridview cell(0,0) value which is an image name new gif: Object imgobj= dataGridView1.Rows[0].Cells[0].Value; but then I do not … | |
Hi, Im building an web application where im using number of views & stored procedure.. i just want to apply performance tuning techniques for my application. while reviewing the code, i realized that lots of my views are being called in the Code behind file of the UI..i don understand … | |
Hi. I didn't declare a,b,c from the first program but i did after the first program. What am i missing? [CODE] #define m 2 #define n 2 void matrixaddition() { int i,j; for (i=0; i<m; i++) for (j=0; j<n; j++) c[i] [j] = a[i] [j] + b[i] [j]; } #include … | |
[CODE]import math print "Select unknown variable" print "a, b, or c" print equation=input("> ") if equation == a: b=input("Enter b: ") c=input("Enter c: ") a=math.sqrt(c ** 2 - b ** 2) print "a= ",a [/CODE] **i get the following traceback Traceback (most recent call last): File "C:\Python27\My Programs\pt.py", line 7, … | |
I created an asp.net login page and I have options that if the user clicks one it can go to different pages. All the other pages are written in aspx.vb but I had to write the last in .cs. I wanted to know if I could link this page to … | |
The program already can compile and run. But, when we enter the film's code, an error will occurred. We had no idea how to solve it :\ [CODE] public class Entity { private String itemCode; private String title; private String description; private int language; private int time; private String productCompany; … | |
What this script does is take in an image and export a thumbnailed version. Function Arguments: $file : Desired image to create a thumbnail of $destination : End location for the thumbnail $zoom : Setting type, explained later (default: false) $t_width : Thumbnail width (default: 150) $t_height : Thumbnail height … | |
![]() | I have my program all working but whenever a user clicks cancel or exit I want the program to close, not throw my catch. Whenever a user throws a catch they have to input their answer twice before it will go back to normal operations. [CODE] import java.util.*; import javax.swing.*; … |
Please see that attached code. My output is as follows Please enter name : dog 0x7fff71771e60 Please Enter Type: Valid Choses Are (Game, Word, Compiler, Spreadsheet, DBase, Presentation : Game 0x7fff71771e60 Please Enter Cost: $ 20 Its like either the pointer or the getline is not clearing out memory properly. … | |
I need to write a function that will use the delete command on a pointer. I'm in left field. See what I have so far any suggestions. I don't think I'm quite getting what I need to pass to the function and pass back. #include <iostream> #include "cdrom.h" using namespace … | |
![]() | Can anybody tell me how to fix this...i've tried many ways but it still ends up the same...??? [CODE]//Ch7AppE03JV.cpp //displays an employee's name when the employee's ID is entered //Created/revised by Justin Victa on October 14, 2011 #include <iostream> #include <string> using std::cout; using std::cin; using std::endl; using std::string; int … |
alright iam working on a microwave app its very important anyways ill give up what code ive got soo far and such but when i try to run it i get this error message : Visual Studio cannot start debugging because the debug target Microwave.exe is missing Please build the … | |
[CODE]#include<iostream> #include<fstream> #include<string> using namespace std; #define months 12 #define temps 2 void getData(int [months][temps],int,ifstream); void testcout(int [months][temps],int); int main() {int y=0; string skipwrd; int mainArray [months][temps]; ifstream in_data; ofstream out_data; in_data.open ("C:\\Users\\Worker\\Desktop\\Ch09_Ex09Data.txt"); getline(in_data, skipwrd); getline(in_data, skipwrd); in_data>>skipwrd; getData(mainArray,y,in_data); y++; getData(mainArray,y,in_data); } void getData(int locArray[months][temps],int x, ifstream locin_data) {int z=0; … | |
I have a number of lists such as ['BLAH', 19, '11111', 'Fa0/19', '100000000'] I either need to make a list of lists or a dictionary containing lists. What would be the recommended one to do and will make the process of further sorting and text manipulation the easiest. Thanks, | |
Hi, I have a method that returns a list of images. I will say, (get_images str) and (list-ref item num) simply displays num'th element in the list. From the list, I need to print all of the images recursively. And I noticed DrScheme is not smart enough to perform more … |
The End.