199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for wiesiek

Can anybody explains me why following sql statements do not work with mssql? create table place (id int primary key, name varchar(64), parent_id int references place (id) on delete cascade); create table transport (id int primary key, name varchar(64)); create table trip (id int primary key, from_id int references transport …

Member Avatar for wiesiek
0
147
Member Avatar for eberger2001

I have a whole bunch of pictureboxes on my form, they have the name picturebox1, picturebox2...picturebox36, and I was wondering if there was a way I could access them using an array. Would I have to create them using a picturebox array and manually type in their locations and such, …

Member Avatar for eberger2001
0
99
Member Avatar for eng.N

hi , I'm using VB.net : I want to create login and check if the user is admin or not from the table in the database . in my database i have table(Log_in) contains : user name , Password , User Type . I create Login Form : [code=vbnet] Private …

Member Avatar for eng.N
0
191
Member Avatar for lllllIllIlllI

Hi Im pretty new to the whole C++ programming language but after learning python and java i decided to give it a go. I have been using tutorials at [url]www.cplusplus.com[/url] and that has been working fine but i came across a bit of code today i couldn't understand. It went …

Member Avatar for lllllIllIlllI
0
145
Member Avatar for mayafree2002

What mathematical function do ASR and ROR perform? For instance I have a two registers for storing a value of 2bytes (R5:R4) then I use [code=assembly] SomeProcedure: mov r20, r2 clr r3 clr r4 clr r5 cpi r20, 0 brge ProcLoop neg r20 com r3 ProcLoop: cpi r20, 0 breq …

Member Avatar for mayafree2002
0
141
Member Avatar for psarika

hello this is sarika.i am unable to get the code for inviting a friend and sending him the add request .pls frnds help me in finding the code.

Member Avatar for aanandbhi
0
62
Member Avatar for Se7Olutionyg

[CODE]// program 5: implement a decision structure for the following computation # include <iostream> using namespace std; //function used void instruction (); int main () { int income, tax,total; instruction(); // get the income cout << " input your income : $" <<endl; cin >> income; if (income <= 15000) …

Member Avatar for Se7Olutionyg
0
116
Member Avatar for iheartcoheed129

I am trying to write a program that reads an inputted sentence and takes each word an puts them on a separate line. Then the program needs to count the number of words. I really do suck at this and am only still in this class because I have to …

Member Avatar for jared_masc
0
126
Member Avatar for Ellisande

So for my project I'm working on, we have to simulate a game of Sorry. There are 1-4 players who are each represented by a color. Player 1 is always BLUE, 2 is YELLOW, 3 is GREEN and the 4th player is RED. Each color has it's own unique start/home …

Member Avatar for ST865
0
115
Member Avatar for jemagee

I'm trying to wrap my head around a database that will maintain 'box scores' for sporting events and be searchable on a various amount of fields including how a player performs home and away and in wins losses. I can't figure out how to design the tables properly for the …

Member Avatar for timothybard
0
156
Member Avatar for panpanf

I am studying c++. I have many questions about the layout of classes and compile of template, etc. I know these questions are concerned with compiler, but i don't know any book about the deep principle and design of some c++ compiler. Anyone can give me a suggestion?

Member Avatar for panpanf
0
105
Member Avatar for dmanw100

I am writing a program using strings to pass messages into SDL functions. For some reason the compiler will not let me create any string objects though. I get a 'string' undeclared error when I try to compile this code: [CODE]#include "SDL/SDL.h" #include "SDL/SDL_ttf.h" #include <string> int errorMessage(int errorNumber) { …

Member Avatar for dmanw100
0
156
Member Avatar for sladesan

Hi i am new to C++ I am have a error like the one above: on a linux working in the termial commands c++ round.cpp -lpthread -o moo.exe -- build file ./moo.exe -- running file get *** glibc detected *** ./moo.exe: free(): invalid pointer: 0xb7f226ec *** then shows ======= Backtrace: …

Member Avatar for stilllearning
0
169
Member Avatar for alin_yuhee

i'm trying to make a geme with c++ but i can finish it because i have trouble with the code :( .....this is the code of the game that i want to make.... [code=cplusplus] #include<iostream.h> #include<conio.h> #include<graphics.h> //using namespace std; int main(void) { double pos_x,i_pos_x,pos_y,i_pos_y,vel_x,vel_y; double time,gravity ; //t=time,g=gravity int …

Member Avatar for alin_yuhee
0
116
Member Avatar for lanilonzo

I am trying to put a multimap inside of a separate class for easy lookup of objects downstream in another main code that I am trying to access. If I put the multimap inside of my main routine and insert items from there it works fine. The second I move …

Member Avatar for stilllearning
0
71
Member Avatar for forwardlookguy

Hello everyone, I'm having trouble populating a dropdown box with mysql data. I have a table with columns makeid, yearstart, yearend and makename. Sample data would be 1, 1936, 1941, American Bantam. I want the dropdown to list the years a certain brand of car was offered. For instance, a …

Member Avatar for petrov50
0
229
Member Avatar for cescbayo

[COLOR="Green"]Hi,[B][I][/I][/B] Can some please help me the type of errors in programming?[/COLOR][B][I][/I][/B]

Member Avatar for stultuske
0
118
Member Avatar for ezkonekgal

what does it mean when you say' reading a java text file?' what does it mean when you say 'writing a java text file?'

Member Avatar for stultuske
0
168
Member Avatar for Liszt

With the code below I want to execute a task if the day is saturday and if the minute is >= 14. There is 2 things I wonder here. The code below is an infinite loop that never stops. So it checks for if this criteria is true but when …

Member Avatar for Liszt
0
183
Member Avatar for JimD C++ Newb

Hello, all! I'm getting an error that I don't understand, and would greatly appreciate some other input from somebody more experienced than me! So here's the problem: I have a tree that I can put nodes on, take nodes off, search, etc etc. I have one last function that I …

Member Avatar for chococrack
0
128
Member Avatar for guest7

Hi, I am getting the following error: test.o(5209) malloc: *** mmap(size=2097152) failed (error code=12) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug I am using finite recursive function in my program. Please help with my query. Thanks

Member Avatar for ivailosp
0
89
Member Avatar for Somersett

My program uses a buffer to store data as entered by the user, so that the size of the buffer depends on them. The first thing that came to mind is that I would reallocate memory each time more storage is needed, but that doesn't seem reasonable as the data …

Member Avatar for Somersett
0
102
Member Avatar for sundeeppro

[FONT=Garamond]I am in my final year of engineering and I have to submit do a project I aim to do it in .net linking my project done in my personal pc with internet explorer where the client's workspace will be provided. now the question arises to me of how to …

Member Avatar for mshahed84
0
90
Member Avatar for cctaco

I'm using joomla and sobi2, I don't like the layout and want to create a way for the site visitor to choose a category from the home page which should look like this. [URL="http://www.bidmyneeds.com/index.php?option=com_sobi2&Itemid=28"]http://www.bidmyneeds.com/index.php?option=com_sobi2&Itemid=28[/URL] Then I want them taken to this page. [URL="http://www.bidmyneeds.com/index.php?option=com_sobi2&sobi2Task=search&Itemid=28"]http://www.bidmyneeds.com/index.php?option=com_sobi2&sobi2Task=search&Itemid=28[/URL] Where the select catagory would be already …

Member Avatar for cctaco
0
274
Member Avatar for sundar.mn

HI and hello, This is sundar...i'm posting a project that i've done 'Airline Reservation System'... Pls go thru it and let me faults if any...and also how to enhance this code.... (pls find attachment)

Member Avatar for Ancient Dragon
0
154
Member Avatar for preetika

Hi I am new to javamail API. I added mail.jar and activation.jar in my jre/lib/ext.But still when I am trying to run programs I am getting an error of java.lang.NoClassDefFoundError in main .. can anyone help !! i really need to begin up coding as the deadline's approaching

Member Avatar for stultuske
0
87
Member Avatar for gregorynoob

okay, so i came up with this idea of making a program to evaluate my code. it's supposed to take the code, compile it, run it on several test cases (given in one file each) and report how the code did (which test cases it passed, which cases it failed...) …

Member Avatar for Salem
0
241
Member Avatar for maori

Hi Guys is there a way to incorparate the ping function into a app what i want to do is when the user trys to connect it opens a window and displays 1, pinging "ipaddress" and if succesfull displays connecting to host ie "ipadress" from above but if no ping …

Member Avatar for maori
0
343
Member Avatar for killdude69

Ok, I have a DLL I made. In the DllMain function, I have a variable called my_var (const char[13]). I compiled the dll (called "WGCL") and put it in the debug directory of my Win32 Project. I used /DELAYLOAD:WGCL.dll to Delay Load the DLL which seems to be the only …

Member Avatar for Ancient Dragon
0
153
Member Avatar for cuddykid

Hi everyone, i am trying to create a login box on my home page which will enable users to log in/out on the home page to my vbulletin forums. I have successfully managed to create a log in box - it works! BUT once logged in it remains the same. …

Member Avatar for cuddykid
0
337
Member Avatar for veledrom

Hi, How do i check result of out parametter of stored procedure in php? [code] CREATE PROCEDURE `username`(IN name_in varchar(10), OUT name_out varchar(10)) BEGIN SELECT name FROM table WHERE name= name_in; END; [/code] [code] //This always returns 1 even there is no record in the table. $query = "CALL username($name, …

Member Avatar for veledrom
0
134
Member Avatar for tytelizgal

Hello, Here is my problem: I declare the vector struct in my .h file and then try to access its fields in the .c file. I did declare a variable of type vector. However, I get a compiler error saying that 'vector has no member named' [x] where x is …

Member Avatar for ahamed101
0
94
Member Avatar for nishant3316

HI, I want to sort the elements of an array in ascending order. The elements are in floating point. how do i go about doing this? Thanks for your help. Nishant

Member Avatar for ahamed101
0
212
Member Avatar for scotchfx

I've got a question for all of the veteren C++ programmers out there.... I know that in_addr_t is a byte addressed value (representing an IPv4 address) however in debugging this code I was expecting a compile error ( scope of ipaddr declared in if statement would not extend to the …

Member Avatar for ArkM
0
84
Member Avatar for Chemist

Hi guys, I'm trying to write my first little program... I tell python the number of minutes i want it to shutdown/hibernate my computer and it will add that to the current time and perform the necessary action. However I'm really struggling to add the number of minutes to the …

Member Avatar for Gribouillis
0
139
Member Avatar for Khae

hi guys need help I resently just started c++ and on classes and have a project to print a tag to be attached on a luggage and deppending on wether the costomer want it delivered at home or pick it up at the airport. Plz find attachment

Member Avatar for Peter_APIIT
0
100
Member Avatar for dhatfield

Can someone explain to me how to convert a number to a string. For example like this number 99812.50 to a string in words (Ninety nine thousand eight hundred twelve dollars and fifty cents,

Member Avatar for stultuske
0
70
Member Avatar for ezkonekgal

i don't get it how do you create a text file? i've read some tutorials but still can't understand.. some1 help me?

Member Avatar for stultuske
0
106
Member Avatar for massivefermion
Member Avatar for Gribouillis
0
160
Member Avatar for Se7Olutionyg

Calculator should display the accumulated value after each operation [CODE] //FILE: PROGRAM3.CPP //AUTHOR : AM NGUYEN //COURSE NAME : CS210 //DATE : // DESCRIPTION : A SIMPLE CALCULATOR # include <iostream> using namespace std; void instruction(); int calculator (char); void divide_by_zero (); float do_next_op (char, float, float); void main() { …

Member Avatar for unbeatable0
0
90
Member Avatar for hisheeraz

Hello friends, can somebody please tell me how can i implement scroll bars onto a form so that i can put more controls on it... please hlp. ta

Member Avatar for hisheeraz
0
138
Member Avatar for NinjaLink

Hello all... I'm having a few problems with my program. I will list the problems that I need help with.. 1) I need help printing out the highest testScore (I'm am getting garbage numbers) 2) I need help printing out the person's name in my input file who has the …

