199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for MasterGberry

Not sure why I am getting it, I got this one other time and forgot how i fixed it.... Getting it when i am calling my functions in the main file (3rd) Three files to this code: [CODE]namespace SALES { const int QUARTERS = 4; struct Sales { double sales[QUARTERS]; …

Member Avatar for MasterGberry
0
155
Member Avatar for dnambembe

can anybody tell what's wrong with this code! //=========================================================================== // hybrid.cpp --this file implement the hybridlist class // Time-stamp: <2010-10-29 18:52:46 Dnambembe> // To compile: // g++ hybrid.cpp // Copyright (c) 2010 by Domingos Nambembe. All rights reserved. //=========================================================================== #include<iostream> #include<cstddef> //need NULL #include"hybrid.h" using namespace std; typedef NodeType* NodePtr; …

Member Avatar for dnambembe
0
128
Member Avatar for lelejau

I have this function in the main form: [code=c] public void Check() { UpBox myClass = new UpBox(); myClass.UpdateBox(listBox1,"Hello"); } public void Initial() { Thread thread = new Thread(new ThreadStart(Check)); thread.Start(); } class UpBox { private delegate void Box(ListBox list, string text); public void Box2(ListBox list,string text) { list.Items.Add(text); } …

Member Avatar for Mitja Bonca
0
184
Member Avatar for localp

I am new to conneting to MYSQL through a C++ code; so this is what i did i installed MySQL Server 5.1 (it was a EXE), and thats it. i opened the MYSql command line client and created a DB, and added a table and values to it. This is …

Member Avatar for aradicev
0
332
Member Avatar for shenbagam
Member Avatar for joehms22
0
109
Member Avatar for brown23

Guys, I'm having a little bit of a problem trying to display something when the URL is a specific one. Basically purely for examples sake, if the URL is [url]http://www.mydomain.com/hello.html[/url] I want it to display "Hello", and when it isn't I want it to redirect to another page. I know …

Member Avatar for brown23
0
144
Member Avatar for mfaisalm
Member Avatar for ram619

Hiiiiiiiiiiii!!!!!!!!!........... The program written below runs perfectly upto some extent but the output varies............because the compiler prints the "{Enter the value}" line twice and itself adds a positive number in the counter.................. [code=c] #include<stdio.h> #include<conio.h> int main() { int sum1=0,sum2=0,sum3=0; char value,alpha; while(alpha!='D') { printf("\n Enter the value"); scanf("%c",&alpha); if(alpha==0) …

Member Avatar for Kamatari
0
137
Member Avatar for fussballer

Hi, This is probably, a really novice question, but I have some code that is using the malloc() function to declare an array, the problem is that I am using a special compiler to compile code for hardware which gives me a lot of errors because of the stdlib.h header …

Member Avatar for mitrmkar
0
244
Member Avatar for samaniac

Hey guys, I have a really simple question that I doubt you'll find any trouble answering. Does any of you guys know where I can learn C++? What's the best website you know, and thank you.

Member Avatar for vijayan121
0
242
Member Avatar for jlego

i work with a guy who constantly complains and posts on stackoverflow that i am a sloppy coder (he is a web developer, i am a .net developer, he has never actually looked at my programming). but curiously, i researched. The only thing that I do not follow with best …

Member Avatar for jlego
0
171
Member Avatar for davibq

Hi, im trying to print a "$". I tried using: msj db "Hola", 36 msj db "Hola \$", '$' msj db "Hola \\$", '$' But none of them worked.. Help please

Member Avatar for mathematician
0
165
Member Avatar for alaa sam

hi can you tell me what type of data i should use to store a very large number like 500! (factorial of 500) thanks

Member Avatar for alaa sam
0
87
Member Avatar for waleed.makarem

Dear All , I have a gps logger which store the gps data into its internal memory .I have a description file for the data format and how to send commands to the logger to get data . this file is present at the following website L [url]http://www.rigacci.org/wiki/lib/exe/fetch.php/doc/appunti/hardware/gps/mtk_logger_library_user_manual_1.2_tsi.pdf[/url] I need …

Member Avatar for waleed.makarem
0
352
Member Avatar for shahiduop

hi im currently studying Compiler Construction as subject. i want develop something practically like symbol table, parser etc where from i can get for these smaller programs? or code related to compiler construction?

Member Avatar for meetanu
0
87
Member Avatar for paradox814

I know it is possible to overload PHP functions as I have seen this done with many of the prebuilt functions. My question is how do you declare an overloaded function? Everytime I try doing this I always get some error about missing arguments (even if there exsist a function …

Member Avatar for NuMessiah
0
432
Member Avatar for Szabi Zsoldos

Hello, What I'm intending to do it's an Organization chart with departments and members. Basically an organigram with different departments and different members. This is the MySQL database. And here is my attempt of doing this horizontally, but i`m kind of stuck. Could you give me some hints on how …

0
116
Member Avatar for Melow

i'm trying to populate a JList, and i saw that this is how it supose to work [code] JTable tabel = new JTable(); tabel = new JTable(row, cols); while (it.hasNext() && it1.hasNext() && it2.hasNext() && it3.hasNext() && it4.hasNext()) { Object ob[][] = { { it.next(), it1.next(), it2.next(), it3.next(), it4.next() }} …

Member Avatar for Melow
0
175
Member Avatar for geryin

Write a program which initializes two vectors, one of type integer, the other of string. Populate the string type vector with five strings (‘one’, ‘two’, ... ‘five’). Populate the integer vector with [ 5 4 3 2 1 1 2 3 4 5 ]. Write a function that empties the …

Member Avatar for jonsca
0
160
Member Avatar for tohobaby

this is my php code: [CODE]<? if ($search) // perform search only if a string was entered. { mysql_connect() or die ("Problem connecting to Database"); $query = "SELECT shoeName, shoeSize,colour,price,description FROM shoe WHERE gender='$search'"; $result = mysql_db_query("CB", $query); if ($result) { echo "Here are the results:<br><br>"; echo "<table width=90% align=center …

Member Avatar for Pityu
0
259
Member Avatar for SkyVValker

[B]Hello..! i have an problem to connect a progress bar with listview object.P.bar working properly. bt i want to connect p.bar with ma sql database while m searching database.kindly help me where m i doin wrong..the code is below.[/B] [code] Private Sub cmdRFind_Click() On Error Resume Next Dim vLst As …

Member Avatar for lttleastig
0
977
Member Avatar for StreetBallerX

well here is my problem i had a task to transfrom sequence of decimals entered by user to binary so i did it but here comes my problem it turn out that i MUST have used at least 2 functions 1 main for input output and 1 which contains the …

Member Avatar for jonsca
0
103
Member Avatar for michaelsd

I need an activeX which handles global hotkey: Shift+b The code below is supposed to do this when I call this ActiveX from IE. I see the result of RegisterHotKey is true which means that the hotkey has been registered Ok. But I don't see that any messages come to …

Member Avatar for kvprajapati
0
173
Member Avatar for daudiam
Member Avatar for trippinz

How do i add a row to a data source (datagridview)? dataGridView1.Rows.Add(textBox2.Text, textBox1.Text); that gives me an error saying: Rows cannot be programmatically added to the DataGridView's rows collection when the control is data-bound. my datasource: [code] XmlDataDocument xmlDatadoc = new XmlDataDocument(); xmlDatadoc.DataSet.ReadXml("Filepath"); DataSet ds = new DataSet("Books DataSet"); ds …

Member Avatar for kvprajapati
0
111
Member Avatar for arineon

I have a project to have a file read using argc and argv. Then sort it and do some other things. I'm having trouble with the very first step. Loading the file. This is what I have so far. Any help you be great. [CODE] #include <stdio.h> #include <stdbool.h> void …

Member Avatar for WaltP
0
2K
Member Avatar for ZethSchlenker

Alright, maybe I'm having a brain cramp this late at night, but my code is not working, and I have no idea why. Any help? This is simply being used for me right now, so yes, I'm pulling straight from the $_POST. [CODE] <?php session_start(); if($_SESSION['id'] != 5) { echo …

Member Avatar for ZethSchlenker
0
110
Member Avatar for kezkez

So I've printed the first node in the linkedset. What I'm trying to do now is to figure out how to print the entire linkedSet1, in this case, since only one node has been added, it should only print the first node, but once more nodes are added it will …

Member Avatar for kezkez
0
112
Member Avatar for jet101

Hi to all! Im having problem inserting ñ and Ñ in mysql using java. I did try to insert in mysql using CLI and it works ok but when I used it in my java it was replaced by other characters. does anyone have the same problem and have solved …

Member Avatar for jet101
0
73
Member Avatar for Stefano Mtangoo

I know many will start with ODBC, but slow down ;) I have searched for ODBC and all I find is UnixODBC. Is this the same as ODBC? Also how stable it is? I will be happy to know some apps/companies behind it! I need support for MySQL, PostGreSQL, DB2, …

Member Avatar for Stefano Mtangoo
0
149
Member Avatar for jonnypixel

Hi, Im trying to run a MYSQL query to check if the input value exists first. A user fills in an input field and clicks "Add Tag" The java script on the same page checks the MYSQL table if that tag is already there and if so returns a faded …

Member Avatar for jonnypixel
0
704
Member Avatar for jonnypixel

Hi, i have two scripts, One holds the form and the other the php Query process. Im using a small piece of javascript to POST the value to my php Query process script but im finding it difficult to display a result by fading in a div based on the …

Member Avatar for jonnypixel
0
4K
Member Avatar for kieky

Hi all.. I'm having a little trouble with an upload of a file.. i use asp.net with C# language.. I want to add datetime in the name of the file so that when a user uploads a file such as "test.doc" it would be saved into the server as "test-20101123-0533-milisecond.doc" …

Member Avatar for kieky
0
1K
Member Avatar for mshauny

Hi can anyone help me out here, I did a class working fine but i can't make objects out of it. do i need to include the file that has the class in my new file? with an include statement? say i have this. #file 1 <?php class foo { …

Member Avatar for macobex
0
137
Member Avatar for professor123

hello to u all hi l am doing a php(using xampp) project for a website which also has an online examination.can uassist me with guidelines for my project 1.) It should have MCQ section and WRITTEN or STRUCTURED QUESTIONS SECTION and the exam project would be sitting on a website …

Member Avatar for professor123
0
128
Member Avatar for MasterGberry

I am just learning how to work with multiple files instead of putting all my code in 1. When I have the delete lines that are marked it seems to crash the program. I must be over looking something simple here on why it is crashing. [CODE]// golf.cpp -- Definitions …

Member Avatar for Ancient Dragon
0
144
Member Avatar for MasterGberry

I am using Micosoft Visual Studios 2010 and reached a chapter in my book that asks for seperate compiliation. Up until now I have been using Notepad++ to write my code into a .cpp file and then used Visual Studio Command Prompt with a 'cl' command to compile the code. …

Member Avatar for Ancient Dragon
0
110
Member Avatar for jfarny

I am trying to create a commenting system that is linked with videos hosted on my server. The videos are displayed on a watch page (watch.php) and the commenting system is included below the video player. When new comments are posted from the watch page they are then processed and …

Member Avatar for jfarny
0
713
Member Avatar for firecy

Ok I'm a VERY (stress the VERY) beginner programmer and I made a yahtzee game. Now, I'm trying to make a high score list so as to keep track of the high scores in my 1-player yahtzee game even after the applet is closed. I have one class called Yahtzee …

Member Avatar for joehms22
0
545
Member Avatar for hoover_red_one

Please help! Im behind in my homework and dont really even understand it anyways. I cluelessly added the `addCoin("...");`, which i believe is correct. but I dont know what to add to the return statement for `public String toString( )` If you are willing to help, plz provide steps as …

Member Avatar for joehms22
0
633
Member Avatar for arithehun

Okay, you know when on like an alert window, or a form, one of the buttons automatically gets executed when you press enter, such as shown. [I]See Picture #1[/I] [i]So I was wondering[/i] how I could do this in Java for a both a JFrame and a JOptionPane. Thanks. arithehun …

Member Avatar for arithehun
0
128
Member Avatar for gahhon

[CODE]do { ReadFile = fopen("StudentDetails.txt", "r"); if(!ReadFile) { system("cls"); printf("\n"); printf("\t\t ***************************************\n"); printf("\t\t ***************************************\n"); printf("\t\t *** ***\n"); printf("\t\t *** WELCOME TO ***\n"); printf("\t\t *** CLASS ATTENDANCE SYSTEM ***\n"); printf("\t\t *** ***\n"); printf("\t\t ***************************************\n"); printf("\t\t ***************************************\n"); printf("\n\n"); printf("\t\t This File Cannot Be Open Successfully!!\n"); printf("\t\t Please Check It!!\n"); exit(-1); } ++temp_week; …

Member Avatar for gahhon
0
97
Member Avatar for vavazoom

I'm working on a project that utilizes producers and consumers for an operating systems class. Each producer and each consumer will be its own thread. The producers will generate records that will be stored in a global buffer, in which the consumer will then access to use the data. I …

Member Avatar for mike_2000_17
0
281
Member Avatar for Geek-Master

Hi Everyone, I've got an online form that is broken up into several different sections and some of these sections will ask questions where multiple values can be supplied. For instance someone's address or information about their education. Just for simplicity I'll focus on someone's address and I want to …

Member Avatar for Geek-Master
0
109
Member Avatar for newbee3

Hello, I need help on writing a C++ program that allow the user to input two values: a username and a password. Below is what I have so far to test the password and it is not working. #include <iostream> #include <string> #include <vector> using namespace std; int main () …

Member Avatar for chiwawa10
0
110
Member Avatar for palavi

I need to write a code in which i want to create each file for every iteration of a loop add data into the file. also the filename should change every time. for example: familyname1_parts.txt for 1 iteration for second familyname2.parts.txt for 2 iteration and so on.. [CODE]try { out …

Member Avatar for Linez
0
1K
Member Avatar for tawes01

I'm using Dev-c++ to make a dialog-based app. I had it working, but now I am getting an error: An Access Violation (Segmentation Fault) raised in your program. I have narrowed it down to the winmain function: [CODE]int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLine, int iCmdShow) { if (iCmdShow …

Member Avatar for tawes01
0
291
Member Avatar for archduke83

hello, im just trying to translate a 1d TV denoising function for matlab, which can be found here [URL="http://cnx.org/content/m31292/latest/"]http://cnx.org/content/m31292/latest/[/URL], to C++. Here's my attempt: [CODE] inline vector<double> tvDenoising(vector<double> data, double lambda, int Nit) { vector<double> J (Nit); int N = data.size(); vector<double> z (N-1); fill (z.begin(),z.end(), double(0)); vector<double> diffZ (N-1); …

Member Avatar for archduke83
0
259
Member Avatar for hi102

Can someone please help fix this program? I'm pretty new in Python. Every time I run this program it says : Traceback (most recent call last): File "E:/Python/delin.py", line 38, in <module> discounted_total = regular_total - full_discount TypeError: unsupported operand type(s) for -: 'float' and 'NoneType' def find_discount(total): if total …

Member Avatar for hi102
0
11K
Member Avatar for Rogue Hermit

Hello, I am working on a program that requires the splitting of a string (the string in question is "BSHDDBDSBSHHSBH") so that it can count the occurrences of each separate letter. The code I currently have is: [CODE] public static void countPercent(Scanner input) { String nucl = input.next(); int[] count …

Member Avatar for joehms22
0
106

The End.