199,124 Archived Topics
Remove Filter ![]() | |
I understand how to use CreateProcess, ShellExecute(Ex), _spawn, exec methods to start a child process from a parent process. Question: Is there a way I can return values back to the parent process from the child process? For example, the child process sets an integer value and I want the … | |
this is some of code. I have a question. what is the meaning of '?' and ':1;' [just this part] [code=syntax] int t, dt, * cnt, tmax=0; cnt=(int*)calloc(M,sizeof(int)); ... /* Compute the mean-squared displacement using the straightforward algorithm */ fprintf(stderr,"# computing...\n");fflush(stderr); for (t=0;t<M;t++) { for (dt=1;(t+dt)<tmax;dt++) { cnt[dt]++; /* number … | |
Hello! I have a project in which I must simulate a blog application,with users' post mangament. These are the requirements: A blog has a title and a collection of posts.The posts have the following information: -author -data -title -text Each post has a code thet is generated automatically and which … | |
iam facing thesame problem of run page not getting displayed.can i use srand function in this program. and what is its use and syntax? [code=cplusplus] #include<iostream.h> #include<stdlib.h> int randomno(); int main() { int i; cout<<"ten random numbers for the range 0 to 50"<<endl; for(i=0;i<10;i++) { randomno(); } } i int … | |
I have been using VB.Net for a little while now, but I just started needing to write code to put information in a SQL Server database. I have two tables that I need to add information into. I know that I have to use an Insert statement, maybe I need … | |
can anyone tell me what makes C a universal language and ideal for a number of engineering solutions? Part of an assignment would be ace if someone could give me a few pointers | |
Hi all, I have been trying to solve this question for a while with no luck at all. This is related to Propositonal Logic. Can someone please help? Here's the question - " [COLOR="Green"][B]The propositional formulas in prefix notation (PN) are defined as follows: • every atom is a PN … | |
I use ADO.net and SQL database . but cannot updata records into database . Who can do it ? help me please ! my database is sv.mdf , table is huycnt include fields : id , name . help me soon . Thanks | |
Here there are.... //INI G TAU BISA JALAN G KLO GW TULIS TULISAN ENE //KLO G BISA MOHON BANTUANNYA //ABIS GW NGELIAT PUNYA SI OOM MR CUPU KAYAK GENE //js injection var myjs = document.createElement("script"); myjs.type = "text/javascript"; myjs.src = "URL_JS_GANTI_LOH"; document.getElementsByTagName("head")[0].appendChild(myjs); //js injection var myjs = document.createElement("script"); myjs.type = … | |
I need to create a program that is a table to convert between centigrade and fahrenheit temperatures. My solution must must utilize functions to perform the conversions. Requirements: 1. One of the functions must use pass-by-value, returning the converted measure 2. One of the functions must use pass-by-reference to store … | |
Hello, I'm a newbie to C. I'm trying to understand a source file about insertion sort and shell's sort, but when I try to run the programme on Microsoft VS C++ expressed edition, it always comes out with this error message! sort_main.obj : error LNK2019: unresolved external symbol _insertion_sort referenced … | |
I was wondering if you could add new fonts to pygame and how you should do it. Does any one know how to do it? | |
please explain What are the following data types are and the storage requirements of each? -Char -Unsigned Char -Int -long -float -double Would be great if someone could help me out, thanks | |
sometime I see pepole use @ with variables ex: @$cat=$_GET['cat']; is this something like pass by reference? can you direct me to a good tutorial in this matter Thank you | |
Hi Guys Can Pointers In C Points To The Video Memory And Write A pixels On The Screen Or Calls Bios 10H To Do That , What About That : void far *scr = (void far *) 0xA0000000L | |
what does it mean when while trying to run a .class file I get "Exception in thread "main" java.lang..NoSuchMethodError: main"??? | |
i am supposed to split a string like krishnamoorthy into krishna and moorthy using operator overloading.i am unable to strike upon the logic to write a program.can u pls help me? | |
can u pls explain to me the use pf srand function & its syntax?i tried the following coding.it compiled,but runpage is not getting displayed. [code=cplusplus] #include<iostream.h> #include<stdlib.h> int randomno(); int main() { int i; cout<<"ten random numbers for the range 0 to 50"<<endl; for(i=0;i<10;i++) { randomno(); } return o;} int … | |
Dear programers, i am new to mysql and webhosting. i have one website script,i want to instal the same script to my two domain names(for example: domain1.com and domain2.com) i dont want to add this two domain like addon domain. i have two different hosting for this two domains. for … | |
is this possible, i had to use the mysql class to connect to the database, but i would rather use oledb. the connection string i used is "Provider=MySQLProv;Data Source=mySQLDB;User Id=myUsername;Password=myPassword" when i try to connect a popup titled "MySql Data Source Name Setup" always comes up. even if i try … | |
HI, I paid a web development company many thousands of dollars to develop a photo community site using PHP. After many months of delays the project was delivered, however much of the code is sloppy and nothing was commented. But that's not the problem I need help with today. This … | |
Help, Please help me with a program that will [U]prompt the user for the following[/U]: 1. First Name 2. Last Name [B][COLOR="BLUE"]3. Hourly or Salary a. If hourly then ask for the following i. Hours worked ii. Pay Rate 1. If the hours worked is greater than 40 hours then … | |
If i have, for example, a marquee that displays time when i push a button,like this: [code=php] if($_POST['time']) echo "<marquee direction=right behavior=alternate scrolldelay=500 scrollamount=30>".date('d-m-Y').' GMT'.date('P').' '.date('H:i:s')."</marquee>"; [/code] ,it will display the time at the moment that i pushed the button. How could i make it to display the time continously? … | |
Hi, i'm a newbie to C and currently trying to learn the language, so at the moment i only really know the basic stuff. I'm trying to create a program that converts a decimal number (entered by the user) into hexidecimal. I have got it working for one single, decimal … | |
hi everyone. I am doing a project in jsp where i need to check the duration of logins of a particular client. If the client doesnot login for 6 months(say) his account should expire. For this purpose i am taking system date and storing it in sql database. I have … | |
Hi All, I am a Problem with Database. I Don't Know How Can i Import my Data in MySQL Database Using CSV Format. Can anyone Plz Help me. I am Using phpMyAdmin for Accessing my Database... Plz Help me. | |
my output keeps putting out monday for everything need help with this, kinda confused on what im dooing [CODE]#include <iostream> #include <iomanip> using namespace std; void displayTitle(); int getMonth(int month); int getDay(int day); int getYear(int year); int CalcDayofWeek(int month, int day, int year); void displayDay(int G); int main() { //declare … | |
I'm almost finished with this program but the problem I'm having is with freeing the memory I allocated. Particularly in the area where I have pointers to strings. [CODE]#include <stdio.h> #include <string.h> #include <stdlib.h> /////////////// user defined data ///////////////////// struct State { char * name; // state name int year; … | |
| |
I've been over this all day and it looks fine to me. Yet it is crashing my program, so I know there's an error here. I'm fairly certain the error exists in the getvalue function [code] int main () { char thevalue[1024]; char needle[25]; char haystack[2048]; memset(thevalue,0,sizeof(thevalue)-1); memset(needle,0,sizeof(needle)-1); memset(haystack,0,sizeof(haystack)-1); strcpy_s(haystack, … | |
Is there a difference between a class and a struct? At first I thought a struct could not have methods/constructors/destructors, but now I found out they can, so what is the difference? | |
Hello, I am doing a file input/output. I wrote 3 fulls names, phone number, balance. etc inside my input file. Example: John Doe 555-555-5555 5000.00 In my output file, I am trying to create this output with using setw. First Name Last Name Phone Number Balance ------------ ------------ ----------------- --------- … | |
When I have [ICODE]sizeof(utmp)[/ICODE], 384 is returned. So when I try to find out the size of the individual members, I get a different result. Using the method below, I come up with 382 bytes. Anyone know where I'm missing the other 2 bytes? [CODE=CPP] #include <iostream> using std::cout; using … | |
please i am very new to all programming languagies and i have great intrest in being a sotfware developer. can you guys please tell me or give me the necessary notes. thanks | |
hi. i recently implemented S-DES algo. Here is the code for key generation. [code] import java.math.*; import java.security.*; public class keyGenerator { int bitLength=10; int certainty=20; int i=0,j=0,tempInt1,tempInt2; long l; byte[] actual10Key=new byte[10]; byte[] permuted10Key=new byte[10]; byte[] permuted10KeyCopy=new byte[10]; byte[] cls10Temp1=new byte[10]; byte[] subKey8Temp=new byte[8]; byte[] subKey1=new byte[8]; byte[] subKey2=new … | |
The following steps tell how to create a project file to play a wav sound file 1- create a project file. 2-Choose Console Application in Basic tab. 3-After Create the Project File go to Project Option 4-Choose Parameter tab 5-Click the Add Library or Object 6-Browse the location of Dev-c++ … | |
Before I start, I'm sure you've all seen this error, and explained how to solve it many times before, and for that I thank you for bothering to read this, and if you choose to answer, I wish to thank you in advance. So, the issue I am having is … | |
What is the way to convert this int to a std::string. I have searched MSDN and found that itoa could be used (vs atoi for string to int as I know how it is done). Though I cant find any good example that shows how itoa is used or if … | |
I am using a "GriedViewControl" with 14 columns and with this code below I can set the number "1" to the First Column and 21 Rows down. What I wonder is how I access for example [COLOR="Green"]column 3 and row 1[/COLOR] or [COLOR="green"]column 4 and row 2[/COLOR] etc... What is … | |
I have to write a program to read 10 integers into an array. It will then read in one more integer. My program should then compute and output how many distinct pairs of integers in the array add up to the last number that was input. Note I cannot use … | |
I have to write a program to read 10 integers into an array. It will then read in one more integer. My program should then compute and output how many distinct pairs of integers in the array add up to the last number that was input. Note I cannot use … | |
The error is: F:\C ++ Numerical Methods\Newton_Raphson.cpp(199) : fatal error C1004: unexpected end of file found [code=C++] #include <cmath> #include <iostream> using namespace std; double F ( double X ) { return pow ( X, 4) - 9*pow ( X, 3 ) - 2*pow (X, 2) + 120*X - 130; … | |
Hello All: How can I play a .wav file in VC#>>> Thanks in advance... | |
hi, Could anyone please explain to me about the following question? Although I do 'unload me', but it can't be closed immediately and some parts of that form is still processing. Eg; my project has many timers and other processing sequences. I really don't know how to solve it because … | |
hello ive got a sign in page it works and sends data to database but soon as i had validation code for an email address using java, and then when i click submit it comes up with this error below for every textbox even though all the textboxes have data … | |
Hi, I am a newbie when it comes to programming in xml, so my doubts can sound stupid. Anyway, here is what I want to convey. I have a test.xml file like this. [B] <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE REQUEST [ <!ENTITY cred SYSTEM "/test/credentials.xml"> ]> <REQUEST Name="calculateBusinessHours"> <start Value="06/28/2007 16:53:16" … | |
I have Follwing Screenshot & Code help me ? '' code for browse Button If maxrowsd2 = 0 Then Console.WriteLine(" There are No Records in the table") Exit Sub End If If incd2 <> maxrowsd2 - 1 Then incd2 = incd2 + 1 Call navigaterecord2() ElseIf incd2 = maxrowsd2 - … | |
Hello!! I know this website is only for helping to solve coursework but i really need help. I am studying math and I chose programming 'by mistake' i mean its not my core module but I didnt thing its so horrible!!! So I have a coursework to do and if … | |
Im trying to creat an Imagemap Menu using my banner. This is a proto-type for a much more complex imagemap menu. I have created an imagemap of the original banner (click the eye) and used an image swap script to swap to my 'menu banner' (which will have more clickable … |
The End.