- Strength to Increase Rep
- +6
- Strength to Decrease Rep
- -1
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
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. |
|
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] |
|
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 … |
|
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!!! |
|
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 … |
|
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! |
|
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 … |
|
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 … |
|
___________________________ [b][u]|My other computer is a CRAY|[/u][/b] |
|
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 … |
|
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 … |
|
[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: … |
|
[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 … |
|
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 … |
|
[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() … |
|
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.... |
|
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] |
|
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 … |
|
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 … |
|
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 … |
|
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(); … |
|
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 … |
|
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. … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 |
|
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 … |
|
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 |