132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Jon182

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++
Member Avatar for Narue
0
158
Member Avatar for sixtysecasasin

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 …

Software Development c++ display
Member Avatar for Bench
0
178
Member Avatar for ultra vires

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
Member Avatar for bumsfeld
0
153
Member Avatar for Acidburn

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
Member Avatar for Bench
0
194
Member Avatar for Acidburn

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
Member Avatar for Rashakil Fol
0
142
Member Avatar for IamRasheed

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
Member Avatar for IamRasheed
0
109
Member Avatar for perlsu

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
Member Avatar for Salem
0
176
Member Avatar for loup

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
Member Avatar for pau
0
123
Member Avatar for Jon182

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
Member Avatar for Jon182
0
158
Member Avatar for Jon182

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++
Member Avatar for Bench
0
241
Member Avatar for sam1

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
Member Avatar for sam1
0
77
Member Avatar for cppbeginner

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
Member Avatar for Ancient Dragon
0
101
Member Avatar for akshayabc

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++
Member Avatar for Narue
0
919
Member Avatar for crusty_collins

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
Member Avatar for crusty_collins
0
341
Member Avatar for shortLived

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++
Member Avatar for shortLived
0
176
Member Avatar for nemo

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
Member Avatar for nemo
0
110
Member Avatar for lorf14plus

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
Member Avatar for campkev
0
169
Member Avatar for Texpert

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" , …

Software Development dataset sql vb.net
0
174
Member Avatar for server_crash

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
Member Avatar for Narue
0
1K
Member Avatar for Kilo

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++
Member Avatar for Bench
0
143
Member Avatar for tomoyo_13m

[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 …

Software Development c display
Member Avatar for iamthwee
0
125
Member Avatar for radixthink

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 …

Member Avatar for iamthwee
0
237
Member Avatar for Killer_Typo

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
Member Avatar for f1 fan
0
256
Member Avatar for Acidburn

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++
Member Avatar for Narue
0
111
Member Avatar for perlsu

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
Member Avatar for Narue
0
832
Member Avatar for jigvesh

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????

Software Development java xml
Member Avatar for jwenting
0
194
Member Avatar for Prahaai

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
Member Avatar for Prahaai
0
189
Member Avatar for Prahaai

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
Member Avatar for Prahaai
0
189
Member Avatar for Mikecool509

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 …

Software Development session sql vb.net
Member Avatar for Mikecool509
0
118
Member Avatar for NewVBguy

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
Member Avatar for Yomet
0
117
Member Avatar for amen

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
Member Avatar for Bench
0
277
Member Avatar for Yoshidex

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
Member Avatar for Yomet
0
2K
Member Avatar for iamthwee

[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
Member Avatar for G-Do
0
211
Member Avatar for infmas

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
Member Avatar for Yomet
0
147
Member Avatar for bops

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
Member Avatar for WolfPack
0
397
Member Avatar for znx

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++
Member Avatar for znx
0
145
Member Avatar for visual one

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 …

Software Development gui java
Member Avatar for jwenting
0
165
Member Avatar for k_en

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
Member Avatar for jwenting
0
148
Member Avatar for amuarica

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++
Member Avatar for WolfPack
0
107
Member Avatar for amen

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 …

Software Development c++ display
Member Avatar for amen
0
543
Member Avatar for crusty_collins

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 …

Software Development c c# c++
Member Avatar for crusty_collins
0
111
Member Avatar for katharnakh

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. …

Software Development python tkinter
Member Avatar for vegaseat
0
11K
Member Avatar for jack223

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
Member Avatar for jack223
0
120
Member Avatar for javafan

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 …

Software Development gui java
Member Avatar for javafan
0
232
Member Avatar for JoBe

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 …

Software Development c++ legal
Member Avatar for JoBe
0
559
Member Avatar for edmicman

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
Member Avatar for edmicman
0
193
Member Avatar for kdee

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
Member Avatar for kdee
0
161
Member Avatar for AhmedHan

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
Member Avatar for AhmedHan
0
148
Member Avatar for jigvesh

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
Member Avatar for jigvesh
0
98
Member Avatar for kryptolite

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
Member Avatar for kryptolite
0
130

The End.