199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mandofl

Hello people. I have a favor to ask. My programming challenge is to write a program that uses a structure named movie data to store the following, title, director, year released, running time. this program should create two moviedata variables store values in their members, and pass each one in …

Member Avatar for mandofl
1
7K
Member Avatar for gnarly

Hi, I'm Wyatt, and this is my first post! So I have an idea for a website. I'm decent at C++ and I only know some basic html. Now I want to pick up a new language to code my site. As I googled the functions I needed, PHP came …

Member Avatar for SamSam2020
1
178
Member Avatar for Anon17

Hi there. I have an encryption method which handles a string char by char and converts it to base 32, then adds it onto the result string. However, it seems to completely replace the result string instead of adding onto the end of it. My code: [code] char *encrypt(std::string input, …

Member Avatar for Anon17
1
94
Member Avatar for dub4theworld

I am attempting to write a program that simulates a lobby or a line in which a "player" can get into in the form of a heap. The program does everything it is supposed to except when you try to add a second object("player") to the heap it won't do …

Member Avatar for dub4theworld
1
88
Member Avatar for dannz89

Hello, I'm sure this is some complete beginner's 'gotcha' that I've forgotten all about but if anyone can give me a clue as to why my pointer seems to be going astray....? I'm new to C++, well, very old to C++ actually but have been programming JAVA for years and …

Member Avatar for dannz89
1
150
Member Avatar for jbennet

[B][U]How to install a Debian LAMP Server[/U][/B] [B][U][/U][/B] [I]The combination of Linux + Apache + MySQL + PHP setup is known as LAMP[/I] We will be using: [B]Debian Linux - Operating System[/B] Debian is an opensource operating system, which uses the popular Linux kernel. It is a good choice for …

Member Avatar for inckie
1
756
Member Avatar for kentigens

Hi, Im currently implimenting a nested for loop, but there seems to have some known bugs and i dont know whats causing it , how to fix it, etc. Heres part of my code: //using some of vector<structs> below: [code=c++] void Profile() { int wire = 1; int face = …

Member Avatar for VernonDozier
1
280
Member Avatar for totoy13

Hi, I'm new to the forum and I was wondering if anyone would know how to display data from the tables of a MS Access database on labels on a form. The code underneath is my code for saving inputted data from textboxes. [CODE] Private Sub Button2_Click(ByVal sender As System.Object, …

Member Avatar for totoy13
1
200
Member Avatar for james27

hi im making some website login checker. all thing is almost no problem except resulted save function. here is sample login id and password for test. bkozluxvghzb67:ukrnvs37 kicgnudgreuq10:atzjzp32 to test this source in python,need to make some text file "daum.txt" and insert bkozluxvghzb67:ukrnvs37 kicgnudgreuq10:atzjzp32 this two account in there. i …

Member Avatar for james27
1
812
Member Avatar for 23.12.2012

Hi! I opened this thread because I've found out that, as I'm making my way through a textbook, I find many problems which I can't figure out for myself. To start, **Thinking in C++** has this buggy program right in its second chapter. The code looks OK to me, but …

Member Avatar for 23.12.2012
1
214
Member Avatar for Teeb

Hi All, I am somewhat confused here and would need some assistance on how to fix this issue. The code runs for some time and crashes at some point. This problem occurs when I have a larger workload on the code. It works well for small loads. The error returned …

Member Avatar for Nick Evan
1
214
Member Avatar for maestermoo

Hey everyone, I've been working on a program that "flips" a stack of pancakes for the user depending on where they want to flip them. the problem that I'm having with the code is that I can't quite figure out how to "error check" the users input for flip location. …

Member Avatar for VernonDozier
1
77
Member Avatar for xiikryssiix

i am in beg c++ and my instructor is asking me to find "some other combination that also does not work! Your loop should prove something similar for values other than 10 cycles, steps of 0.1, and a sum of 1." i found 1 combination, which is in my program …

Member Avatar for xiikryssiix
1
112
Member Avatar for jjplaw

Hi, i want to implement a windows service that functions as a simple license security feature for a software X. The service is meant to run independently from software X. [B]My current idea:[/B] [LIST]The service is like a timebomb for a software Z installed on the machine...[/LIST] [LIST]Whenever the user …

Member Avatar for tux4life
1
177
Member Avatar for smithss

[code=c++]int** a = new int*[col]; // works int** b = new int[][col]; //error cannot convert from 'int (*)[1]' to 'int ** int* c[] = new int[][col]; /error cannot convert from 'int (*)[1]' to 'int *[]' [/code] The first one works, but i get these errors when i use the other …

Member Avatar for VernonDozier
1
139
Member Avatar for pt0909

I have a radio button list and I need to display a lable message when ever user select "A" i wrote some code in c# but its not working can sombody help me. [code] <td align="left" > <asp:RadioButtonList ID="RBl1" runat="server" AutoPostBack="True" CellPadding="2" CellSpacing="5" onselectedindexchanged="RBl1_SelectedIndexChanged"> <asp:ListItem Value="G" Selected="True" >Regular Grants</asp:ListItem> <asp:ListItem …

Member Avatar for Antenka
1
128
Member Avatar for xyzt

Hi I use ctags and vi integrated. It's fine for now but I wonder if it's possible to find usages of a function? May be someone helps. Thanks in advance.

Member Avatar for jqbsx
1
68
Member Avatar for DimOK

Hello! I'm trying to write a program, that replaces inscpitions like "\input{C:\FullFileName.txt}" to maintenance of FullFileName.txt. It now looks like [code=C++]#include <fstream> using namespace std; #define shint short unsigned int const char* InS ="input{"; ofstream log ("C:\\Users\\DimOK\\Desktop\\Lat\\TEST1\\log.txt"); bool EqN (ifstream &as, const char *ba, shint l){...} // takes l chars …

Member Avatar for DimOK
1
266
Member Avatar for gustyJoey

can yo pls help me the full codes of militlitary time convert to 12 hours time.

Member Avatar for Ancient Dragon
1
77
Member Avatar for fpx-studio

Hello everyone. For all of you who don't know I'm working on my 3D game engine (OpenGL) and I'm making development diary. So here is the episode 3, it's in 2 parts. New things are loader for TGA and FPXM(that is my own model file type for the engine). Also …

Member Avatar for fpx-studio
1
160
Member Avatar for the_prox

Hi there, I need to write a program that draws a clock face with a time that the user enters in two text fields (one for the hours, one for the minutes). As far as I can tell I have all the code written, it's now just a matter of …

Member Avatar for VernonDozier
1
176
Member Avatar for jpd85

need help with outputting an array of objects to a text file. new to java so any help would be much appreciated thanks johnny

Member Avatar for kvprajapati
1
114
Member Avatar for qkslvr1621

I need to write a program that decides if you can apply for the job or not. After asking a series of questions (all the questions) the program then needs to print out whether you can apply or not. Here are the requirments for the job • If you are …

Member Avatar for qkslvr1621
1
93
Member Avatar for TheSilverFox

[code=CPP]#include <iostream> using std::cout; using std::cin; using std::endl; void Calculate( double ); int main() { int worked; double salary; double pay; cout << "Enter the hours worked: (-1 to end)" << endl; cin >> worked; cout << "Enter the salary: " << endl; cin >> salary; while( worked > 0 …

Member Avatar for csurfer
1
105
Member Avatar for squall1986

Hi, for a class, I'm trying to implement a separate-chaining hash table stored in a vector that contains pointers to vectors where the keys will be stored. This is basically what I have: [CODE=c++] typedef vector<string> KeyChain; vector<KeyChain *> Table;[/CODE] The problem I'm having is when I want to access …

Member Avatar for squall1986
1
137
Member Avatar for karnnnnnn

I know very little about php and nothing about javascript, so I would like to stick with php.... my question is about my image gallery, I have everything functioning perfectly but I wish to have the images open in a new window when they are clicked. I would like the …

Member Avatar for Bojero
1
526
Member Avatar for jcwm249

Ok I am trying to write up a data system on C++ so that when i enter in 1-10 i can choose what i want to do....but I keep on getting errors...and the people i already entered in at the bottom (the void add_record) i dont think it correct because …

Member Avatar for Ancient Dragon
1
242
Member Avatar for witecloner

Sorry if my thread is place in incorrect forum. Hai All ... Could anybody help me? i'm praticing how to build the n'tier application. I have read some book tell about this, like "Building Client/Server Applications With VB.NET" by Jeff Levinson, beth massi video tutorial "building simple n-tier applications", and …

Member Avatar for witecloner
1
305
Member Avatar for salibaray

Hi there, I'am developing a system for banner selection (affiliates) and I have tested the system throughly on my local machine and everything works just fine, but when I have uploaded it to my GoDaddy account and tried to use my system I got the following error: Warning: mysql_fetch_array(): supplied …

Member Avatar for salibaray
1
250
Member Avatar for chria

Hi, I have two classes, Yatzy and YatzyPlayer. In YatzyPlayer.h i create vector<int> mResults and in the constructor in (YatzyPlayer.cpp) i resize it by mResults.resize(15,-2). I also have a function to return this vector declared like vector<int> getResults() and returns mResults. Then in my Yatzy file I'd like to have …

Member Avatar for chria
1
119
Member Avatar for Ardvarks

I have been coding a GUI program as a MySQL database manager/utility... The idea of the section I am focusing on is, your enter a guild's name, and it queries the database and displays the guild's info in a textbox. As a test I have used this query: [code]SELECT * …

Member Avatar for Ardvarks
1
139
Member Avatar for cmakesmesad

I need help with the following program I wrote. Im getting a segmentation fault and the warning "assignment makes integer from pointer without cast". Can anyone spot any errors with the program? [CODE] #include <stdio.h> #include <string.h> #define MAXLENGTH 256 //function portotype char * next_word(char *instring, char **new_start); int main …

Member Avatar for Tom Gunn
1
86
Member Avatar for mOoEyThEcOw

So I was coding along working on another dll, I recompiled a dll containing the following code and suddenly my program was crashing, when i clicked the show info link on the 'send this report to Microsoft' dialog box, it said the dll which was throwing the error was msvcp90d.dll, …

Member Avatar for mOoEyThEcOw
1
106
Member Avatar for mb1980

i am working on this program for a while need some help/input/miracle.... [code] #include <fstream> #include <iomanip> #include <cstdlib> #include <iostream> using namespace std; class Report { private: char id [12]; char name [20]; double midterm, f1, p1, p2, p3,cp; ifstream in_file; public: Report (); ~Report (); void print_heading(); void …

Member Avatar for Ancient Dragon
1
137
Member Avatar for cancer10

Hi, I have 2 questions regarding the auto increment datatype in mysql. Q1) Since we all know that if we create an auto increment column, it will start from the number '1' but is there a way we can force it to start with the number '300' and it should …

