Beginners - July 2014 (Page 10)

Calculator Not Showing Result
 
So I copied this code from the Programming Principles book by Stroustrup on how to make a calculator but I cannot make the result display. Using visual studio...
[5 replies] Last: The error() function isn't part of the standard library. It's a Stro... (by Chervil)
convert char array to int array
 
My entire program can be found here: https://sites.google.com/site/temprpgquestion/go-here-for-the-program i have the maps for my rpg game made as a 2d char ar...
[1 reply] : Char Map = { "#####", "#@~~#", "#~T~#", "#~~W#", "#####" } //M... (by Antone333)
interpret string input of varying lengths
 
I am trying to read user input for recipe ingredients which must include a ingredient name, and may include a quantity and a unit. Example: Stone ground flour 2...
[3 replies] Last: The thing is that when all the words are in the vector, you can make d... (by keskiverto)
by TveryO
Newbie , trying to make program repeat (loop)
 
hey guys! Im trying to learn how to make a program repeat itself and then terminate it with a y/n function ? i know i use a "while ( again == y)" line like t...
[3 replies] Last: You could do something like this: #include "vehiclee.h" //include th... (by programmerdog)
atoi not converting properly
 
i need to reverse the bits of 0x43 and convert it back to an int. when i use atoi it just outputs the same value 1100001. int divisor = 0x43; int r_diviso...
[no replies]
by Yamor
Operator overloading
 
Hi there, I've been experimenting with operator overloading, and I can't seem to overload the * operator where the right hand side operand is a plain integer (...
[3 replies] Last: I've actually worked out what I've done wrong, but I can't work out ho... (by Yamor)
by MacC
Completely restart program.
 
Hello, I am new to this forum and still quite a beginner in C. My Problem: I am working on a console program in C. OS: Windows XP SP3, with Dev-C++ and MinGW....
[6 replies] Last: Thanks a lot. I carefully read through the MSDN-Documentation and Cr... (by MacC)
Vowel program
 
I need to create a program that outputs whether or not this is a vowel outputting if is true or false. Yet, everything is just outputting that it is not a vowel...
[3 replies] Last: What is the contents of your input file? Also does your input file ex... (by kevinkjt2000)
replace words in strings
 
I have this exercise from my book, I have to use iterators and the insert and erase functions to replace all oldVals with newVals in s. But I get an out of r...
[8 replies] Last: I got it, but it still has a few errors that I think I can fix, thank ... (by closed account EwCjE3v7)
Writing a String to a File
 
Here is the problem: Write a program to open a text file named "CSC2134.TXT" for output, then accept lines of text from the console and write the lines of tex...
[8 replies] Last: I'm sorry it turned out that way. It's hard to target help at the righ... (by Chervil)
Need help with connect() in Sockets - C++
 
Hello So, I'm using multiple sources for writing in sockets now (pdf, sites,...) http://www.linuxhowtos.org/manpages/2/connect.htm . But I'm stuck wi...
[3 replies] Last: From the man page you linked to: An example of the use of connect() i... (by kevinkjt2000)
Some problems
 
Hello everybody, to start explaining I first of all need to tell you I’m quite new in this field and I don’t know what is wrong with my code... I hope this...
[2 replies] Last: Thank you very much, yes the perror function said that the file does n... (by miru990207)
Begginer Problem using external libraries
 
Before I start, I want to thank you in advance because this thing got me really frustrated recently :( I think this deserves the begginer area but correct me if...
[4 replies] Last: The errors I got: Warning 1 warning C4627: '#include <opencv2/core/... (by GreenGoblin)
by wharp2
Working with arrays on the heap (1,2)
 
What I have to do is listed below. If you look at my code I am wondering why it is not looping through all of the text file. The out put is also listed bellow...
[25 replies] Last: Read my comments above about lines 88, 96 and 100. Per my edit, I ... (by AbstractionAnon)
Am i doing something wrong?
 
The file im creating keepsgetting truncated and I dunno why.. /* Im using Turbo c++ cause Im a student*/ #include <iostream.h> #include <fstream.h> ...
[5 replies] Last: In my perspective I look at Turbo C++ as a stepping stone and I am awa... (by imtehnewb)
private/ public
 
guys why should i need to private the data members/variables what's the sense of it if cant use it in main function..
[13 replies] Last: To take the date of birth example a little further, consider that dob ... (by AbstractionAnon)
by CroP
Problem with if statement
 
I am trying to have a if and else if statement within a if statement but I keep getting an error on the else if "Error: expected a statement;" #include ...
[1 reply] : woops, had a ; on the if statement (by CroP)
by gac9
Multiple definition errors on compile
 
I have written code in a single file which works on an Arduino with display but when splitting it into .h and .cpp files I get multiple definition errors. I gue...
[1 reply] : You don't need to include Arduino.h in cpp file too (by LaboPie)
by vxk
Defining functions of template class
 
I have been having trouble defining functions of a template class ;this is my first time with template classes . In the following code i have been getting 41 er...
[4 replies] Last: > line 4 would pollute anything that includes your header An example h... (by ne555)
Opengl connected line node graph
 
hey guys, i am trying to create a graph with nodes and lines connecting the nodes all together ( it is going to be used for showing path methods such as a*) and...
[3 replies] Last: That is a data structure decision. What you have now is a non-sparse ... (by keskiverto)
July 2014 Pages: 1... 89101112... 43
  Archived months: [jun2014] [aug2014]

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