132,726 Archived Topics
Remove Filter ![]() | |
I have done a vb script to map the network drives. It works fine for me. But when I checked with a couple of other PCs, it doesn't work. Could anybody tell me why this is happening? Here is the code: [CODE]Dim WSHNetwork Set WSHNetwork = WScript.CreateObject("WScript.Network") On Error Resume … Software Development visual-basic | |
I have this routine in VB that takes one pipe delimited text file and splits it into multiple text files according to one key field. The records in the text file look something like this: WTX_2.0|O|F|1234|andre.couturier@rrs4.ca |5678|NBSID09876|O_20071121.TXT||1511:AE00001R||11152007||SAMPLE COMMENTS WILL GO HERE ||599|12 |401 WTX_2.0|O|F|1234|andre.couturier@rrs4.ca |5678|NBSID09876|O_20071121.TXT||1511:AE00002R||11152007||SAMPLE COMMENTS WILL GO HERE ||599|12 … Software Development file-system open-source visual-basic | |
Hi, plz can u help me i want to sort my file (sort the second column) and i don't find any solution do u have some idea for me plz!! my file : [CODE] 1176890540542339 1 102 2005 4 1176890540575285 0 103 2005 4 1176890540575285 1 103 2005 4 1176890540608694 … Software Development c++ | |
Hi I am coding in x86 DOS. When I write a code and assemble it and run it in debug, it works perfectly fine but if I run i as a standalone application, it works for small 3-4 line code but not for 8-9 and larger code. PLease Plesae help. … Software Development assembly | |
Can anybody help me with getting managed code to talk to unmanaged code? I'm okay coding via clr, but I don't have a clue what I'm doing when I try using the GUI interface. I'm using MS Visual C++ 2005 and I'm totally lost VB is much easier. I could … | |
can i ask for a program in tasm that can solve arithmetic, example 1+1=2 the program is written in tasm compiler.. or code for addition in tasm.. thx.. Software Development assembly | |
![]() | i have written this program. it excecutes without any errors and even gives me the correct answer. the program is to tell whether the integer is odd or even. the problem is that i want a series of integers and passes them one at a time to function even. Sample … Software Development c++ ![]() |
Hi all, I am writing a script which parses /* to find out the commented portion of the code. I am using grep "/\*" file.c Following is the code snippet for i in `grep "/\*" file.c`; do . . . done but this is not giving the lines greped from … Software Development shell-scripting | |
Hi there, I am fairly new to programming and trying create a program to parse csv data into an array. I have been following an example I found on this site but I am running into a segmentation fault (even if I copy code directly). I am fairly sure the … Software Development c | |
Hi everyone! Please help me, I am beginner of the vb.net , I want know how to create dataset coding and binding a textboxes,combobox and masked textbox pelase help me | |
So I started on the final section of my C++ project and got almost done until I re-read the requirements and saw this: [B]Do not use arrays.[/B] *crap* Is there any other way to store multiple inputs than arrays? Basically the idea is to use a recursive function get a … Software Development c++ | |
[code] import java.util.*; public class Prj3 { static int data[] = new int[20]; static Scanner kb = new Scanner(System.in); static Random rnd = new Random( 1234 ); static void Create_array(int arr[], int max) { int i; for (i=0; i<100; i++) arr[i] = rnd.nextInt(max); } static void Draw_array(int arr[], int col) … Software Development java | |
Ok Now I will send you my code procedure TAnaform.TrnsferButton1Click(Sender: TObject); var i:integer; begin for i:=1 to 82 do TLabel(DisplayForm.FindComponent('Label'+inttostr(i))).caption:= TMemo(Anaform.FindComponent(('Memo'+inttostr(i)))).Lines[0]; DisplayForm.Show; end; But when I entered the '0' inside "lines" property of memo components in object inspector instead of "Memo1","Memo2" and others... the code is working truely. If I … Software Development pascal | |
what does the following do? int array[6] = { 5, 3, 4, 17, 22, 19 }; int* ptr = array[0] *ptr = -1; thank you! | |
Hi there, I am currently working on a program that reads an inventory list from a file, sorts the list, and then determines the value of the inventory based on the price and the quantity on hand. After these calculations I need the program to write the output to a … Software Development c++ | |
Hi all, I have a little question, my compiler is giving me the following error: error C2784: 'std::basic_ostream<_Elem,_Traits> &std::operator <<(std::basic_ostream<_Elem,_Traits> &,const std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'std::basic_ostream<_Elem,_Traits> &' from 'std::istream' see declaration of 'std::operator <<' Here is the main part of my project. [CODE] #include <iostream> … Software Development c++ user-interface | |
ok i hope someone can helpme i need display a menu like a presentation page Name Adress Phone using assambly code, but when i put asm{ name db 'homer simpson','$' adress db 'everygreen','$' phone db '555-555', ..... mark unknow assambly code name db ...... I using TC but i need … | |
All the help I have received in here has been wonderful and I am very glad that there are good people in here to help us newbies. I know I sure need it! So these last few things would be nice to get some help with and then I will … | |
hey .. please i need help with this code when i write it and i start in case 3 .. i've error massage .. illegal case .. why is that ? [CODE][LIST=1] [*]#include <iostream> [*]#include <string> [*]using namespace std ; [*]class employee [*]{ [*]private: [*] string name; [*] int salary; … Software Development c++ | |
Hi, I have an array with elements filled with values such as 36.0119. I am trying to find a way of rounding each value to the nearest whole number E.G. 36. To show i have attempted this i have used cout with the array and set precision which is ok … Software Development c++ | |
Hello, I am running a heuristic search algorithm (running on Windows XP), and at each iteration, I want to write results in an output file. The issue that I have is that after a number of iteration, my program crashes at the line where I have the "fputs(str, f);" (See … | |
does anybody has a debuger code.means how to make debugger in assembly language... Software Development assembly | |
![]() | Im getting 2 of these warning message upon compiling the programme below. Cant figure out why. can someone help please? warning C4700: local variable 'rate_of_pay' used without having been initialized warning C4700: local variable 'hours' used without having been initialized Question Develop a C++ program that uses a while structure … Software Development c++ |
[Code=C] #include <stdio.h> #include <stdlib.h> #define SIZE 5 #define MAX 10 void fillArray(char arr[][MAX]); void printArray(char arr[][MAX]); int fileOpen(void); int main(void) { char arr[SIZE][MAX]; int success; fileOpen(); if (success == 1) { fillArray(arr); printArray(arr); } else printf("File access failed"); return 0; } int fileOpen(void) // ** this were i am … Software Development c file-system | |
Hey folks. I am working on a program (really its 2, but they go hand in hand). The first one takes a text file which contains the following: last name first name SSN Salary Years employed There are 7 entries in the text file to be read in... The program … Software Development c++ data-structure ios | |
How many bools can I connect?? e.g. if((x>j) || (y<t) || (m=c) && (x != 0)) Please pardon any improper syntax, and any guidance is greatly appreciated (My text doesn't go into great detail with bools, but we're working with classes right now, and in one example there are three … | |
I have built a web server in python for a local intranet. I would like to get the user's userid when they click on a link on my web page. Is this possible?? Software Development python web-server | |
hi i am working on a challenging assignment where i have a list of different animals in an ecosystem and i have to show the relation ships the outpu requires to" # List of all species (in alphabetical order) # List of species at the top of the food chain. … Software Development python | |
#include <iostream> #include <fstream> using namespace std; int main( ) { ifstream fin; ofstream fout; fin.open("income.dat"); if (fin.fail( )) { cout << "Input file opening failed.\n"; exit(1); } fout.open("total.dat"); if (fout.fail( )) { cout << "Output file opening failed.\n"; exit(1); } double next, sum = 0; int count = 0; … Software Development c++ | |
i have 2 executable files. From one of them i'm calling the other one. it is also executed correctly, but does not return 0. why? backup.c file : [CODE] #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/time.h> #include <unistd.h> #include <mysql/mysql.h> int main(int argc, char * argv[]) { if(!execl("/home/user1/exec_work/binary","/home/user1/exec_work/binary","serdar","ilter",NULL)) { … Software Development c | |
![]() | Im trying to write the programme for the following question, and im really struggliing. I will be reaaly thankful if someone can give me some tips or a programme for this. I would also like to point that im new to programming and this website so please give me some … ![]() |
Hi all, [CODE]1: #include <iostream.h> 2: 3: int main() 4: { 5: cout << "Hello World!" << endl; 6: return 0; 7: }[/CODE] In the above code does the line 6 (return 0), required by the operating system,that means tells the operating system a program finish? If true, what the … Software Development c++ operating-system | |
Hi, I have a small program that displays a number of pictures by using a timer. I don't know if this is the best way to do this, but it works. What I would like to do is add a cmdButton so that every time I hit the cmdSwing button … Software Development visual-basic | |
I believe the disp_sum (last) call is incorrect because the program will execute but the sum will not be displayed. Project is due tomorrow (11/27) so prompt assistance will be greatly appreciated Thanks in advance! ; A Simple Calculator that performs basic arithmetic (+ - * /) .model small .stack … | |
I want to parse a tree the tree is like (((1,2)3,4)5,6) see the attached parse tree the program would produce an array from root to each leaf [URL=http://allyoucanupload.webshots.com/v/2002642992068581724][IMG]http://aycu25.webshots.com/image/35944/2002642992068581724_th.jpg[/IMG][/URL] So I would like to have 4 arrays [CODE] a[]={5,3,1} b[]={5,3,2} c[]={5,4} d[]={6} [/CODE] I would like to have a general format … Software Development c | |
[code=c++] #include <cstdlib> #include <ctime> #include <iostream> using namespace std; // prototype and name space declaration bool testAnswer(int, int, int); void correctOutput(); void incorrectOutput(); bool mathTest(); //------------------------------------------------------------------ //------------------------------------------------------------------ //------------------------------------------------------------------ int main() { if (mathTest()) { !(mathTest()); mathTest(); } } bool mathTest() //main function { srand((unsigned)time(0)); // random number generator int … Software Development c++ | |
Hello. Beginner here so bear with me. I'm creating a game as a final project for my university but at the moment I'm stuck. I'm just wondering how you go about making buttons. In the code, I have created four rectangles which will eventually be able to be clicked on. … Software Development python | |
Hi everyone! I have been working with VB5 for a quite while now and couple of days ago I encountered bizzare problem wiht custom toolbar. Here it is: My form has a custom toolbar with approx 10 buttons aligned in one row, with a couple of placeholders to separate groups … Software Development visual-basic | |
hi guys, I am making a program in which I have to enter start date and time and stop date and time in format like 01:05:07 15:26:57 I know that i need to use <time.h> function for that but i don't know how can i calculate the difference between time. … Software Development c++ | |
Hi everybody, I want to make an app with command line parameters like: "dir *.jpg", when "dir" is the app and "*.jpg" is the parameter. Can anyone can help me. Software Development visual-basic | |
Can anybody do this; The algorithm of Chang and Roberts achieve the 0(NlogN) (N the number of nodes) complexity of messages in the medium case, but at worst however it achieves 0(n^2). The algorithm of Peterson of/Dolev-Klawe-Rodeh achieves complexity of messages the O(NlogN) at worst situation improving the algorithm of … | |
Hi all! I need to create regex that matches everything before some specified (whole) word. Lets say I need everything before 'have' in such text: What ^7^*#/> I @@3->;: have to do with this *~~@}}], hmm...? ...so I would like to have "What ^7^*#/> I @@3->;: " as a result … | |
greetings! I designed simple program with combobox and i want to lock this combobox. I dont want to allow the user to type in this combobox. Only the list item data can be selected and not allowed to type any value.. for example: Displaying "Gender" using combobox . The item … Software Development visual-basic | |
Hello I am new to Unix. Please help me out. My Scenario: I am first collecting all the file names present in the directory with structure myinfo/yourinfo/supplierinfo I have four files with the names myCollector.java, yourCollector.java, someCollector.java, everyCollector.java. in the directory. I am reading the file name and i am … Software Development shell-scripting unix | |
Hey i have been on many fourms and stuff asking people to help me slove me this problem but no one seems to know how to do it including my self,if anyone here knows how to change this into flowchart it would help a lot ty :) INPUT VARITEM 1 … Software Development visual-basic | |
Again hi. I want to learn about how I will write these two components :Label and Memo using one loop such as "for" loop in delphi. For example: I have 50 memo and I m transferring the strings in line 1 to labels. Can you help me about how I … | |
[CODE]\** * InventoryProgramPart3.java * @ author Amy Summers * Inventory Program which uses an array to store items and creates * a subclass of the CD class * */ import java.util.Arrays;//program uses Arrays class InventoryPart3 { //main method begins execution of Java program public static void main (String[] args) { … Software Development java | |
I'm a beginning C++ student/programmer, and I'm having a difficult time coming up with an algorithm to solve a programming problem. If someone could give me a recipe on how to go about solving the following problem using c++, I would appreciate it. Problem: A school has 100 lockers and … |
The End.