Beginners - April 2013 (Page 71)

Overload operator= issue
 
BitArray& BitArray::operator= (const BitArray& a) { for(int i = 0; i < a.arraySize; i++) barray = a.barray ; return *this; } I'm assigning it ...
[5 replies] Last: ne555: You are correct. Here is the fixed code: BitArray::BitArray... (by TaytayB)
Allocate array dimension
 
I need to create two classes, and inside one of the classes I must have an array of objects defined by the other class. The size of the array is supposed to be ...
[2 replies] Last: Oh..... Thanks! NOW I feel stupid. :) Always the smallest mistakes th... (by Hashimatsu)
C++ Project
 
Hi ! Could someone suggest a project for programming in c++ I need a cool one for a school project.
[2 replies] Last: thank you very much than i have to start now i have 2 weeks time (by Alban Gashi)
Dijkstra's Algorithm Assignment
 
Hey, I have an assignment due in a few hours, and I can't quite finish it up. I would appreciate if somebody could review the assignment and my code and offer ...
[6 replies] Last: I have the exact same assignment due tonight! cs315 Tuesday/Thursday w... (by EEN421)
Using Custom vector template to change existing project from using arrays to vectors
 
We're taking a pre-existing project and adding a custom made vector class template to it. Thereby going through and changing everything that was declared as an ...
[4 replies] Last: template<class T> T MyVector<T>::at( unsigned n ) const { if(n < v... (by cire)
strstr function help?
 
Hello! I am making a program for which one has to made a 2D array, containing the names of jockeys, and one has to make a function which will search through the...
[1 reply] : I changed your code a little bit though I would have implemented this ... (by kinley)
As a learner should I use an IDE? (1,2,3,4)
 
Probably the eternal question but, I wanted to take this debate out of another thread. I'm a newbie to C++ there's no real argument there, pointers confuse ...
[74 replies] Last: The trolling is obvious now; the "Scientific Method" is not "trial and... (by LB)
assert causing break
 
Heres my code https://github.com/rebukeiscool/calculator The error I'm having occurs at line 136 of operation.cpp. delete deletethis; the input string...
[7 replies] Last: Since you're using getline() you will always have the end of string ch... (by jlb)
by Maissa
is not a member
 
hello , i have this problem with my code and i cant really figure it out ! #include<iostream.h> #include<string.h> #include<conio.h> class customer{ ...
[3 replies] Last: #include<iostream.h> #include<string.h> #include<conio.h> class cust... (by Maissa)
Set up Login
 
My question is once the user set up and account bye doing option 2 Then I want the user to have login so how do run programm so it then can retrieve informati...
[1 reply] : I think you would get help if it wasn't for how hard it is to read you... (by Austin J)
Save user data
 
Hi i finally got my variables to work I'm in beginning stages trying to make a game need to know how to save ID AND PASSWORD ENTERED BYE THE USER and retrieve i...
[6 replies] Last: I once did something similar to this. I had a register and login optio... (by Austin J)
Expected primary expression
 
I need some help writing an inclusive program that computes the sum of the range of a user input. I have an idea of how to get an inclusive program to work, but...
[10 replies] Last: Thanks for the help. Worked fine after I declared the sum in the int m... (by jsmith1)
if else problems
 
#include "stdafx.h" #include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main() { char choice; char a; char b...
[4 replies] Last: @ tmalcuit90 This would be better as a new thread, but I'll try to ans... (by Chervil)
by Joe412
file opening/checking file
 
allright this is my pseudo code i was trying to write in c++. As most of you probably noticed im a c style coder but im learning c++ step by step what im try...
[6 replies] Last: Chervil, wow this thank you alot, is there a place where i can learn c... (by Joe412)
by nerd
2D char array input using for loop. ?!
 
Having Problem in 2D Char Array Input .. Major Problem in the function "fetch_name", Please Have an eye . . . . include <iostream> #include <string> ...
[2 replies] Last: Ok UpDated cOde: void fetch_name(student& s) { for (int i = 0; i < ... (by nerd)
Direct X 10 Library related
 
I just started diving into C++ a while ago and now im using the direct x library mainly for an assignment but probably will go into full detail later on. The...
[2 replies] Last: Ok its fixed after a bit of looking around.. Sorry for the trouble :[ ... (by Histerial)
Need some help here
 
// i wanna know why case 1 is not working ? //and how i can make it working //hope find an answer fast // how i can make (cin) fun work well ? #include<iostre...
[11 replies] Last: what is cin.get(); do? It reads a single character. In this case, we... (by Chervil)
by kw1991
can a .cpp file call another .cpp file? (1,2)
 
I have two separate .cpp files in the a program and in the first.cpp file i have an empty function void CBase::OnStart(DWORD dwArgc, PWSTR *pszArgv) { ...
[25 replies] Last: @OP: Here is how you make class .cpp/headers: in header: class Cla... (by IWishIKnew)
Warning: Source file not compiled
 
This program ran completely fine until I added the for loop into main. It still compiles with no errors, but when I try to run it, I get a pop up window saying...
[8 replies] Last: The last update to the Bloodshed version was in 2005. In fact if you f... (by Chervil)
Array problem
 
Write a program that will prompt the desired search item among the user input array is found or not found by using of the following search method. a. Linear Se...
[5 replies] Last: Thanks cyberdude (by Lin Park)
April 2013 Pages: 1... 6970717273... 83
  Archived months: [mar2013] [may2013]

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