Beginners - November 2012 (Page 27)

No match for >> operator error
 
I want to be able to input a text file and output the various results. However, I keep getting these two puzzling errors. I could really use some help on this o...
[9 replies] Last: I'm glad that you've got it now. Just one comment. It helps us to help... (by Chervil)
by EZX
Bubble sort algorithm doesn't work...
 
Im trying to make a bubble sort algorithm for this excersise about massives but it just doesn't work. Think i have lost like 3 hours on this one, seriously. ...
[1 reply] : I never understood why teachers always use bubble sort as an example. ... (by toum)
Creating a Space Mapping system
 
Hello, as I go through various books and practicing I'm writing my own little space simulator app for fun and to reinforce the stuff i'm learning. Problem is no...
[8 replies] Last: After some tinkering I figured out the backwards Y coords and rather t... (by cratervanawesome)
Returning function within a function (if you know what I mean)
 
#include <iostream> #include <string> #include <math.h> using namespace std; int addNum(); int multiNum(); int subNum(); int divNum(); int sqroot(); float po...
[7 replies] Last: Sorry, I see where you're coming from. I feel that I was struggling to... (by DJLad16)
Alignment of Two Different Data Structures
 
I've hit a brick wall here. I'm trying to align two data structures (see their layout below) in a single pool of memory. Because the two data structures differ ...
[1 reply] : Beginners section, huh? Hmm. Can't you use C++11's alignas for this... (by Catfish2)
outfile error
 
Here is my code, I keep getting a " no match for opperator error on my outfile, I have no idea why? #include <iostream> #include <fstream> #include <iomani...
[1 reply] : Two input files: ifstream infile, outFile; (by Chervil)
Where To Learn?
 
Hey everyone, no doubt this has been asked before, but I want to ask it again, this time including some things. So, I need to know what the best way to learn C...
[17 replies] Last: cnoeval is right, there is no one correct book, we are all bias towa... (by LGonzales)
Help comparing char arrays
 
My program is supposed to pass 2 character array's to a function to see if they're equal. When I compare the two arrays, my program only compares the first lett...
[4 replies] Last: Thanks (by jarellh94)
creating rpg battle (or something like that)
 
Hi guys, i am creating a somekind of rpg battle, where the program reads the input from a .txt file. i created the code but when i want to start the battle, it ...
[9 replies] Last: what code should i put in my to string function to make it work? i wan... (by fahrishb)
using void print()
 
Hello All, I am attempting to write a program that takes a month, day and year and outputs the date in athe format Day/Month/Year... I think I am close and do...
[3 replies] Last: Thank you! that's what I had been missing. (by NoQuarter)
by yaraa
functions
 
hi all our teacher gives us a homework and she says solve it in function ..I didnt know how to solve it write a program that asks the user for her exam gra...
[11 replies] Last: This is not a difficult problem to solve, but it looks like you are mi... (by Meden)
Splitting string from getline
 
Background: I have a file with first name, last name, pay rate, hours worked, overtime rate, tax rate, and other deductions. Basicaly I am needing to produce a ...
[8 replies] Last: Glad to hear you got it working. (by SamuelAdams)
print on multiple lines?
 
I can not get the out put file to print on multiple lines, the typical end line commands seem to have no effect on the file created. ex. pds << name << ...
[4 replies] Last: your code should work, but it will put 2 new lines in your output sinc... (by SamuelAdams)
C++\CLR Visual Studio 2012 Windows forms application: Get Element By Id From WebBrowser
 
hi, i'm a beginner of the C++\CLR, what's wrong with my code? private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { ...
[2 replies] Last: thanks (by waseem1345)
by tsangz
Help me to clear multiple spaces.
 
Hi all, int i; void f3(string& text3){ for(i = 0;i < text3.length(); i++){ do{ string s(text3.begin(),text3.begin() + (i)); string t(text3...
[10 replies] Last: Your solution is better than mine. Thank a lots. You help me a lots, ... (by tsangz)
Calling classes from their own constructors
 
I'm working on a basic game that involves modifying objects. The concept is you find "mods" which you can combine with other "mods" to make a totally new one. I...
[3 replies] Last: Did you know you can define member functions (including constructors a... (by Catfish2)
Anoying errror
 
So here's the deal. I was a making a simple program. Register, Login and Exit but I wanted the password to show up as "*" so I came here and I found a solution ...
[2 replies] Last: Thank you. I guess with all the hurry of trying it on I forgot it. (by lockandstrike)
help with pointers
 
Hi everyone i'm writing a program that reads the name of the restaurant and the number of visitors of the restaurant. the goal of the program is to print the na...
[2 replies] Last: wow thank you very much! just a simple line solves it all. thanks code... (by fahrishb)
Simple code with strange ERROR
 
Hello! I am a noob right now and i meet strange problem that don't let me sleep at night. I wrote this program for learning purpose: #include <iostream> usi...
[2 replies] Last: What a stupid mistake. Thank you very much. (by tobiasz24)
Need help passing two char arrays and comparing them.
 
Here's my code. If I enter "stuff" into the console it still returns 'B'. Am I doing something wrong? char searchit(char , char ); int main() { char st...
[2 replies] Last: That worked thanks. (by jarellh94)
November 2012 Pages: 1... 2526272829... 75
  Archived months: [oct2012] [dec2012]

This is an archived page. To post a new message, go to the current page.