Member Avatar for enginerd
1
263
Member Avatar for cbaechle

So we were in class today and my professor said that, while iterating through a linked list you can use the ++ operator to get the next node. Here's an example linked list... [code] #include <iostream> using namespace std; class Node { public: int data; Node * next; }; class …

Member Avatar for csurfer
1
1K
Member Avatar for zuve_fox

hi.. plz help me i have application to read mifare card(smart card) which use vb.net to build application my mifare/smart card read display UID "F4 76 4A 3C" but i use that application and smart reader to read my mifare/smart card, that display in decimal "1011513076". How display that value.should …

1
72
Member Avatar for shadwickman

If anyone is still interested in those old, nostalgic text-based games to run in the console, there's Python Universe Builder by Joe Strout. Yes, it's a dead project as the last release dates back to 2006, but it still works fine if anyone is interested. On the [URL="http://py-universe.sourceforge.net/"]Sourceforge page for …

1
116
Member Avatar for BustedPixel

Hello everyone, This is my first post and I was wondering if anyone can help me. I am trying to populate user selected files (file path) into a treeview, but whenever I select multiple files from the same sub folder, it displays the root path and sub folder for each …

Member Avatar for BustedPixel
1
119
Member Avatar for mundetas

I would like to put my windows form application to be online, where by it will connect to a webserver and get data from the database on the webserver. Are there any sites or ebooks I can get on windows app going online

