Beginners - April 2012 (Page 39)

Explanation of the operator= method overload?
 
Can anyone explain to me what the purpose of the assignment operator method should look like? Are you just doing a deep copy of all your data? For instance: ...
[1 reply] : If that's what you want to do, then yes. (by Gaminic)
by Baso
What these codes supposed to do?
 
Hello everybody I was reading some source code for Sudoku solver and I found these codes, but I don't know what are they do, don't know how they work. So c...
[1 reply] : Those are bitwise operators, more specifically: 1: bitwise OR (and as... (by Gaminic)
major problem with my .exe app
 
so i released the executable app for the program through my IDE after my programs' done, but I realize I want to optimize it but windows 7 denies modification o...
[3 replies] Last: ok but how do i add my own description to the file itself once release... (by MyGirlfriendLikesPorn)
Program not doing the right thing ... it is failing to output!!!
 
Here is the code: #include <iostream> using namespace std; void otherfunc(short* ref); struct methods { string input; }; methods M; int main() {...
[6 replies] Last: thanks so much the original OP is my other account but for some reason... (by MyGirlfriendLikesPorn)
Need help figuring out the last problem to a craps game
 
Hello, I am in a beginners C++ course and have to complete a craps game assignment. The only specific requirement is to use a void function to print out a b...
[1 reply] : cout << "Your roll: " << die1 << " plus " //You cout die1 twice, in... (by BlackSheep)
by wd40
Error 1 error C2512: 'Date' : no appropriate default constructor available
 
I am having issues developing my classes for a project. I am getting error C2512: "Date" no appropriate default constructor available. I am by no means an exper...
[3 replies] Last: I suggest method 1 as all it requires is just giving the existing con... (by guestgulkan)
by kready
Array advice would be appreciated (1,2)
 
I'm new in c++. I have an assignment as follows...... The goal of this assignment is to use a 2D array to represent a region of the earth which will start wi...
[27 replies] Last: alright everything is working great. Thanks everyone for the help i ap... (by kready)
Help with headers
 
Encrypt.h #ifndef encrypt #define encrypt #include <iostream> #include <string> #include <fstream> #include <conio.h> using namespace std; void enc...
[3 replies] Last: try void encrypt(std::string phase) (by ui uiho)
Encrypt thing
 
Hey, I'm trying to encrypt a message and I need to know how to convert an ASCII value to a char so I can add 1 to 'a' and it will come out 'b'.
[2 replies] Last: Thanks! (by Ryan Bush)
Pointer, class, overloading
 
Hi guys, Have trouble cleaning up code. I can do it without overloading, but code is so much cleaner and elegant when overloaded I would like to become more ...
[13 replies] Last: Thanks, I already ordered two books from chapter.ca, so I will put yo... (by toomanystars)
Help encrpyt message to lower case
 
1. Write a function with the following prototype: void toLowerCase( char [ ] ); The function receives a string as argument and converts all the upper-case let...
[1 reply] : convert is c = tolower(c); for simple encryption just do if(!iss... (by ui uiho)
by xirtam
division returns same number regardless of numbers used
 
Hello, I'm having a bit of a problem with a school assignment. The getWeight function seems to return 54 no matter what numbers I use. I've wasted at least 45 m...
[10 replies] Last: So I just have to override the setWeight function because when the set... (by xirtam)
string base class
 
I was wondering if anyone could help me? I created a class in c++. I did not use anything as a base class to be derived from in the class wizard. is it possi...
[no replies]
help with decrypt and encrypt
 
1. Write a function with the following prototype: void toLowerCase( char [ ] ); The function receives a string as argument and converts all the upper-case let...
[no replies]
by TTT
Classes
 
who can tell me why this program work incorrectly? #include<iostream> using namespace std; class dat { int n; char *names ; public: dat(); friend...
[10 replies] Last: char *names ; why make an arrow of pointer chars? use a vector of stri... (by ui uiho)
Confused with "pointers" in C++....
 
Like I read the tutorials, but Imma kinda lost. So there's "two" kinds of pointers, and they used to refer memory of another address and one that points and ...
[1 reply] : there is one kind of pointer. it points to the memory allocated by a v... (by ui uiho)
Help me clear my mind on this mystery
 
Hey guys,i was reading alot about the maker of C++,Bjarne, and i was redirected to a website http://harmful.cat-v.org/software/c++/I_did_it_for_you_all i ...
[3 replies] Last: http://www2.research.att.com/~bs/bs_faq.html#IEEE (by firedraco)
Sense of Unions?
 
ok, to my understanding a Union is identical to a structure but all union variables occupy the same memory location? Please correct me if I am wrong. So wou...
[2 replies] Last: Thanks for the explanation Framework. (by gmenfan83)
Reading info from a file into arrays
 
I am not sure what I am doing wrong but I am only getting the first number in the txt file. txt file is like this 4708708 Alabama 698473 Alaska 659577...
[8 replies] Last: Got it, thanks again. (by closed account 2EURX9L8)
unable to run a program file
 
hello guys,my program does not run.The compile log gives me an error written: Compiler: Default compiler Executing g++.exe... g++.exe "J:\Welcome.cpp" -o "J:...
[7 replies] Last: Does it still do nothing when you open it? If so, please post the cod... (by LB)
April 2012 Pages: 1... 3738394041... 66
  Archived months: [mar2012] [may2012]

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