132,726 Archived Topics
Remove Filter ![]() | |
Hey guys I was just wondering is there a c++ function that will eliminate white space from the start and end of a character array data obtained with the getline function? Thanks. Software Development c++ | |
I am writing a program and I want a graphic to show up when the user first starts my program. I know how to implement it, the problem is that I want to show a graphic totally made up of ASCII art. The problem is that it has a lot … | |
I wanted to calcualte the execution time of Bubble sort or for that matter any loop . i tried using the clock funtion in c but it gives me 0 seconds for even 10000 elemnts being in the list :sad: . Software Development c | |
Hello, I'm wanting to know whats in the string and where: I've got this code [code] string s1="HelloWorld"; if(s1[5] = "W") [/code] now then if i want to know if World is in the string. I've tried doing: the if.... but it errors: [quote] : error C2446: '==' : no … Software Development c | |
Whilst I shouldnt have posted the entire code up, I see no other option :( [code] #include <iostream> // cout << endl ... #include <fstream> // for reading in the file ... #include <string> // for comparing strings ... using namespace std; string reserveWordTable [4]= { "if", "then" , "else", … Software Development c++ file-stream | |
If I want to convert one type in another, I can use casts: [code]s = str(12.5) i = int(s) f = float(s)[/code] However, there doesn't seem to be a function cast, or even a statement cast. So how can I turn this string into a statement? [code]s = """for i … Software Development python | |
I want to change isOpen variable in main function from threadfun. But , the following code doesn't change the isOpen value in main fun . So, main stay forever in while loop even though the thread fun finished. Thanks a lot in advance. Rgds, perlsu #include <windows.h> #include <process.h> /* … Software Development c | |
Hey folks, entrepreuners, I’d like to create a really neat program that prints your name, with meanings, or poems, or bible verses, or military quotes, etc. I've seen other packages out there, but they’re not that good. Check Ken Kirkpatrick Software to see what I mean. Also, check other First … Software Development email visual-basic | |
Hey guys, I now want to make a program to count simple integers my first problem is that the following code will also count the word hint as an int. I was wondering if there is an easy way round this problem? (I tried putting whitespace after the word like … Software Development c | |
Hey guys, I am using the code below ot search for words in a text file and count them. I now would like to do something a little more advanced for example if a text file contains "hello my name is kim" I want to be able to increment a … Software Development c++ | |
hi everyone, I have a concern would java run on any processor or it is just intel processor? because im thinking of buying AMD Sempron™ processor. thank you Software Development java | |
Hello, I have a char array and an integer value which i have to concatenate...pls tell me how to convert them and concatenate them. thanks Software Development c | |
Hi friends!!!!!!!!!! I am taking part in Red hat competition to develop a linux project. I am not able to decide on what shd i do the project. In 1 group there r 3 ppl and we have around 8 months time, it includes 2 months vaccations also. I want … Software Development c++ | |
I am using strtok to parse the argv. On windows it works just fine but on Solaris I get a fault. I have traced it down to the "$" character on the command line. [CODE] char *result = NULL; char *value = NULL; char *argPointer = NULL; char delims[] = … Software Development c | |
I have this assignment from my book that wants me to create a class and have its member variables be dynamic. This is easy to do but I can't understand why I would want to, and don't see any advantages of having the members be dynamic. Personally I would create … Software Development c++ | |
a derived class inherits [B]all members [/B] of the base class, that is what the book says, right? i want to make a derived class that has only some of the members of the base class, and some of its own members and functions, is it ok to do it … Software Development c | |
I have a problem, with a closed form event. I'd like to make a check with a click on close botton in the title bar that check if the user are sure or not to close the application. I have made a method that ask if the user are sure … Software Development | |
I am working on this screen, where top part of the screen is a browse/edit/add panel for table called "Package" And depending on the Package_ID (@@Identity) I am filling a datagrid in the bottom part of the same screen which has data from various other tables , like "Components" , … | |
Okay, I can't find a thread that I posted to just yesterday and recieved an email showing a nice reply by Narue, but I deleted it. I can't find that thread! Was it deleted? If it was, Narue, can you explain the reason atoi() is bad and the better way … Software Development c email first-post | |
This is what I have on my program so far. I do not know what to do next. Thanks alot, Kilo // Write a program to help a local restaurant automate its breakfast billing //system. Show the customer the different breakfast itmes offered by the //restaurant. Allow the customer to … Software Development c++ | |
[COLOR=DarkOrchid]i have a case study.... my prof said that we should display 10 random numbers without repeating the same number for example the screen will print numbers from 0-9 at this order 1 6 7 5 2 3 4 9 8 0 then when we exit the program it should … ![]() | |
The client has developed global trading, decision-support and risk management solutions for the world's premium investment banks since 1990. They have offices in London, New York, San Francisco and Tokyo. Please submit your resumes to [email]topjobs@radixthink.com[/email] The Senior Software Engineer will play a lead role in the design and development … Software Development agile-development display email ide java java-jsp java-swing software-architecture sql xml ![]() | |
How's it going everybody. Need some help writing a calculator in VB.NET Right now i have it written so that when a user clicks on a number (ie the number one) it writes it to a text box. no problem. but what i need to do is be able to … Software Development vb.net | |
Hello 2 questions, when you've got this: [code] char * array = new char[20]; [/code] creates a dynamic array of 20, if on run time the array needs to be 40 how could this be accomplished? I've thought i'd fill the array and if the next element that requires adding … Software Development c++ | |
I have a problem in converting char to integer. My code is as follow: char lang [2][4] ={"en","fr"}; char ch = lang[0][0]; int i = sprintf("%d",ch); //want to get integer value of 'e' in string "en" ch = lang[0][1]; int j = sprintf("%d",ch); The error is "sprintf cannot accept parameter … Software Development c | |
Well, i wanted to know if its possible to create a new format in which i can save and then open the files....lets say a .abc format which can be opened only in the editor developed by me.....i think it must be done in xml....if it is so then how???? | |
Hi. I am trying to make something similar to a RPG text game, in Visual Basic 6. I know what you want to say "it's not good for text games" but i have my reasons. The problem i am facing is this: let's suppose i have 3 main skills: meelee, … Software Development visual-basic | |
As the title says, i want to make a mIRC like interface. This is what i have right now: one form called Form1, one textbox called Text1 and another one called "main". [code] Dim TMPtxt As String * 50 Private Sub TextTest() Dim tt As String tt = Text1.Text Select … Software Development gui visual-basic | |
Hi everyone. I am trying to show data from a sql data source. My Columns are as follows: QuizID (Which record the quiz # that the person took), DateTimeComplete (Which shows when the quiz was completed), Score (which is a numeric value that shows the person's score), and UserName(Which is … | |
Hi everybody, Can anybody teach me how this work? thnx. private sub command1_click dim vcombo1 as combobox,vcombo2 as combobox call populate(vcombo1) 'there's an error here vcombo2=vcombo1 'another error here end sub private sub populate(oCombo as combobox) oCombo.clear ocombo.additem "One" ocombo.additem "Two" ocombo.additem "Three" end sub 'Basically what i want is … Software Development visual-basic | |
need some idea from to find the same word in text file example i had a list of word in text file,let me name it noun.txt..contain noun word..the file contain like this walk run eat drink .... give me an idea how can i find word eat in the noun.txt … Software Development c++ file-system | |
Hey there, I'm learning more and more every time I post and/or read contributions by other people, but I still have a long way to go. I have this problem now: I designed a Find command and it works fine, but I want all of the results to be written … Software Development first-post visual-basic | |
![]() | [COLOR=Pink]O[/COLOR][COLOR=Red]k[/COLOR][COLOR=Red],[/COLOR] [COLOR=Red] [/COLOR][COLOR=Plum] [/COLOR][COLOR=Red]H[/COLOR][COLOR=DarkRed]e[/COLOR][COLOR=Pink]r[/COLOR][COLOR=DarkRed]e[/COLOR] [COLOR=Pink]i[/COLOR][COLOR=Red]s[/COLOR] [COLOR=Pink]w[/COLOR][COLOR=Pink]a[/COLOR][COLOR=Pink]t[/COLOR] [COLOR=Red]i[/COLOR] [COLOR=Red]g[/COLOR][COLOR=Pink]o[/COLOR][COLOR=DarkRed]t[/COLOR][COLOR=Red]t[/COLOR][COLOR=DarkRed]a[/COLOR] [COLOR=DarkRed]d[/COLOR][COLOR=Pink]o[/COLOR] [COLOR=Red]i[/COLOR][COLOR=DarkRed]n[/COLOR] [COLOR=DarkRed]m[/COLOR][COLOR=Plum]y[/COLOR] [COLOR=Red]n[/COLOR][COLOR=DarkRed]e[/COLOR][COLOR=Pink]x[/COLOR][COLOR=Plum]t[/COLOR] [COLOR=Pink]a[/COLOR][COLOR=DarkRed]s[/COLOR][COLOR=DarkRed]s[/COLOR][COLOR=Red]i[/COLOR][COLOR=Pink]n[/COLOR][COLOR=DarkRed]e[/COLOR][COLOR=Red]m[/COLOR][COLOR=DarkRed]e[/COLOR][COLOR=Pink]n[/COLOR][COLOR=Red]t[/COLOR][COLOR=Plum].[/COLOR][COLOR=Red] [/COLOR][COLOR=Pink] [/COLOR][COLOR=Pink]I[/COLOR] [COLOR=Pink]a[/COLOR][COLOR=DarkRed]m[/COLOR] [COLOR=Pink]g[/COLOR][COLOR=Red]i[/COLOR][COLOR=Plum]v[/COLOR][COLOR=Red]e[/COLOR][COLOR=DarkRed]n[/COLOR] [COLOR=Plum]a[/COLOR] [COLOR=Pink]f[/COLOR][COLOR=Red]i[/COLOR][COLOR=Pink]l[/COLOR][COLOR=Red]e[/COLOR][COLOR=DarkRed],[/COLOR] [COLOR=Red]e[/COLOR][COLOR=Pink]i[/COLOR][COLOR=Red]t[/COLOR][COLOR=Plum]h[/COLOR][COLOR=Pink]e[/COLOR][COLOR=Plum]r[/COLOR] [COLOR=DarkRed]a[/COLOR] [COLOR=Plum]b[/COLOR][COLOR=Red]m[/COLOR][COLOR=Pink]p[/COLOR] [COLOR=Red]o[/COLOR][COLOR=DarkRed]r[/COLOR] [COLOR=Red]j[/COLOR][COLOR=DarkRed]p[/COLOR][COLOR=Pink]e[/COLOR][COLOR=Red]g[/COLOR] [COLOR=DarkRed]c[/COLOR][COLOR=Red]o[/COLOR][COLOR=Red]n[/COLOR][COLOR=Red]t[/COLOR][COLOR=Pink]a[/COLOR][COLOR=Pink]i[/COLOR][COLOR=Plum]n[/COLOR][COLOR=Red]i[/COLOR][COLOR=DarkRed]n[/COLOR][COLOR=Plum]g[/COLOR] [COLOR=DarkRed]a[/COLOR] [COLOR=Red]p[/COLOR][COLOR=Plum]i[/COLOR][COLOR=DarkRed]c[/COLOR][COLOR=Red]t[/COLOR][COLOR=Pink]u[/COLOR][COLOR=Pink]r[/COLOR][COLOR=Red]e[/COLOR] [COLOR=Red]([/COLOR][COLOR=Plum]a[/COLOR][COLOR=Red]t[/COLOR] [COLOR=Plum]t[/COLOR][COLOR=Red]h[/COLOR][COLOR=Pink]e[/COLOR] [COLOR=DarkRed]m[/COLOR][COLOR=Red]o[/COLOR][COLOR=DarkRed]m[/COLOR][COLOR=Pink]e[/COLOR][COLOR=Red]n[/COLOR][COLOR=Plum]t[/COLOR] [COLOR=Plum]i[/COLOR][COLOR=Pink]t[/COLOR][COLOR=Pink]'[/COLOR][COLOR=Red]s[/COLOR] [COLOR=Red]e[/COLOR][COLOR=Red]i[/COLOR][COLOR=Red]t[/COLOR][COLOR=DarkRed]h[/COLOR][COLOR=Red]e[/COLOR][COLOR=DarkRed]r[/COLOR] [COLOR=DarkRed]o[/COLOR][COLOR=Red]n[/COLOR][COLOR=Plum]e[/COLOR] [COLOR=Plum]o[/COLOR][COLOR=Plum]r[/COLOR] [COLOR=Pink]t[/COLOR][COLOR=DarkRed]h[/COLOR][COLOR=Plum]e[/COLOR] [COLOR=Plum]o[/COLOR][COLOR=DarkRed]t[/COLOR][COLOR=Pink]h[/COLOR][COLOR=Plum]e[/COLOR][COLOR=Pink]r[/COLOR][COLOR=Red])[/COLOR][COLOR=Plum],[/COLOR] [COLOR=Pink]I[/COLOR][COLOR=DarkRed]'[/COLOR][COLOR=Plum]m[/COLOR] [COLOR=Red]n[/COLOR][COLOR=Red]o[/COLOR][COLOR=DarkRed]t[/COLOR] [COLOR=Pink]s[/COLOR][COLOR=Pink]u[/COLOR][COLOR=Pink]r[/COLOR][COLOR=Plum]e[/COLOR][COLOR=Plum].[/COLOR][COLOR=Red] [/COLOR][COLOR=DarkRed] [/COLOR][COLOR=DarkRed]T[/COLOR][COLOR=DarkRed]h[/COLOR][COLOR=Red]e[/COLOR] [COLOR=Plum]f[/COLOR][COLOR=Pink]i[/COLOR][COLOR=Pink]l[/COLOR][COLOR=DarkRed]e[/COLOR] [COLOR=Pink]c[/COLOR][COLOR=Pink]o[/COLOR][COLOR=DarkRed]n[/COLOR][COLOR=Pink]t[/COLOR][COLOR=Plum]a[/COLOR][COLOR=Plum]i[/COLOR][COLOR=Pink]n[/COLOR][COLOR=Plum]s[/COLOR] [COLOR=Plum]a[/COLOR] [COLOR=Pink]w[/COLOR][COLOR=Red]o[/COLOR][COLOR=Pink]r[/COLOR][COLOR=Plum]d[/COLOR] [COLOR=Red]o[/COLOR][COLOR=Red]f[/COLOR] [COLOR=DarkRed]f[/COLOR][COLOR=Pink]i[/COLOR][COLOR=Red]v[/COLOR][COLOR=Red]e[/COLOR] [COLOR=Red]l[/COLOR][COLOR=DarkRed]e[/COLOR][COLOR=DarkRed]t[/COLOR][COLOR=Pink]t[/COLOR][COLOR=Red]e[/COLOR][COLOR=Plum]r[/COLOR][COLOR=DarkRed]s[/COLOR] [COLOR=Plum]f[/COLOR][COLOR=Red]r[/COLOR][COLOR=DarkRed]o[/COLOR][COLOR=Red]m[/COLOR] [COLOR=Pink]t[/COLOR][COLOR=Plum]h[/COLOR][COLOR=Plum]e[/COLOR] … Software Development java |
Hi, recently my VB6 freezes when I try to compile a Usercontrol. I really don't know what to do. Someone could help me, please? Thanks, Marco. Software Development visual-basic | |
Hello again everyone, Im having trouble with this function for saving a file from a richedit control within a child window in my application. I have put in extra messageboxes etc to helo me find the error. when I implement this function with valid parameters I recieve the "Invalid handle … Software Development c++ file-system | |
i want to use that in a snake game, i made the snake move but i can't control him .... ...how can i read a key without stoping the looping... if i use getch() it stops till i stroke any key...and the snake stops,then after i press another key makes … Software Development c++ | |
Hey guys I need some help with my assignment. First let me start off by telling you guys that I am new to program writing. My professor isn't helping us at all, in fact half of my class has dropped the course. I have to write a program that has … | |
Does anyone know how to create a JAR file using JCreator ? i have try to create it but it gives me this error [COLOR=Red]" Failed to load Main-Class manifest attribuite from c:\hello\.jar" [/COLOR] which i doesn't know how solve it. Software Development java | |
Hello, i have a problem with the C++. Below is the code. When compile, there is an error. error C2466: cannot allocate an array of constant size 0 Can anybody answer me? #include <iostream.h> #include <string.h> class samp{ int a; public: void set(int n){a=n;} int get() {return a;} }; int … Software Development c++ | |
i need to write a code on how can break a sentence into word and find out the word belong to. example : when user input a sentence cindy walk slow. 1.break the sentence into cindy,walk,slow. 2.get each word belong to and display. - cindy is a noun - walk … | |
Hey, I am a newbie to all of this so please don't flame me for a stupid question. I am trying to write a shared lib that will initialize a connection to a messaging deamon. Then the library will be called at intervals and send data. My problem is that … | |
how to open a new window only when i click menuitem. for example, check out this following code, in which Toplevel window comes up as soon as u run the code. i dont want that. i want the new window to open only when click 'one' in the menu bar. … | |
This is one of my hw question and I can't find the answer from the textbook. Question: A function that modifies an array by pointer arithmetic (e.g., ++ptr) to process every value should have a parameter that is? a) a nonconstant pointer to nonconstant data b) a nonconstant pointer to … Software Development c | |
Please see the code [code] import java.awt.*; // Defines basic classes for GUI programming. import java.awt.event.*; // Defines classes for working with events. import java.applet.*; // Defines the applet class. public class ColoredHelloWorldApplet extends Applet implements ActionListener { // Defines a subclass of Applet. The "implements ActionListener" // part says … | |
Hello ladies and gents, There's an exercise, well, more a question that goes like this in Accelerated C++: If the following code is legal, what can we infer about the return type of f? [code]double d = f() [n];[/code] What I can gather is that the return type will be … | |
I know this is probably a basic question, but I'm stuck and can't seem to figure it out :-/ This is in VB.NET 2005 and I'm making a windows forms app. I'm filling a DataTable from a SQL command, and then binding a dropdownlist to that DataTable. I'm assigning the … Software Development sql vb.net windows-server | |
Hi! Please, anyone... I put a button1 on form1 and I want to open a form2 with it. It sounds so simple (With ms access it was!) :o I'm tryning to do this in Visual studio express now. What do I do? As I understand it has to be done … Software Development visual-basic visual-studio | |
I wrote down a program code that recognizes the keyboard as an HID device and gets input (the key pressed) from it. Then displays it on an edit control. Here is the code :[CODE]#include "stdafx.h" #define _WIN32_WINNT 0x0502 #include <windows.h> #include "HID Input.h" #define MAX_LOADSTRING 100 RAWINPUTDEVICE Rid; USHORT usVKey; … Software Development c visual-studio | |
Well I must say, this site is a great database regarding all the possible difficulties one can have........of course before anyone starts commenting I must add HELP IS GIVEN ONLY IF WE TRY.......Now my question...i wanted to know how do we refresh an application partially........What i mean is that lets … Software Development java | |
hi guys, i wonder how you can can take a string from a particular file and assign that to a variable. for example here is the file named 'isbn.txt' 123-456-789-0 87-345-21-347 09-876-543-21 and my code, as far is i can write it: [CODE] int fromfile() { string filename; ifstream fin; … Software Development c++ file-system |
The End.