Beginners - November 2011 (Page 4)

help with returning a single value
 
I am working on this exercise Write a function named daycount() that accepts a month, day, and year as its input arguments; calculates an integer repres...
[2 replies] Last: When I started programming I had a difficult time writing code. What h... (by closed account GADSLyTq)
by Zedes
Annoying error.
 
Hello. This is my first time here. Anyways, I was working on code and making structs, when I got an error stating that said ERROR: two or more data types in dec...
[2 replies] Last: missing semicolon ; after first struct declaration.. you can learn m... (by Maimaje Bello Abdullahi)
AVL Tree program
 
please, i'm new in programming. i want to write AVL tree program. I have been trying to write the program but, it's giving problem. Please, it's urgent Than...
[5 replies] Last: it work perfect. tnx (by alvin sunday)
Classes Problem
 
Just as an initial note, this is NOT a homework problem. As you may know from my earlier posts, I have certain difficulties understanding classes. This was just...
[6 replies] Last: Also, if someone could just give me some more practice problems of the... (by Caprico)
cant figure out why this happens
 
I created a 2D array called school and inside the school is a lunch and a janitor. They both randomly move and if they land on top each other, the janitor has c...
[2 replies] Last: huh...that looks like a stupid mistake 0.0 (by RonTheMoron)
Else if else statement calculator
 
Hi, I built a basic calculator that could use addition (or subtraction, etc, if I changed the code) but I wanted to build one that did addition, subtraction, mu...
[3 replies] Last: Thanks guys! I'd switched it around so much I forgot all about setting... (by Makenshi Snake)
i need a help in the for loop statment
 
i need to write a program that prompts the user to enter the value x , the program should print message to show whether the x is prime number or not useing for ...
[1 reply] : you must have some idea? (by Peter87)
by abiz
stringstream integers into arrays
 
Hello, i have this code #include <iostream> #include <sstream> using namespace std; int main() { int num; string s = "9876"; stringstream...
[3 replies] Last: You wrote that line without thinking about types. s is a string, s is... (by hamsterman)
vector or pointer array??which one is the best
 
HI I am really trobled with memory management problem.Like this program #include <iostream> #include<ctime> #include <cstdlib> #include<fstream> ...
[4 replies] Last: You can use arrays if you know the size at compile time though. Or ... (by Gaminic)
Recursive Sorting Array
 
//Tests the Divide-and-Conquer Sorting pattern. #include <iostream> using std::cout; using std::cin; using std::endl; //This is the file sortpattern.cpp...
[7 replies] Last: Yes, thank you. But if I don't stare at the code,how can I continue re... (by hentaiw)
Please help with C++ program
 
Hi.I have to make a C++ program with the following "Make a program that calculates an expression" for example (2+3*5+(2^4*3+(5/6)*7)-4) The expression must ...
[3 replies] Last: Before you begin, write down the precedence rules on a piece of paper.... (by Gaminic)
OOP : creating objects into a vector
 
class Student { private: string name; string gender; public: Student(){}; Student(string sName, string sGender, int count); }; ......
[6 replies] Last: Just in case you're not exactly sure: Passing by value makes a copy... (by Gaminic)
by moot1
calculator loop
 
can you guys help me add on to this program by using loops to let the user enter however many numbers he or she wants to use. please help me with this and make ...
[8 replies] Last: Yeah! The how many question is outside the loop... you store that in n... (by Caprico)
by RapidX
Structure question
 
I am looking into structures in C++. With the following small program, I am getting an error during compile that says: Lvalue required in function main() thr...
[3 replies] Last: Thanks for the responses Peter and Andy. (by RapidX)
2d array pointers...
 
am i doing this right? im assigning random values to Matrix a & b using a pointer, then trying to print out the first value in matrix a...not doing something ri...
[5 replies] Last: sweet thanks lol (by ande6870)
Remove excess user input
 
i am a really beginner in C++ programming (and are in a really great despairr from my programming test 1 mark that i just got lately...WhatEver...) I'm just...
[2 replies] Last: oohhh..lolll...good solution there...thankss...!!! (by kurenai)
Need help displaying a stack
 
So far I have #include<iostream> #include <stack> #include <list> using namespace std; int main() { stack<int, list<int> > stck; /...
[2 replies] Last: Thank you sir. You have helped me plenty today. It honestly seems sim... (by nomdaweb)
overloading new , new[] , delete, delete[]
 
Hi all, i want overload the new,new ,delete and delete completely in my project. project has lot of classes. now it is very difficult overload for each c...
[4 replies] Last: It's scope dependent, and you cannot affect libaries that are already ... (by LB)
basic multi-threading
 
Hello, beginner to C++ and code in general here. I have been teaching myself how to code for about the last month (using on-line tutorials), and am in the pr...
[7 replies] Last: Jim, you are a genius. your example of int pointers in your above pos... (by tiennen07)
Matrix help
 
i have this code here that was provided by my teacher 8. const int SIZE = 50; 9. typedef double Matrix; however, this is what i get for line 9, not s...
[4 replies] Last: Is that the function spec for multiply() that the teacher gave you? I... (by jim80y)
November 2011 Pages: 123456... 65
  Archived months: [oct2011] [dec2011]

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