Beginners - March 2012 (Page 66)

by atjm88
Name for array?
 
#include <iostream> #include <conio> int main() { int i, x , y = {3, 8, 2, 9, 4, 1}; for(i=0; i<=5; i++) x = y ; for(i=0; i<=5; i+...
[4 replies] Last: #include <iostream> #include <conio> int main() { int i, x , y ... (by Stewbond)
Need help getting started on a classes assignment?
 
I need help getting started on this assignment: http://hypergrade.com/grader/problem_set.php?id=1075 Here is my current code: #include <iostream> #inclu...
[2 replies] Last: The main program (i.e. int main()) MUST be used according to the assig... (by bhwdragon2012)
function running twice
 
Hello, I am new to C++ and just started learning functions. My problem is that when I run the program it asks me to enter the number of employees twice. Here is...
[2 replies] Last: Thanks, that fixed it. And you stopped me from making an error on the ... (by Socratezz)
Running out of heap space?
 
I'm trying to read in a file containing all the counties in the US and store them in a county object that I've created. I got the file to read correctly, but wh...
[6 replies] Last: I think your biggest problem is trying to read the integers from the f... (by Texan40)
by xyz92
can anyone give solution of this??
 
(Account Class) Create a class called Account that a bank might use to represent customers' bank accounts. Your class should include one data member of type int...
[4 replies] Last: Did you just copy that from your schools website? (by bboy212)
by g4774g
c_str fails after a replace string
 
string fileName; // fileName is set to xxx-yyy.abc if (fileName.find('-')) { replace(fileName.begin(), fileName.end(), '-', '_'); } So far so goo...
[2 replies] Last: ** IGNORE THIS THREAD POST ** I was renaming a filename and then won... (by g4774g)
user defined datatypes
 
Hello, I would like to create an user defined datatype based on another user defined datatype. // curve scenario typedef struct { int id; dou...
[4 replies] Last: If you need that much memory, allocate your structure on the heap ( ma... (by hamsterman)
I have a project im working on...
 
I have a .csv file and im looking to write a program to gather information and make calculations. Is there any site or tutorials on how to start on something l...
[no replies]
by Lio
Check if a word exist in sentence
 
I need to solve this problem and I need help how to aproach it Do I have to work with char array representing the sencense or there is a better way Thanks
[1 reply] : This video may help you: http://thenewboston.org/watch.php?cat=16&num... (by Exispistis)
Struct Report strings I/O
 
So Im having trouble writing this piece of code. This is the story: The Department of Information Technology needs a means of assessing current system usa...
[no replies]
Sum of numbers from string
 
Hello all ,this is my 1'st post here So ,I have the following problem to solve Given the file "stringfile.txt" I need to make the sum of all the NUMBERS in t...
[1 reply] : Since you need to sum by "line" you should look up std::getline(). Yo... (by Texan40)
pointers
 
please tell me about the pointers in C++. and give the detail about declaring the pointer in program.
[4 replies] Last: thanks friendz................. (by devender)
by chipp
getline question
 
i have a question about getline , to where the function return the value? for example: #include <iostream> #include <string> using namespace std; int ...
[8 replies] Last: I showed you already an example! Why do you do not try it?! (by vlad from moscow)
MODULUS CONDITION NEED HELP!
 
INTRODUCTION OF CODE: This is a small game, named Subtracting Game. here User and Computer Subtract the Specific Number that they decided to be subtracted fr...
[15 replies] Last: (a%b) is the part of a that can't be divided into 'b'. Thus, not a sin... (by Gaminic)
by atjm88
num2++??
 
#include <iostream> #include <conio> void shownum();//Function prototype int main() { for (int count = 0; count <5; count++) shownum(); getch(); ret...
[10 replies] Last: Thanks chipp, then how to input into wait? And can I declare it as int... (by atjm88)
HELP::What is this error?
 
Hello, after writing this class I had some kind of error that said.. Error: PCH Warning: header stop cannot be in a macro or #if block. An intellisense PCH fi...
[3 replies] Last: ooh ok, thank you. Its because I did not include this file yet that it... (by illlojik)
by Pat3
Pointers
 
Hello, I watched the tutorial about pointers, I have a little problem. I do not really understand their works and utility. Can you explain more precisely the ...
[8 replies] Last: LOL my mistake with the * and the &. The rest of what I said is right ... (by NerdTastic)
by atjm88
Change of basic array
 
#include <iostream> #include <conio> int main() { char a = "programming c++"; int i; for(i=0;i<=9;i=i+1) { a =a[9-i]; cout<<"i=...
[3 replies] Last: Ok...I understand now...thanks everyone...^^ (by atjm88)
Unknown error during compiling
 
I am trying to code a basic program that computes the netpay for an employee and displays a report on the screen. Please see the purpose for full details. The ...
[9 replies] Last: Thank you very much for the help. (by dsustudent59)
what's wrong with this code?
 
Hello, I'm trying to figure out this problem I'm having so that I can finish the last portion of my programming lab for school. I know I've fixed this error bef...
[4 replies] Last: Well don't that beat all. I just removed all the paramters from setVal... (by Patriots12)
March 2012 Pages: 1... 6465666768... 71
  Archived months: [feb2012] [apr2012]

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