Member Avatar for Ramy Mahrous
1
2K
Member Avatar for lolveley

hello, I want to make a little program with a friend method but there is a bug. In my example code, I have a class A which have the method f from clas B as friend. files: A.h [CODE=C++]#ifndef _A_H #define _A_H #include "B.h" class A { public: A(); friend …

Member Avatar for siddhant3s
1
114
Member Avatar for lotrsimp12345

[CODE] Implementation file using namespace std; #include "Interface.h" #include <time.h> void timer::start() { if(! running) { begin=(unsigned int) clock(); running=true; } } void timer::end() { if(running) { finish=(unsigned int) clock(); running=false; } } int timer::elapsed() { if(running) { return((unsigned int) clock()-begin); } else { return finish-begin; } } int timer::output(unsigned …

Member Avatar for lotrsimp12345
1
322
Member Avatar for Kathleen Tillma

Hi all - This is my first time posting here, but I'm hoping someone can help me. My homework assignment is to make a GUI number guessing game with the number of guesses shown. I've gotten the entire program working, but for the life of me I can't seem to …

Member Avatar for VernonDozier
1
1K
Member Avatar for Manikyr

Hi! My assignment is to write a program where you write in two sport teams, home teams and guest team and their reults. After the program will output information who won and if there were a tie. I tried to translate okay from Swedish! The program isn't working and there …

