Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
67% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
0 Endorsements
Ranked #1K
~37.9K People Reached
Favorite Tags
Member Avatar for veronicak5678

Is there a function to remove spaces from a string? I need a way to have a user input a string with spaces, numbers, and letters and remove all spaces before storing it. Using scanf, cin, gets or fgets, apparently I only retain whatever is before the first space.

Member Avatar for bridgett.grace
0
2K
Member Avatar for jon_stahl

Seeing that there are no posts in this forum, I will kick it off with a list of programming tutorial sites and communities that have helped me learn along the way: [url]www.php.net[/url] <--all you need for php! [url]www.tutorialfind.com[/url] [url]www.techtutorials.com[/url] [url]www.tutorialized.com[/url] [url]www.free2code.net[/url] [url]www.programmersheaven.com[/url] [url]www.planetsourcecode.net[/url] [url]www.allsyntax.com[/url] [url]www.arson-network.com[/url] [url]www.tpu.org[/url] [url]www.experts-exchange.com[/url]

Member Avatar for alexstone
0
386
Member Avatar for michelle1

Hello, Can anyone recommend an [U]light weight[/U] IDE for C development? Preferably open source, but definitely free. (for Windows) It doesn't need to have its own version control - I'm using subversion - a plugin to subversion would be nice but it okay if it doesn't. Currently my colleague is …

Member Avatar for Abdelghafour
0
696
Member Avatar for didi00

My Borland C++ vresion 3.1 isn't working. It works with simpler codes, but it doesn't works with graphics and animations. Is there any settings that will make Borland work? I'm using Windows 7 but the same happened with Vista and XP also, so help? Please? Thank you all!!!

Member Avatar for gibson.elliot.5
0
240
Member Avatar for kenji

Hi, I have a really basic ASP.Net question regarding the life of variables. I'm following the book Beginning ASP.Net 4 by Apress. The question is this, I declare a list in the .aspx page and it is available for access by the corresponding .aspx.cs class similar to the code sample …

Member Avatar for dnanetwork
0
144
Member Avatar for garu525

Hello, what's the best way to sort a string to ints & chars. For example: "John Doe M 36" to John Doe (char[]) M (char) 36 (int) I researched about istreamstring sin(), but I'm not yet fully familiar with it, any tips. Thanks!

Member Avatar for Duoas
0
178
Member Avatar for kenji

Hey, I'm trying to figure out how pointers and C String work together I know the basics about pointer arithmetic but I am having trouble implementing it in my program. I am having a problem at the for loop. [code=CPLUSPLUS]/* Trying to print a string from an offst using pointer …

Member Avatar for vinay_verma107
0
247
Member Avatar for Aia

After over a year battle with cancer, my friend [URL="http://www.daniweb.com/forums/member5020.html"]Dave Sinkula[/URL] passed away the 14th of April of 2010. He continued to post in this forum and others as much as he could, even after the diagnosis. And never reflected the fact that he knew his days were counted. He …

Member Avatar for sureronald
9
619
Member Avatar for vmanes
Member Avatar for macgurl70
1
992
Member Avatar for kenji

Hey, Iv decided to tackle a bit off C++ before I start it in college in fall and Im sort of stuck on a problem. The book im reading is Accelerated C++ and its exercise 3.2. Basically the question asks to get values from the user and take for at …

Member Avatar for arkoenig
0
149
Member Avatar for pok.kys90

Problem Statement: Consider a collection of songs in an MP-3 library where each song is characterized by artistName, songTitle, albumName, playTime (in seconds), musicCategory, and albumProducer – hence, you will need to use a struct data type to hold a song and an array of structs to hold the song …

Member Avatar for pok.kys90
0
197
Member Avatar for xcarbonx

