199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ajayb

#include<stdio.h> #include<string.h> void fn (int *ptr) { static int val=100; ptr=&val; } main() { int i=10; printf("%d", i); fn(&i); printf("%d", i); getch(); } The output of the above code is 10 10. why not 10 100? What is happening inside fn?

Member Avatar for Adak
0
100
Member Avatar for herkfsu

I have an idea for a web site and would like to build one. I know nothing about HTML, PHP etc, but am willing to read and learn as I go. I want the web site to have users and I want the users to be able to participate in …

Member Avatar for chrishea
0
159
Member Avatar for f1r0z3

Hello... I'm trying to write a program in C (using POSIX library) where the parent process should fork up to M processes and play "connect four" or "four-in-a-row" with each-other until one of them wins, and when that happens, the process should terminate. This can be done either via pipes …

Member Avatar for Adak
0
236
Member Avatar for mikeflash

Hey all, I'm developing a web app for a school, and among other options I need to generate PDF files from a pdf template, those pdf files must include personal info from clients, so they require to take the values from mysql which is easy to do. However, I don't …

Member Avatar for chrishea
0
310
Member Avatar for brendeg

Greetings all!~ I'm a newb when it comes to C++ and could use a bit of help with this code. It is supposed to take any character input, store it in array and then if there are lower case letters make them upper case. After if goes through the first …

Member Avatar for WaltP
0
505
Member Avatar for pato wlmc

Well, i'm really new into programming, and I'm not a native english sepaker, so please, if you dont't get what I'm saying don't get mad :) What I'm trying to do is this: [...] int i, numberOfStudents string studentName[100]; cout<<"Input the number of students"<<endl; cin>>numberOfStudents; cout<<"Input the student's names"<<endl; for …

Member Avatar for WaltP
0
3K
Member Avatar for Lelly

Hello, Can anybody explain to me how can I do: Implement the Random partitioning version of Quicksort. Take care that your data array is not copied (by value) into your subroutines, because you will sort the RandomEnglishDictionary.txt file. Report the first, 1000th and last elements in your sorted list. Thanks

Member Avatar for mrnutty
0
534
Member Avatar for arezz09
Member Avatar for codeorder
0
130
Member Avatar for Xcelled194

Hi guys, I'm making a program that will display the actual balance output of a sound. It's going to be used with a game that uses 3D sound. What I want to do is have the application monitor audio output from the system -- it can use the Stereo Mix. …

Member Avatar for Xcelled194
0
147
Member Avatar for pseudorandom21

Is there a way to define a property with default get/set functionality for a variable?

Member Avatar for Momerath
0
99
Member Avatar for rotexhawk

Hello, I am trying to compare two characters of different strings but it quits the loop. I know i am accessing the right chars caz i have tested it with print multiple times. [CODE].data mainNumPhrases: .word 4 mainPhrases: .word mainPhrase1 .word mainPhrase2 .word mainPhrase3 .word mainPhrase4 mainPhrase1: .asciiz "abcdefghijklmnopqrstuvwxyz" mainPhrase2: …

0
152
Member Avatar for InfestedLawyer

I've seen this problem a few times and I've tried what they've done. I am still not passing my Array correctly. I'm all templated up because of last files I have used for this program (Not in the code). If that could have something to do with it let me …

Member Avatar for InfestedLawyer
0
163
Member Avatar for NickOOOShea

Hey guys, so I have a bit of a problem. I have an idea for a game, and I have all the 3d models and such, but I have no clue how to program. I hired a couple of guys to work for me, but here's the thing. I have …

Member Avatar for DaSpirit
0
183
Member Avatar for bkimbriel

Hey, I have basically zero knowledge of javascript, ajax, etc so any help is much appreciated. Basically I'm making a site that has an html option drop down list. I was wondering if there was a script out there / if one of you could write the script for me …

Member Avatar for bkimbriel
0
115
Member Avatar for chess2009

Here is my code, I would like to check my input for errors in the first and lastname parts. it means that these two parts should contin just upper and lower case letter and hyphens(cin must be used as well). [CODE] #include <iostream> #include <string> #include<cstdlib> using namespace std; struct …

Member Avatar for jonsca
0
150
Member Avatar for mskittles

I have a simple if statement going from 0-360 in 30 degree increments. I want to store those values into into an array because I need to use them for simple calculations later. I think I need an dynamic array because what I tried below is not working. So I …

Member Avatar for gerard4143
0
95
Member Avatar for Truesteel

I am working on writing a program for my C programming class in which we have to make a basic program that can balance a checkbook. It prompts the user for a starting balance, can add and subtract amounts, and should deduct a $10 fee if the user overdrafts. The …

Member Avatar for jonsca
0
620
Member Avatar for Neversleepin

Hello, i would like to know how to implement the FileNotFoundException in my code. my code concatenate files from a Folder, it's working well even if there is no file. So i want to throw a message something like 'There is no file in the folder" If there is no …

