64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for endframe

Hi everyone. So here's the case, I am a newcomer in C++ and I have been working on a small begginers program ; it adds 2 numbers after adding 1 to each of those 2 numbers . Let's say if we put 4,5 then it will add 1 to both …

Member Avatar for BrianWren
0
234
Member Avatar for itisnot_me

ok so what i have going right now is a little system that takes a value of %address% and turns it into what is stored on the database. and i am using a str_replace example (note there are more in the array) [CODE] $searchArray = array("%address%"); $replaceArray = array($address); $content …

Member Avatar for itisnot_me
0
286
Member Avatar for samurai1200

In C++ using gc++ compiler (netbeans, ubuntu), I am trying to pass a struct into a function (working fine), operate on an array in the struct (fine). But when I leave the function (which is void return value), the struct values snap back to their initialized values. the struct in …

Member Avatar for samurai1200
0
1K
Member Avatar for HelloMe

Oje me again... :$ Hello everyone... I have a superclass Human and a subclass Warrior. Problem is, human got this method: [code] public void Reveal() { System.out.println("I am " + name + ". "); System.out.println("My Strength is " + strength + " my Health is " + health); System.out.println("My Intelligence …

Member Avatar for HelloMe
0
119
Member Avatar for Idontknowc

I have to now make a simple single line text editor where the letters i type i can use commands to edit them this is what I started with my knowledge and so far ive got typing happening, if its possible to just input commands that can change the lines …

Member Avatar for Ancient Dragon
0
121
Member Avatar for GAME

I've tried google and this site but cant seem to find anywhere to start? I'm trying to make a character limit one then automaticaly go to the next open text box.

Member Avatar for RunTimeError
0
113
Member Avatar for Duncans Ghola

I have been assigned to implement a string class and I am having a hard time with the >> operator overload. Header File: [CODE]std::istream& operator >>(std::istream& ins, obstring& target);[/CODE] Implementation: [CODE] std::istream& operator >>(std::istream& ins, obstring& target) // Postcondition: A string has been read from the istream ins, and the …

Member Avatar for Duncans Ghola
0
160
Member Avatar for HelloMe

Hello everyone... For now i have build a Human class and i want to test it now but on 2 lines there is an error and both errors states "void expected". I have a main function in my class but later i gonna remove it because i want this Human …

Member Avatar for HelloMe
0
115
Member Avatar for ab_too

Hi, I have jest started learning Python. I would like to get some help on writing a script that would delete a data of lines only key from array which looks like this : [CODE]['192.168.255.1 00:01:02','[COLOR="Red"]172.14.0.1 00:0f:01','172.14.0.1 01:ff:dd:34'[/COLOR] ,192.168.255.3 00:dd:01:ff[/CODE] [B] I want delet red data only [/B]

Member Avatar for ab_too
0
717
Member Avatar for Stefano Mtangoo

I'm reading casting functions(I wonder if this is proper name). I get difficult grasping dynamic_cast, static_cast, constant_cast and reinterpret_cast. Can anyone help me in "layman" terms differences and where we may use them? [URL="http://www.cppreference.com/wiki/start"]reference[/URL] and [URL="http://google.com"]google[/URL]

Member Avatar for Stefano Mtangoo
0
66
Member Avatar for strmstn

Hello there. I don't know if this should actually be posted in any of the C/C++ forums, but it is mainly an Assembly question so I take my chances here. In C/C++ it is possible to declare local variables as: [CODE=C]if(statement){ int var; // Use of the variables }else{ // …

Member Avatar for strmstn
0
204
Member Avatar for jonniebl

I am writing a program that loads a web page then get data from the page for calculations. I can navigate to the web page but the code does not wait for the page to completely load before proceeding. I need a way to have the program wait for the …

Member Avatar for jonniebl
0
260
Member Avatar for Exploded Fiber

Hi all, After some time pulling my hair my brain has turned to mush on this senerio. I'd appreciate any help offered as my PHP skills are still limited. Here is the senerio: I am creatings a voting website. I am currently creating an admin page that creates local election. …

Member Avatar for Exploded Fiber
0
107
Member Avatar for j_808

Hi all, just having problems with my next, previous, last and first buttons on my form. there not working but i am not sure where i am going wrong because i am a beginner. When i press any of the buttons it says 'there is no row at position 1' …

Member Avatar for j_808
0
103
Member Avatar for GAME

I am trying to copy all my 160 text boxes into one line. Each Textbox holds 1 character. [code]private void Menu_Copy(System.Object sender, System.EventArgs e) { if(textBox1.SelectionLength > 0) textBox1.Copy(); } [/code]

Member Avatar for GAME
0
182
Member Avatar for danturn

Hey guys, I've got a dataview (shown below)... UDP Position Label Number 11042266 1 JXXXXX 9XXXXXXXXXXX 11042266 2 GXXXXX 9XXXXXXXXXXX 11042449 1 RXXXXX 11042458 11042458 1 SXXXXX 9XXXXXXXXXXX 11042458 2 IXXXXX 9XXXXXXXXXXX 11042458 4 AXXXXX 9XXXXXXXXXXX 11042458 5 HXXXXX 9XXXXXXXXXXX 11042458 6 MXXXXX 9XXXXXXXXXXX 11042459 1 IXXXXX 9XXXXXXXXXXX 11042459 2 …

Member Avatar for danturn
1
176
Member Avatar for virtualsaum

[CODE]# File: Manager.py from Tkinter import * class Manager: def choose(self,master): tasksf=Frame(master) tasksf.grid(row=1,column=0,padx=3,pady=3) Label(tasksf, text="Task ID:").grid(row=0,column=0,padx=3,pady=3) Label(tasksf, text="Description:").grid(row=1,column=0,padx=3,pady=3) Label(tasksf, text="Start Date:").grid(row=2,column=0,padx=3,pady=3) Label(tasksf, text="Deadline:").grid(row=3,column=0,padx=3,pady=3) self.tid=Entry(tasksf) self.tdesc=Entry(tasksf,width=25) self.tstart=Entry(tasksf) self.tdead=Entry(tasksf) self.tid.grid(row=0,column=1,padx=15,pady=5,sticky=W) self.tdesc.grid(row=1,column=1,padx=15,pady=5,sticky=W) self.tstart.grid(row=2,column=1,padx=15,pady=5,sticky=W) self.tdead.grid(row=3,column=1,padx=15,pady=5,sticky=W) def asdfg(self,master): print "dsgsfd ",v def __init__(self,master): master.title("Manager") menuf=Frame(master) v = IntVar() Radiobutton(menuf, text="Tasks", variable=v,indicatoron=0, value=11,command=self.choose(master)).grid(row=0,column=0,padx=5,pady=5,ipadx=5,ipady=5) Radiobutton(menuf, text="Meeting", variable=v,indicatoron=0, …

Member Avatar for SgtMe
0
1K
Member Avatar for calccrypto
Member Avatar for mtroute

I m trying to create a table using the results of a SUM on separate tables within a single DB. I have tried various join scripts but can't seem to get it right. As a work around, I have created a single SUM table for each Table and run the …

0
79
Member Avatar for Clueless86

I was wondering is there a good IDE for python /wxpython/pygame? I was wanting something that would do all 3 very good, for when I do finally jump to a GUI... I was messing around a little with pygame, and I noticed it dose not like the python IDLE...

Member Avatar for Stefano Mtangoo
0
324
Member Avatar for HiHe

Does anyone have a code example for using the mouse wheel with the Tkinter GUI toolkit handy?

Member Avatar for vegaseat
0
123
Member Avatar for tryphy

Hi, I have a javascript function to disable and enable a textbox. [CODE] <SCRIPT LANGUAGE="JavaScript"> function enable() { document.form1.tmphone2.disabled=false; document.form1.pmphone2.disabled=false; } function disable() { document.form1.tmphone2.disabled=true; document.form1.pmphone2.disabled=true; } </SCRIPT> [/CODE] I need to call the function in a php code, on condition Heres my code: [CODE] <?php $cc = $row['company_country']; $s …

Member Avatar for EvolutionFallen
0
2K
Member Avatar for FlippA

Hi all, I have a list of Classes and I want to sort the list of Class by one of the Attributes held within the Classes does anyone know a easy way of doing this. Kind Regards FlippA

Member Avatar for FlippA
0
152
Member Avatar for NitaB

Okay, maybe I'm just overlooking something but I need help. I have this program that reads in some numbers from a file and makes a linked list. The only function that is not working properly is one I called IsThere. Basically, it's just supposed to tell me whether or not …

Member Avatar for NitaB
0
328
Member Avatar for avinash_545

Dear all, can you please help me with a small timer problem.i dont know why but firefox is not displaying the small clock from my codes, though javascript is enable. <html> <head> <script type="text/javascript"> function startTime() { var today=new Date(); var h= today.getHours(); var m= today.getMinutes(); var s= today.getSeconds(); //Now …

Member Avatar for avinash_545
0
112
Member Avatar for aboell

I have a Sharepoint (WSS) question that due to the keywords make it difficult to effectively find solutions on the web. We are trying to roll out a new Sharepoint site, but have some PR commitments to keep our original front page. I would like to know if there is …

Member Avatar for aboell
0
119
Member Avatar for Hawkpath

Alright guys, I have a really weird error here. I'm programming a program that lets you specify the red, green, and blue components then stores them in arrays and uses the colors when drawing shapes. The program worked perfectly until about five minutes ago. Nothing affecting that specific part of …

Member Avatar for mrnutty
0
192
Member Avatar for ckjie

Hello all, I get the server source code below: [CODE]#include <winsock2.h> #include <ws2tcpip.h> #include <stdlib.h> #include <stdio.h> // Need to link with Ws2_32.lib, Mswsock.lib, and Advapi32.lib #define DEFAULT_BUFLEN 512 #define DEFAULT_PORT "27015" int __cdecl main(void) { WSADATA wsaData; SOCKET ListenSocket = INVALID_SOCKET, ClientSocket = INVALID_SOCKET; struct addrinfo *result = NULL, …

Member Avatar for Salem
0
166
Member Avatar for javitis

Hello, i have a simple question. Let's say you have 3 private attributes. If you want to insert a value you use a set method and when you wish to display its content you use a get method. When you use a constructor with a parameter list e.g.: private String …

Member Avatar for javitis
0
64
Member Avatar for DARK_BYTE

I wrote this code below and it isn't working giving me a stack overflow problem.Can someone please help me? [CODE]#include<iostream> using namespace std; int partition(int* A,int l,int r) { int v=A[r]; int i=l; int j=r; int temp; while(i<j) { while(A[i]<v) { i++; } while((i<j)&&(A[j]>=v)) { j--; } if (i<j) { …

Member Avatar for DARK_BYTE
0
128
Member Avatar for DoEds

Can u help me with this? Here's the problem. Everytime i input just 1 word...it works fine. [URL=http://img148.imageshack.us/i/26168475.jpg/][IMG]http://img148.imageshack.us/img148/2503/26168475.jpg[/IMG][/URL] but when i enter 2 words this will happen... [URL=http://img706.imageshack.us/i/49110093.jpg/][IMG]http://img706.imageshack.us/img706/6625/49110093.jpg[/IMG][/URL] [CODE]#include <stdio.h> struct Student{ char course[5]; char subject[5]; char name[20]; float units[8]; float grade[8]; float qpi[3]; }Stud[3]; int main() { float grade …

Member Avatar for DoEds
1
278
Member Avatar for flushfire

I am trying to send keystrokes to a window/s that is not in focus using sendmessage. Finding the window's handle using its name is simple enough, however what I want is to get the handle by clicking on the window or puting that window into focus (whichever is easier) bec. …

Member Avatar for flushfire
0
150
Member Avatar for rasizzle

I have a series of rules that I want to be able to execute without having to manually edit the code. I'd like to give my rule conditions at the beginning and have the program run it. This way, I can test every single rule combination in a for loop …

Member Avatar for willygstyle
0
289
Member Avatar for stewie griffin

I trying to get text only from html code (no tags and exec) I used the next command (regular expression): htmlSurce = htmlSurce.replaceAll("\\<.*?*\\>", ""); it works fine but all the text between <!-- --> is not removed how can I remove it???

Member Avatar for stewie griffin
0
213
Member Avatar for gunjan_29

how can i find the first word in my sentence having 'w' character. This character can be present anywhere in my word. Lets take an example of sentence "Hi, what are you doing here abxwxyz? So the result should be what.

Member Avatar for WaltP
0
122
Member Avatar for Mz3g

Hi guys, I'm writing a program that can read the date and the time separately. The only function I knew is ctime but it reads both of them, so is there any functions that can reed the date as: month day, year and time as: hour::minute::second Thanks!

Member Avatar for Mz3g
0
105
Member Avatar for lukebradford

Hi all, and thanks in advance for your help. I have a program which stores some large arrays of ints and reads and writes from text files. main() takes commands with cin and then runs various functions. One of these, generateSentence(), takes three ints and a char* as arguments, but …

Member Avatar for lukebradford
0
286
Member Avatar for ButchMeatcook

Here is my program so far: [CODE] #include <stdio.h> #include <string.h> #define max 200 typedef struct { char triple[6]; unsigned index; unsigned lower; unsigned upper; } mpn; unsigned load_MPN_table (mpn *mpn_table[], FILE* input, unsigned max_size) { unsigned i; for (i=0; i<max_size; i++) { fscanf(input, "%s%u%u%u", mpn_table[i]->triple, &mpn_table[i]->index, &mpn_table[i]->lower, &mpn_table[i]->upper); // …

Member Avatar for ButchMeatcook
0
3K
Member Avatar for blackrobe

I am running Windows 7 on one machine and Linux Debian on another. I am creating a C application using NetBeans. It seems to be working just find on Linux when I run it there. But when running on Windows, messes up the output somehow, kinda prints the output more …

Member Avatar for WaltP
0
178
Member Avatar for deraj8

I have looked everywhere but i have not been able to find any thing about comparing two strings alphabetically. I tried comparing the characters of each string but i do not know what comparing characters actually does. i am assuming it just compares the ascii codes of each character? [CODE] …

0
263
Member Avatar for famousb

Greetings all, I've been programming local applications in Delphi quite awhile, but i only consider myself a so-so programmer... and i've never done anything server based. I also do a fair amount of web/PHP programming. That said, i'm trying to create a small program i can run on my Windows …

0
70
Member Avatar for trippinz

[B](Post was originaly posted in an XBOX forum - No help.)[/B] [code]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace Xbox_Live_Bio_Template { public partial class Form1 : Form { string a = "╋"; string b = "━"; string c = "┃"; string …

Member Avatar for trippinz
0
231
Member Avatar for serkan sendur

Today we were talking about using new databound controls in asp.net 2.0, i have been trying to persuade my partner to use these controls but he has been refusing and saying that those controls are not flexible enough. Then he challenged me to populate a dropdownlist in a formview; with …

Member Avatar for vyasdev2005
1
1K
Member Avatar for Mitja Bonca

I would like to know if there is any other way to create a doc (or txt) file, then this way that I have in my code: [CODE] if (!System.IO.Directory.Exists(System.IO.Path.GetTempPath() + @"TestDirectory")) System.IO.Directory.CreateDirectory(System.IO.Path.GetTempPath() + @"TestDirectory"); string LogDatoteke = System.IO.Path.GetTempPath() + @"TestDirectory\TestFile.doc"; StreamWriter zapis; zapis = File.CreateText(LogDatoteke); zapis.WriteLine("Some text 1"); zapis.WriteLine(""); …

Member Avatar for apegram
0
113
Member Avatar for help_please

Hi im trying to make a 10X10 board using arrays and have to fill up 2/3 of the board with the letter b, and 1/3 with the letter x. Right now i have created the board and my output shows up as zeros for some reason. can somebody please help? …

Member Avatar for BestJewSinceJC
0
134
Member Avatar for CreativeCoding

So in my last problem, someone said "Use a pointer" (or something like that). When I googled it. It had to do with memory blocks (at least, I think). So what is it? And, oh yeah, can you make it as simple as possible. I have tried seeing what it …

Member Avatar for Excizted
0
134
Member Avatar for i686-linux

I have a bunch of text files with different formats that somewhere in the file have email addresses. I would like to be able to parse through any number of these files for email addresses. Here are the types of input: CFO: [email="some_cfo@domain.com"]some_cfo@domain.com[/email] [email="misterman@domain.com"]misterman@domain.com[/email] The Main Man [email="mainman@domain.com"]mainman@domain.com[/email] To take …

Member Avatar for Skifter
0
1K
Member Avatar for FlippA

Hi All, I am trying to create a GA to solve timetabling for exams, so far I have created a array of exams e.g. [2,3,5,4] means exam 2 is held at time slot 1 and exam 3 is at time slot 2. //This is the testChromosome.ChromosomeArray is the sample code. …

Member Avatar for FlippA
0
129
Member Avatar for emma.parsons

I am new to programming in Python and I am just wondering if I could have some help. I am trying to write a program which creates diary entries for events and I am currently trying to convert the raw_input from the user into a date (yyyy/mm/dd) and time (24hr …

Member Avatar for hondros
0
226
Member Avatar for Forte1292

I need to create a linked list where I can continue to input integers and I'm not sure what I'm doing wrong, but every time I run it I'm allowed to enter two numbers and then I get exit code 216 saying I'm accessing memory I'm not allowed to. [CODE]Program …

Member Avatar for Forte1292
0
167

The End.