Member Avatar for kangarooblood
1
452
Member Avatar for Luigibosko

I just signed in to these forums and I'd be so happy if you guys could help me out with a triviality that I can't seem to get around. Now, although I haven't actually got around to programming anything really complex, I've been reading alot these last 2 months and …

Member Avatar for Luigibosko
1
240
Member Avatar for mundetas

I want my exit button on my application to close the app completely plus the process. to work like the close button in the control box. I have used [B]"this.close()"[/B] but that only closes the form.Can someone please assist me.

Member Avatar for mundetas
1
133
Member Avatar for wescode

How can I get internet history with a vb4/5/6 program? In a period of time I have to get the user accessed web pages even if he is using other than internet explorer. A keyloger will collect all the unnecessary things. Would you please help me?

Member Avatar for vb5prgrmr
1
362
Member Avatar for seemant_sun

i have a thorough knowledge C and a little bit of practice of C but i wanted to be a good C programer can anybody tell me how i can do it are ther any good books which can provide me good practice of C

Member Avatar for jephthah
1
116
Member Avatar for johnnybravo_1

Hello Guys, I've tried my best but it won't work. I'm trying to read an integer from a txt file and return the whole line where this integer resides. So, for example, in my txt file, if I have a line: aaa bbb ccc 100 bb 9 and I type …

Member Avatar for johnnybravo_1
1
772
Member Avatar for nakemaro

hii everyone ^^ My project for the c++ course is due tomorrow but am facing a problem this is the function [CODE] int i=0,x , ar[100]; double a_d,y=1; cin>>a_d; while (y!=0) { y=a_d*10; x=static_cast<int> (y)%10; cout<<endl<<"after "<<y<<endl<<"the number "<<x; a_d=y-x; i++; } cout<<i; return 0 ; }[/CODE] what I wanna …

Member Avatar for Ancient Dragon
1
122

The End.