199,114 Archived Topics
Remove Filter ![]() | |
I only have one more small question is I have made a textbox in C++ CLR, how can I load text from a text file? thank you. | |
Hello I had the seg fault last night, after making some changes, I don't have it anymore, the program compiles but it doesn't do anything ! " the program should read in data from the file in this following form : 2 Dell inspiron 299 Hp pavilion 499 " simply … | |
I have searched for a solution to this problem on daniweb and google to no avail. You folks have been so kind as to help me before. This portfolio piece, slash website for my father incorporates a MySQL PHP search form in the left div, and the search results in … | |
hi,everybody I am study ctypes,and got a big trouble,I googled lots a pages but get no usefull info. i want to know how to get the interface from winxp by using ctypes, for example: I want to use ActiveDesktop 's interface by using ctypes,but i don't know how to do,can … | |
Hi, I wrote this simple bash script(yeah simple now that its done) and it uses bc - 'The arbitrary precision calculator language' and tr - 'translate or delete characters'. Now the script works, it will take input values and convert them to the proper output values. Now my question is..is … | |
Hi, I am going to be attending university next year on a coding course, I am currently working through an exercise in the Deitel book How To Program and I have encountered some errors in my program. Any help would be much appreciated. Bob Here is my code cube.h [CODE]#include … | |
Hi, I am new with jQuery. I copied an open source code for sending a contact us form using jQuery. You can see the form at Website at the bottom right side yellow box. The input fields are as follows: Name, Email, Tel, Comments. This is my JS file the … | |
Please help.. I am trying to create an outlook script that will parse the subject line of emails coming from a particular source and organize them, by the ticket number present in the subject line. However, VB is sucking the life out of me on the error below I am … | |
[COLOR="Green"][B]Well, that's it, i'm trying to compile a dialog box:[/B][/COLOR] [CODE] case WM_COMMAND: switch(LOWORD(wParam)) { case ID_HELP_ABOUT: { int ret = DialogBox(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_ABOUT), hwnd, [COLOR="Red"]AboutDlgProc);[/COLOR] if(ret == IDOK){ MessageBox(hwnd, "Dialog exited with IDOK.", "Notice", MB_OK | MB_ICONINFORMATION); } else if(ret == IDCANCEL){ MessageBox(hwnd, "Dialog exited with IDCANCEL.", "Notice", MB_OK | … | |
Hi, I am working on visual studio 2008 C++ and I have done the C++ general code, my question is can I convert my general code to be C++ CLR in visual studio 2008? This will make my work easier. And I have one more small question is I have … | |
this is the problem area: [CODE]FILE* fp = fopen(file_name, "r"); if (fp == NULL) printf("couldn't open file\n"); char line[100]; while ((fscanf(fp, " %[^\n]", line) != EOF)) { printf("%s\n",line); clock_t start = clock(); perform_operation(line, 1); clock_t end = clock(); sprintf(log_msg, "time taken: %ld ms",(end-start)); log(log_msg); } sprintf(log_msg, "final tree"); if (fp … | |
HI everyone!!i have this got this function, and i dont know what is going wrong here. in the table, the field for date i saved as timestamp, meaning time is automatically inserted when the record inters. [code=php] function time_stamp($session_time) { $time_difference = time() - $session_time ; $seconds = $time_difference ; … | |
How can you create an Outlook (2007) Distribution List that contains all the Outlook Contact fields? The examples I find typically populate a DL with Recipients that contain only an email address. I'm using C# but VB, etc. will also do. Thanks, Scott | |
I need to create date objects, to do that i think i need to use simpleDateFormat buuutt I'm using a startDate and endDate as parameters, so i dont know what to do. I've got another method that returns an int for number of days between them. Sorry I'm still an … | |
how do i read in files from a ".txt" file into a linked list heres my code. [CODE] import java.io.*; public class LinkedList1 { class Node { String element; // list element Node next; // successor link Node(String el, Node n) { element = el; next = n; } Node(String … | |
Hello everyone, How can I find out what scripting language is used for a website? For example If I am looking at BBC.co.uk how do I know the scripting language like PHP, JSP, ASP etc. Please reply. its urgent ,.........thanks | |
I have a program, my own shell where the first input is command and the 2nd is cmd. Im trying to get cd working but having trouble with chdir function, i have this and it just gives me a segmentation fault and i dont understand why. [code] while(!strcmp(command,"cd")) // while … | |
Hello all, I have a project in which I need to open an external file which contains to columns of numbers ie: 1000 1000 1111 500 1500 1000 2000 900 2222 2000 2500 2000 3000 1500 3333 2000 3500 2000 4000 600 4444 2500 4500 2000 5000 2500 5500 2222 … | |
Hello all, New to the forum and to java. Here is an assignment I have been staring at for days. When I run my program it is multiplying the the loan amount by the interest rate and spitting thaT out as the answer for the monthly payment. What am I … | |
Hello all I am currently coding a starter multi threading program in c. It is supposed to find all the prime numbers from 2 to n. I have no previous experience in thread coding so I am looking for some help and maybe some debugging advise It only calculates primes … | |
can I call a function B outside a class (say, a global function) from a member function Aof that class? if so, how do I specify the scope? Using :: B ? thanks. | |
I am tring to get this program together and can't seem to make it work. Ok. . this program is to take in a file with a matrix of zeros and numbers 1-9. The zeros are shaded and the numbers are part of a block. All numbers and the ones … | |
Hi, I am trying to create a RewriteRule for my site. I got the first part correctly. This means say /index.php?mid=#. This passes correctly. Here is the example: [url]http://www.orchot-hagilboa.com/דף_הבית[/url] But how do I add another param? Say I am passing /index.php?mid=#&smid=# ???? Here is my rewriterule in htaccess: [code] Options … | |
i have updated my centos python2.4.3 to python 5.1 i followed the following process: which python /usr/bin/python python -V Python 2.4.3 cd /usr/local/src wget [url]http://www.python.org/ftp/python/2.5.1/Python-2.5.1.tgz[/url] tar xvzf Python-2.5.1.tgz make make install ls -l /usr/local/bin/python mv /usr/bin/python /usr/bin/python-orig ln -s /usr/local/bin/python /usr/bin/python ls -l /usr/bin/python -> /usr/local/bin/python python -V Python 2.5.1 … | |
Hi, When using Microsoft Visual Studio, building in release the code just hangs and fails to execute but with Debug it builds and runs to the end. And I don't see why there should be a difference. I did a shutdown then clean and a rebuild of solution but the … | |
Hello everybody, I've posted this question before but i got no help, may be i wasn't clear enough or it can't be solved but i really need someones help. The problem is my if else statement. My if else conditions will block the first two int values but then allow … | |
I am trying to try search a file for a record based on on a number is enter which is printed to a file under registratation number.I just want to know if my coding is correct.Below is a sample of the module. [CODE]{ struct custinfo info; FILE *customer; char number[5]; … | |
I am using Ben Forta AutoSuggest example. I have the autosuggest working but I need to get another record out of the database to send the user to the right url. I don't know how to do this, can someone help me out? CFC: Code <cfcomponent output="false"> <cfset THIS.dsn="myprod"> <!--- … | |
Thanks for all the help so far but i am writing to a file numbers from as string and i am getting incorrect results.how may i correct this | |
hi I have a problem regarding calling print() method through main().It asks to pass arguments but i already done so using constructors.Any help in missing statement. [code] public class ElectricityBill { public static void main(String args[]){ current c1=new current(500,"January"); current c2=new current(1600,"February"); c1.print(double total,String month);/[COLOR="Green"]/this is the place i wanna … | |
I'm using [code=php] for (int i = 0; i<mdim_; i++) { for (int j = 0; j<ndim_; j++) { data_[j * ndim_ + i]; } } [/code] to change the matrix 1 3 2 4 stored in data, into row order. If I print data_[j * ndim_ + i]; to … | |
Hi there folks, I got some minor problem with this code: [CODE] #include <stdio.h> #include <stdlib.h> int main(){ char option, factor; printf("Choose your operator: \"+\" ; \"-\" ; \"*\" ; \"/\" \n>\t"); scanf(" %c", &option); printf("You chose : %c \nChoose your factor:\n>\t", option); scanf("%d", &factor); printf("You chose : %i\n",factor); printf(" … | |
Hi everybody, I have this File Upload control, whereby the user is granted a limit of 5 uploads. And so, the user clicks on "Attach Another File", and decides to attach a file ONLY in the first File Upload control. My problem is, I want the user to be able … | |
[code] void encrypt::transform() { int length = 0; char *buffer; char ch = ' '; int i = 0; fileEncrypt.open("filter.txt", ios::in | ios::beg); fileEncrypt.seekg(0, ios::end); length = fileEncrypt.tellg(); fileEncrypt.seekg(0, ios::beg); buffer = new char [length]; fileEncrypt >> ch; while(!fileEncrypt.eof()) { buffer[i] = ch; i++; fileEncrypt >> ch; } for(int j … | |
[B]FIREFOX and CHROME script problems?? [/B] in my code is a simple script that shows an error message if input value didnt meet the requirements. [U]the example is[/U] [I]register_form [/I] - name of the form [I]username[/I] = name of the input type text requirement is string must be greater or … | |
Hi av got fields (Amount paid, balance & Total) now need codes that will display a negative value in (field Bal) when a person pays more thank u | |
Can anyone tells me that strstr can use to search a record with typedef struct{}??? I was just asking... and if its true then can i know how?? im just a beginner with a great project from our instructor T_T,.,.,,..,., | |
anyone help me please I need to convert this C++ to assembly int number = 0; int targetValue = 1; int nbrTerms = 0; cout<< "enter number" cin >> targetValue; while( nbrTerms <= targetValue) { nbrTerms = nbrTerms + ( targetValue * targetValue) targetValue ++; } cout<< "total terms: "nbrTerms; … | |
I'm currently working on some ajax polling stuff and I don't want do pass through all the process if nothing has changed in the xml file I'm using for my asynchronous process. However after each polling I want to set the value DateTime.Now, but cannot do it with [CODE]Request.Form[ "lastPoll" … | |
[code] // fibonacci2.cpp : Defines the entry point for the console application. #include "stdafx.h" #include<iostream> using namespace std; int fibonacci(int n)//declare function { //declare variables int x1 = 0; int fib ; int x2 = 1; if(n >= 1) { for(int i=2;i<= n; i++) { fib = x1 + x2; … | |
I have a 2x2 matrix A stored in data_ 1 3 2 4 (column major order) and a 2x2 matrix B stored in b.data_ 5 7 6 8 and I'm using the function below to append (stick underneath) B to A. so my result should be 1 3 5 7 … | |
Hey I wanted to know how to make a number pyramid with (for example) the following formation: (This would be for 5 rows, with 5 being a variable and as you can see in the last row the last number is 5 on each end) [IMG]http://img199.imageshack.us/img199/2239/numbers.png[/IMG] [url]http://img199.imageshack.us/img199/2239/numbers.png[/url] So far I … | |
Hello all, Just wondering if I could pick some brains, I'm currently learning PHP and have been messing around with a fun project, currently developing a simple login / register script. The error that I keep getting is - [b]Parse error: syntax error, unexpected T_ELSE in /home/danhumph/public_html/smithy/login.php on line 27[/b] … | |
Hello, i want to use jquery to make a fade in/ fade out menu / sub menu structure. the structure works, the only this is that when i hover from the topic to the corrisponding submenu the submenu fades out and back in. how can i stop that? the function … | |
I'm trying to find a formula for copy[3] = b.data[0] copy[4] = b.data[1] copy[5] = b.data[2] copy[9] = b.data[3] copy[10] = b.data[4] copy[11] = b.data[5] letting the right hand side be b.data[i], I can see this is like copy[3] = b.data[0] multiply by 2, add 3 copy[4] = b.data[1] multiply … | |
I am a very new beginner so please excuse my ignorance. I literally started learning c++ 3 days ago. I am attempting to read a file and split each line into 2 arrays. The first half the line is just text and i would like to store it for re-output … | |
Hi, I've been working on a sudoku game, which seems to be working pretty well so far. I've managed to make a basic solver, and the interface is pretty nice :icon_cheesygrin: But i'm having problems trying generate a random unique sudoku. I need to be able to create 3 different … | |
Hi fellow forumers...I am new to this forum and programming. Regarding the above topic..Is there and code that solves this sort of question? My question:A program that input 10 integers and find the largest value. Thanks very much! | |
Hi, I am using the trace facility to find the viewstate size of controls on postback. I have added a label , a textbox and a submit button to the webform. However after posting my page and viewing the trace.axd page I find that the viewstate size bytes and controlstate … | |
I am currently working on a program that inputs a line from a file, then reads the vowels in the file, next I am going to count the number of letter a within the program. Below is the program I have done but it is not working. It opens the … |
The End.