[CODE] getline(inFile, st[i].name) while (inFile){ inFile >> st[i].id >> st[i].eng101 >> st[i].hist201; i++; getline(inFile, st[i].name); [/CODE] The above code only reads the first line of my input file, and the rest prints out zeros. My input file is set up like: John Wall 345505050 95 66 The output looks like: …

Member Avatar for kenji
0
85
Member Avatar for gorgey506

[CODE]// Word Jumble // The classic word jumble game where the player can ask for a hint #include <iostream> #include <string> #include <cstdlib> #include <ctime> using namespace std; int main() { enum fields {WORD, HINT, NUM_FIELDS}; const int NUM_WORDS = 5; const string WORDS[NUM_WORDS][NUM_FIELDS] = { {"abbott", "part of colton's …

Member Avatar for Grn Xtrm
0
161
Member Avatar for CleanSanchez

My assignment is to find the sum of an array, sum of the cubes of the array (i.e. each value raised to the power 3) and the variance of the array. At the moment I'm getting compilation errors so I can't do any trial and error. My problem conceptually is …

Member Avatar for CleanSanchez
0
802
Member Avatar for summey

[CODE] #include <iostream> #include <string> #include <iomanip> using namespace std; // //CLASS DECLARATION SECTION // class EmployeeClass { public: void ImplementCalculations(string EmployeeName, int hours, double wage); void DisplayEmployInformation(void); void Addsomethingup(void); string EmployeeName; int hours , overtime_hours, iTotal_hours, iTotal_OvertimeHours; double wage, basepay; double overtime_pay, overtime_extra; double iTotal_salaries, iIndividualSalary; }; int main() …

Member Avatar for summey
0
99
Member Avatar for deanus

Hi I've just started out in c++, can anyone tell me how to use pointers which hold addresses of objects ? How do you access the object fields from this type of pointer, especially strings (array of chars)... I'm using a Dev c++ 4.9.9.2 compiler....

Member Avatar for deanus
0
106
Member Avatar for kenji

Hi, I'm trying to use the built in gcd method to calculate the gcd for two values. Unfortunately I can't seem to import the right module to get the method. [code=python] from fractions import Fraction ... x = gcd(a,b) [/code]

Member Avatar for kenji
0
167
Member Avatar for Ginkan

Hi all, Im new to this forum and also very new to C++, Im tring to write something with DirectX, but once I use DirectDrawCreateEX(), VC++ give me: --> error C3861: 'DirectDrawCreateEX': identifier not found My environment is Windows 7, VC++ 2008 Express Edition, Installed DirectX SDK FEB 2010, Any …

Member Avatar for kenji
0
79
Member Avatar for kenji

Hi, After several google searches, yes I did actually bother searching, I was hoping someone would be able to help me out. I'm trying to figure out persistent hash tables and the internet seems to be woefully inadequate in information, I was hoping some one here had a link or …

Member Avatar for kenji
0
60
Member Avatar for nuubee

Hi all, Ok, so I am new to C++ and whilst I understand most of the theory, I am still struggling with the practical applications! I'm trying to write a program that will allow a user to enter 10 whole numbers, then return the sum of all 10 numbers, the …

Member Avatar for piyota
0
4K
Member Avatar for kenji

Hi, I'm trying to copy a value in a vector to a string. The vector is also of string type, I'm trying to copy through the iterator. [code=CPLUSPLUS] for(iter = inputStr.begin(); iter != inputStr.end(); iter++){ string temp = inputStr.at(iter); int count = 0; for(int i = 0; i != temp.size(); …

Member Avatar for jonsca
0
129
Member Avatar for moonw3ll

My question is: If i'm the customer, how can i edit the quantity shown on the overview so that i can afford to pay the totalprice(if i've ordered too much) and delete some on the overview if i want to delete it(really short on money). And if i'm the owner …

Member Avatar for moonw3ll
0
243
Member Avatar for neumannj656

it builds correctly and runs correctly but when the program gets to the while statement, it just stops completely, does not even allow blind input of data. I know it is a little messy but here is the code: [code=c++]// buildingwillcost.cpp : Defines the entry point for the console application. …

Member Avatar for Evan M
0
154
Member Avatar for arithehun

I am trying to create a dictionary program, just for fun. I doubt I will ever get past twenty words. But this program has a problem. It always goes to the word, no matter what I type in, or press. Here is the source code: [code=c++] #include <iostream> using namespace …

Member Avatar for arithehun
0
179
Member Avatar for p3rsia

i Need Help to done this project for my school USER Requirement statement Booksareus wishes you to design a program to satisfy the following requirements: Display a Welcome screen Display a menu of option, accept and perform user choice of option untill E for exit is chosen B.Book List I.Invoice …

Member Avatar for ddanbe
0
112
Member Avatar for kenji

Hi, I can't figure out why my exit button is not working as all the other buttons in my code seem to be working. I have given the code below. The constructor for the button is [code=Java] private JButton exit; .... add(exit); .... exit = new JButton("Exit"); exit.addActionListener(this); [/code] The …

Member Avatar for Ezzaral
0
85
Member Avatar for Mattpd

I am trying to take a user's input and assign it to a certain part of a structure. This code is in my book so I assume it's correct: [code] scanf("%d", &part_number); inventory[num_parts].number = part_number; [/code] I need to do the same thing but with a string instead of a …

Member Avatar for Mattpd
0
131
Member Avatar for bman214

Hello, I am trying to use the CImg library to put images into C++, can someone help? I don't know how to use this program... PLZ HELP

Member Avatar for bman214
0
96
Member Avatar for Jelmund

Hello people :) My teacher gave me a new project to work on. I need to write an application that output all the letters of the alphabet in a random order. I've made some applications before but im still kinda new to this. Could any of you give me a …

Member Avatar for zortec
1
217
Member Avatar for kenji

Hey, I want to know whether it is possible to send a formatted string ie. [code=java] System.out.printf("%2d%6d%23f...",a,b,c); [/code] to a .txt file so that when I view the .txt it will appear properly justified with spaces and tabs. Thanks

Member Avatar for kenji
0
91