43,549 Solved Topics
Remove Filter ![]() | |
How can I write a for loop that will help me run this twice so that I won't have to re-type code for other data type Student variables? Student S1, S2; for (int x = 1; x < 3; x++) { cout << "Enter First Name: " << endl; getline(cin,Firstname); … Software Development c++ | |
Please Help Me! I cannot figure out what to do. I get an error that I don't understand. I posted my code and error below: #include <iostream> #include <string> #include <iomanip> #include <cctype> using namespace std; //prototypes int read_dials(char &d1, char &d2, char &d3, char &d4, char &d5, char &d6, … Software Development c++ | |
Hi everyone, i would like to extract data from text like the following one: [CODE]........... 2011/01/12 The thread 001 title should clearly describe 2011/01/12 This describe or discussion topic. General 2011/01/12 This desc 002 nor discussion topic. General 2011/01/12 titles is 003 as 'Help Me' or 'Urgent' 2011/01/12 This describe … Software Development java | |
I have been informally studying programming with C++ for roughly 8 months now. I understand the majority of the language, but I am becoming extremely bored with building trivial programs and running them in console. I am quickly losing interest and would like to know where to move next...I have … Software Development c++ | |
[CODE]#include<stdio.h> #include<stdlib.h> #include<time.h> #include<stdbool.h> int roll(void) { int num = (rand()%6)+1; return num; } /* void player(void) { int i=0; int sum=0; int dice; char turn; while(i!=6) { printf("Player 1- roll or hold?\n"); turn = getchar(); while(getchar()!='\n'); if(turn=='r') { dice = roll(); if(dice!=1) { sum+=dice; printf("Rolled = %i Your turn … Software Development c | |
Hey there. I feel strange getting tangled up in the most basic form of programming.. Designing the form. I need something but it doesnt look like it can be done... [COLOR="Red"]"See the attached Paint Image i drew to see how i want it to look"[/COLOR] That is How i want … Software Development | |
![]() | Hi, I'm about to develope a little application in C# where I need to save some data in an XML file. I'm viewing data from XML file in a DataGridView, but I would like to make changes and save it in the same XML file. I can't get it to … ![]() |
Basically what I would to know is you have a button on one JPanel, and when the user clicks it, they are re-directed to the other JPanel. I would appreciate it if i could have some sort of hint or know about the overall structure of implementing this. Thanks, | |
I've been scouring the Net trying to get my head around using VB.NET to save information entered through text boxes on my form into an Access database. Most of what I see so far shows me how to display records already entered into the database and update the table, but … Software Development vb.net | |
I am trying to send a structure via tcp/ip,i dont know if i am doing it good,it prints a strange chaarcter in my screen.Here is my code that i am using to send and recv: [code] void Send(const void* buffer, int size) { int n; if((n = ::send(desc, (char*)&buffer, size, … Software Development c++ | |
I'm trying to make some code that directly interfaces with the VGA card(in real mode), I know the ports(0x3c6, 0x3c7, 0x3c8, 0x3c9) I need to use to output data on the screen. My code is this: [CODE] mov ax, 0 out 0x3c8, ax ;plot pixel at location 0 mov ax, … | |
Hi... I've this: [CODE]random_name = ['Mohamed', 'Ahmed','Aboubakr'] print "1: %s 2: %s 3: %s" % (random_name[1], random_name[0], random_name[2])[/CODE] I want to print all the three names but in random way, as: some time: Mohamed, Ahmed, Aboubaker and some time: Mohamed, Aboubaker, Ahmed and some time: Aboubaker, Ahmed, Mohamed and some … Software Development python | |
I want to add new field when user enter text in text box and click on create then in the database table new field is create with the name present in text box I use this code to do this but it takes a8 as new field can i use … Software Development open-source | |
I want to make a simple editor using wxPython. Complete code is already available in wxPython tutorial page ([url]http://wiki.wxpython.org/WxHowtoSmallEditor[/url]). However, in addition I want to add "print" menu which will print the contents of editor (i.e., whatever written in editor). I will appreciate if someone please show me. Thanks, Akand Software Development python | |
I am making a little silly game in c++ and I am currently working on a way to generate random monsters for me to fight, however, either my random number generator isn't working or my if else function isn't working and it keeps giving me the same monster(Polythemus) If someone … Software Development c++ | |
Hello. I am making a win app wich I can use to replace values in a .ini file. In this example.ini file I want to change the values after the = [QUOTE] location { x=0.35 y=0.56 z=-0.5 }[/QUOTE] I have label1, 2, 3 with text: "x, y, z" and want … Software Development | |
Okay, I was trying to write a program that will take in command line inputs of character or strings, separated by spaces. Ignore spaces, however i am going to want to be able to separate a and b from each other, or c and d from each other. So when … Software Development c++ | |
Could anyone point me into the right direction on how to make a C# SQL Datalogin? Software Development sql | |
i want to convert following file into table formate how do i do this? i wan to convert it pdf file text file :- 2011012735981481 15:27:29 35235139 15:27:29 LARSEN & TOUBRO LTD. 10 D (DEL) LARSEN & TOUBRO 10 (NET) LARSEN & TOUBRO 10 2011012736007203 15:29:32 35263544 15:29:32 OIL AND … | |
Good Afternoon, I'm having problems with a program that I have to do for school. It deals with pointType class and the main program section. The details of what the program should do are the following: Define and implement a class poinType that implements a point (x,y). The class pointType … Software Development c++ data-science | |
I got a runtime error 3705 "Operation is not allowed when the object is open". When I click debug, it highlights the connection object I made in the module. I have a form named frmUser. When I click mnu_User from the mdiForm, I got a runtime error 3705, but when … Software Development open-source visual-basic | |
Hey there. How do i search through my Datatable. I know how to do it when there is a Datagridview involved, but i dont have one in this case. I know they say you should do this [CODE]DataRow foundRow = dataSet1.Tables["AnyTable"].Rows.Find(s); [/CODE] Something like that, but i have no idea … Software Development | |
Hey! I'm trying to create a app that will add some reg keys. But I need to change the default value. How can I do it? I don't work :@ [CODE]Imports Microsoft.Win32 Public Class Form1 Dim regstr As RegistryKey = Registry.ClassesRoot Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As … Software Development vb.net | |
I received this error when I tried uploading my game to a website (yes I found one). Java Plug-in 1.6.0_15 Using JRE version 1.6.0_15-b03 Java HotSpot(TM) Client VM User home directory = C:\Users\Adam ---------------------------------------------------- c: clear console window f: finalize objects on finalization queue g: garbage collect h: display this … Software Development java open-source queue | |
Hi Everyone, I have a form with multiple tabs that allows the user to insert data into a customer table. The ID is an Identity column. After a row is inserted into the database I would like to retrieve the ID number for that row that was just inserted into … | |
Ok. So this patch i made has been in beta testing. For some reason my C++ version does not always write the files. but it shows that it patched sucessfully......lists the correct directory where it should be writing the files. They just dont show up. The c# version works though … Software Development c++ | |
I'm just trying to come thru with a passing grade at this point because there was no instruction. I can't even get the program that was given to me to work, even though I copied it verbatim from the text. Please help me figure out what the error is so … Software Development python | |
Here i have a problem please help me. I had made and console application named "input.csproj".On debug it created "input.exe" and the following line of code i have used. [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace input { class Program { static void Main(string[] args) { string a=Console.ReadLine(); … Software Development | |
i am beginner that studying c++ i used to use codeblocks but last months i use netbeans, studio express has bad text editor for beginners:P all this time i am using cygwin(always failed) recently i saw on google that with mingw and msys i can compile release and run my … Software Development c++ | |
Has anyone here tried putting a combobox to a bound datagridview? The selected value of the combobox will depend on the value of the corresponding column in the database. I have a datagridview. When the user clicks the edit button, the application fetches the records from the database and binds … Software Development vb.net | |
i have taken one text field and want coding to print text wrintten in text field on button Software Development vb.net | |
Hi I have a base form that subsequent forms are inherited from. It is a form that is designed to have an appropriate look and feel and really doesn't do anything else. The other froms just inherit it as per: [CODE]public partial class frmLoad : frmPeakBase [/CODE] The only other … Software Development visual-studio | |
I made a c++ program but my teacher rejected it because i had used goto function everywhere. she told me that i can use do while instead. so i started replacing goto with do while. after spending so many hours on my desktop when i tried to run it , … | |
hi i want read text file and write in such way that each word in the separated by 2Spaces if they are separated by more than 2Spaces keep those 2space as it is and filled remaining space with xxxxxxxx plz suggest to how go to this problem and give some … Software Development java | |
Hey I have attached my program to the thread. I have an access database called "Database". I have 3 textboxes. "name" "age" and "language" as an example. When the accept button is clicked, i want that information to update to the database. I can only do it with a datagridview, … Software Development | |
Hi all, I could really use some help with a multithreaded server/client application that I'm building. I'm first experimenting with basic concepts and then am going to implement the results within a larger application. However, I find myself stuck on a particular issue. Initially, I transfer a file from the … Software Development java multithreading socket-programming | |
how can i compare a subitem from my listview1 to my listview2 subitem, like for ex. subitem(3)?? Software Development vb.net | |
hi again guys, i want to automatically turn on the caps lock when the cursor is focused on a certain textbox.. please help..i am doing a school project and i badly need all you help guys..thanks. Software Development vb.net | |
I have an official version of Visual Studio 2008 Team System. I use Visual Basic 2008 from Visual Studio 2008 Team System. With Visual Basic 2008, I built several Windows application. [B][COLOR="Green"]I want to use Visual Studio 2010 Premium [/COLOR][/B] [COLOR="Red"]Upgrade scenario[/COLOR] I have three Upgrade questions: 1.Can I upgrade … Software Development vb.net visual-basic visual-studio | |
hi, i have 2 combo boxes. both values are integers and i want to add the values of the two combo boxes and display the sum to a label..how is it possible? guys, please help thanks much!..:) Software Development vb.net | |
hi, can u check where have i gone wrong on this code? i have 2 listviews with similar columns, whenever i click the item on listview_1, it will transfer to my listview_2. the code below adds the column_named 'UNITS' to my label box For Each TempNode In ListView1.Items If Double.TryParse(TempNode.SubItems.Item(2).Text, … Software Development vb.net | |
I am having trouble making a menu system for a text based adventure game I am creating. I don't really understand all of the concepts yet but I am trying to go to a new situation by setting a number to be a certain situation and then by picking a … Software Development c++ | |
I would like the user to input a sentence that contains quotes around a portion of it and then my program will convert any letters in quotes to upper case. My problem is how do i write the statement to start toupper() one i == " and end the toupper() … Software Development c++ | |
Hello I have been trying to code this for the last few days, and i am unable to come across a solution for this. Would you please mind helping me out on this? There are some records in a notepad, which are as follows [CODE]1 Paul Mac 3 1 222 … Software Development java | |
So I'm working with these strings and I'm stumped at this one part. Here's the instructions: "After removing leading and trailing blank characters (<SPACE> or <TAB>), the string must not be empty." .empty() will obviously be used, but how do I check for the " " or "\t" characters and … Software Development c++ | |
Haven't worked with classes for a while, so please excuse all these dumb questions :P Still learning. Let me know if you need more info. 1>c:\users\adam\documents\visual studio 2010\projects\help\pusoy\pusoy\pusoy.cpp(24): error C3867: 'Deck::dealCard': function call missing argument list; use '&Deck::dealCard' to create a pointer to member deck[] is a vector of Card … Software Development c++ visual-studio | |
How do I check if a form is open (not only loaded, but also open) Software Development visual-basic | |
I took my deck of Cards (class Card) and shuffled the. But every time i ran the program it gave me the same shuffled results.... [CODE]void Deck::shuffleDeck() { std::random_shuffle(deck.begin(), deck.end()); }[/CODE] Software Development c++ | |
I am trying to take a std::vector<Card> and organize it by one of the int values stored inside the Card class. How could I go about doing this with iterators and the sort() method? Or is it not possible? Ty :) Software Development c++ | |
I have a small company Database that tracks our repair orders. I have a query that I would like to execute based on criteria that the user inputs. I am new to VBA so most of my code is based on google research. I took a technique of wrapping my … Software Development microsoft-access sql vb.net visual-basic |
The End.