Member Avatar for Neversleepin
0
178
Member Avatar for kishishi

How can i run my Subclass where my GUI code are written from my Main Class?What codes should i write in my main class??Here are my codes: Main Class: my main class is blank because i really dont know what to write. [CODE] */ package classpkg; /** * * @author …

Member Avatar for sabin_chirila
0
455
Member Avatar for angelmichael4

Hi there, Does anybody know how to refresh a windows form after inserting into a database using a dataTableAdapter or any other method for that matter without having to close the form or use the fill method to reload the form? The problem with this is that you are taken …

Member Avatar for angelmichael4
0
112
Member Avatar for Tuloa

Ok I drew a simple maze and what I am doing for collision to determine if you can move is use glReadPixels which I offset by the width of the square starting at the coordinates of the player which is passed to the function. Here is the function should someone …

Member Avatar for mike_2000_17
0
571
Member Avatar for peterbata

Hello all. First time post. A little background before I ask my very first NEWBIE question. Have committed myself to the design of a business software solution for an existing client. For approx 10 years, they have been using a custom MS Access database to keep track of their magazine …

Member Avatar for peterbata
0
387
Member Avatar for atticusr5

Hello all, So I am new to the whole STL List class, and I am a little confused. In the past I have always had two classes, a data class and a "linked list" class. So now I have a bit of a pickle when I try to make a …

Member Avatar for atticusr5
0
134
Member Avatar for Phil++

Hello, I'm trying to crate a login form that basically logs users in.. Now, I have created the database, and queried the table to see if the user exists.. But how do you check if the query returns whether it is or not? E.g. in PHP you'd use like.. [CODE] …

Member Avatar for Phil++
0
86
Member Avatar for Tripandthenfall

Hi there im really new to C++ and im supposed to be doing a maturity calculator and i keep getting error code c2661 no overload function takes 1 arguments. Please look over my code and let me know everything that i have screwed up on because im sure there is …

Member Avatar for gerard4143
0
87
Member Avatar for ROTC89

I am trying to make a maze program. It is suppose to display the maze before it is solved, then solved. After that is should be able to random generate a different maze that needs to be solved. My problem is that when I compile I get this, Any suggestions …

Member Avatar for ROTC89
0
212
Member Avatar for pritpal.singh88

hi friends and seniors i want to play (add audio files, remove audio files,and other oprations) players(like vlc) through c++ coding in Ubuntu help me out. how do i do this. i don't even have idea... i know how to accept input from command prompt

Member Avatar for ravenous
0
422
Member Avatar for jonspeidel

so im taking the advice of 1ML, seems like a smart guy, and starting a second thread for the controversial, main calling, system calling, devil code, anyway i did take your guys advice and cut out the main calls and reduce everything to one fuction. however! ladies and gentlemen we …

Member Avatar for 1ML
0
399
Member Avatar for egyptianeyes

Dont know HOW TO DO A PSEUDOCODE REALLY REALLY NEED HELP ON THS QUESTION! Imagine a computer randomly selects a card from a pack of cards. You have to guess what card it is. You have to guess the suit first then its value. After each guess for the suit …

Member Avatar for Enceladus
0
200
Member Avatar for bluetoot

hello people I Have this error mssg can anybody help me see what i am not seeing here that is wrong? thanks Parse error: syntax error, unexpected $end in /home/www/t.php on line 434 this is my php page [CODE]<?php session_start(); /****************************************************************************** * * * * * * ******************************************************************************/ /****************************************************************************** * …

Member Avatar for cilivili
0
261
Member Avatar for trevoray

I am trying to use a VB.NET AJAX Timer control within a Repeater. I cannot figure out how to get this to work. The timer needs to constantly check the server to see what time it is and then display a live countdown clock based on a given time. I …

Member Avatar for trevoray
0
522
Member Avatar for tomjrjones

hi i need help deleting files via php, i can delete files using php, but i want to be able to delete a file by typing in the name of the file. the directory i want to delete a file from is "users/" here is the unlink script i have …

Member Avatar for 84hd0ns
0
132
Member Avatar for FBG

I'm fairly new to PHP and I'm trying to create a simple database that gives the description and urls to articles I have put in my database. The problem is, when I put the column 'link' (with the resulting urls) between <a href> and </a>, the link is not yet …

Member Avatar for FBG
0
192
Member Avatar for Swoop_GB

I need to be able to check if another user has an excel workbook open (from a network drive) from within another workbook. user 1 has workbook1 open and has a macro to open workbook2, paste some data in, save it and close it, I need to add code to …

Member Avatar for Swoop_GB
0
154
Member Avatar for benjie987

Hi. I'm trying to create a 'search engine' like program. With a bit of searching i found this website which was relevant to what i needed to do.[url]http://www.dreamincode.net/code/snippet1278.htm[/url] [CODE] if (Regex.IsMatch(allRead, regMatch))//If the match is found in allRead { Console.WriteLine("found\n"); Console.WriteLine(regMatch); Console.Read(); }[/CODE] I thought "console.writeline(regmatch)" would display the related …

Member Avatar for Momerath
0
309
Member Avatar for ryan9108

hi pls help me i have error to my code in shortest job next [code]Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim cc As Integer Dim tt As Integer Dim wt As Integer Dim ryan As Integer = TextBox1.Text For escal As Integer = 1 …

Member Avatar for lolafuertes
0
151
Member Avatar for Mr.BunyRabit

Hey there. I have a problem. But to make a Long story short, ill just say what i want to accomplish. I have a Datagridview, I can re-arrainge the data inside of it, by clicking the column headers to "auto-Sort" my data. But now i insert another database into the …

Member Avatar for Mr.BunyRabit
0
114
Member Avatar for hughesadam_87

Hey guys, Tried doing a search on this, and couldn't figure out if anyone had posted it before. Basically, my question is this. I have a large python pipeline that outputs data to be compared in an ordered fashion where comparable entries are to overlay one another. For example: Entry …

Member Avatar for lolafuertes
0
84
Member Avatar for doomfrawen

Hello friends, this is the first time that i deal with cookies, i'm creating only one cookie for my site. This is the problem i want to validate one thing in my main page, that the user will be able to just click once a link, so in my cookie …

Member Avatar for diafol
0
194
Member Avatar for Adoshev

Hi everyone. In my application i would like to have some kind of custom fields, which can be defined by administrator. For example, we have two types of goods: food and toys. Those two types has common fields, e.g. name, price, amount. I'm planning that administrator can create custom fields …

Member Avatar for diafol
0
364
Member Avatar for Archenemie

I want to represent money which is usually to 2DP and I add up items using float values but whenever I have a value that is similar to the one used it only converts it to a string to 1DP. This seems like its going to be annoying to work …

Member Avatar for Archenemie
0
253
Member Avatar for pinkygirl

I have a multiline textBox control called "Post." I also have a singleline textBox called "Comment" and a Button called "btnPost." Whatever text I type in "Comment," It should display in "Post." Further more, the texts should be saved permanently in "Comment." And also, the texts shouldn't be overrided after …

Member Avatar for pinkygirl
0
78
Member Avatar for NicAx64

Hi , I hate the hard copy versions of the Books. Those books are really weight than me . I get hard time in carrying them. what I need is CHM or PDF or djvu , html or txt ebooks. where I can transaction (pay money and download ) those …

Member Avatar for smithjackson
0
117
Member Avatar for waveydaveywaves

I'm very stressed out right now and cant seem to fix the problem with this php/mysqli script. I will pay $10 through paypal to anyone who duplicates my code, (and its fixed) as a reply to this thread. My deadline is very close, and I need it within a day. …

Member Avatar for waveydaveywaves
0
445
Member Avatar for hotice47

hi i need help here i have a form which will be filled by user his name email phone number etc...and then that information will be submitted into my ZOHO CRM account and using that information i like to fill a Proposal and Generate a PDF of that Proposal and …

Member Avatar for hotice47
0
153
Member Avatar for bettybarnes

hi guys i wanna ask how to make warning messages when a user clicks the search button and found no record with what he input. here is my stored proc [CODE]ALTER PROCEDURE dbo.Searchbylastname /* ( @parameter1 int = 5, @parameter2 datatype OUTPUT ) */ ( @value1 varchar(50) ) AS /* …

Member Avatar for anucom
0
105
Member Avatar for ITHope

okay so we have to create a coursework submission system where students submit there assignments and the teacher can get the assignment grade it and send back to student and if they want to add ocmments they can add comments.. i am so lost with how to create a system …

Member Avatar for ITHope
0
176
Member Avatar for KazenoZ

Hello, This is something that I need to do in my program, that's a little though for me to define in a few words for Google, I couldn't find any useful results. The thing is this, I have a program that creates a bunch of code files(.cpp and .h, in …

Member Avatar for KazenoZ
0
148
Member Avatar for chocoprincess

the path is correct, and there is no error, but still, my database is empty... Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim myConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\Along\Documents\Visual Studio 2008\Projects\LCRS\LCRS\Lcrsd.mdb;") Dim myCommand As OleDbCommand Dim mySQLString As String Try myConnection.Open() mySQLString = "INSERT INTO REKOD_PELAJAR …

Member Avatar for deepakmjoshi
0
114
Member Avatar for olegb

Can someone help...this used to be so easy in C++ and VB6 :) I am dynamically creating multiple instances of a fairly simple class, tracking them via the Collections class in vb.net. I loop through the collection if I need to get to a particular instance to set some property, …

Member Avatar for crapulency
0
1K

The End.