Member Avatar for NinjaLink
0
134
Member Avatar for deflamol

Hi, I am having issues with assigning a value to a string. I have two structures node and edge as follows: [code] struct node{ string name; int key; }; struct edge { node u; node v; int weight; edge *link; }*front = NULL; [/code] Now I have a function that …

Member Avatar for deflamol
0
110
Member Avatar for vamsi.kiran

Hi all, This is vamsi from Hyderabad. From the past 2 days I am very difficult to solve this eror. We are working for a product project in which it have to include a patch version in end. this patch version should get dynamically depends upon assembly version. So I …

Member Avatar for msaqib
0
120
Member Avatar for FlashCreations

Hello, I was browsing DaniWeb and found a code snippet that allows PHP files to be static and more search-able by browsers. I notice that certain pages of DaniWeb are PHP (such as this new thread page), yet most are html files. I know this may seem nosy, but I …

Member Avatar for FlashCreations
0
239
Member Avatar for peachslasher

Hi guys, By any chance do any of you guys know any way to implement an array of linked list without using vector, since i need to implement an array of linked list using c and unfortunately vector library is unavailable. This is what i did: [code] Struct MyList{ int …

Member Avatar for peachslasher
0
141
Member Avatar for serkan sendur

i plan to learn php, i want to know from where to start as version, IDE, server installation and whatever required for a true start. i also want to know how php is similar to asp.net and how it is not. Thanks

Member Avatar for PoA
0
146
Member Avatar for tatainti55

Is there any other way to the same thing goto does?(You know what i mean i'm just too lazy too explain it right now >.<) Goto messes everything up >. For example, let's say i made a game that displays a menu, like: "1. Play where is waldo 2.Quit" Then …

Member Avatar for tatainti55
0
97
Member Avatar for teddybouch

I am resurrecting old code from a few years ago, and I unfortunately have little documentation as to how it was compiled and what environment it was built in. At this point, I have successfully gotten it to build, but there are errors at execution, specifically an unhandled exception error …

Member Avatar for Salem
0
103
Member Avatar for cknapp

So, I figured a fun little waste of time would be to write quicksort in scheme. I have my code below, poorly documented. Basically, it takes the first element as the pivot (for simplicity), and then there's a method which returns a pair which is ( (list of everything smaller …

Member Avatar for cknapp
0
1K

The End.