Beginners - May 2011 (Page 17)

Emergency help error issue!
I have two diverse versions of Microsoft Visual Studio, one that is 2010 Ultimate, and the other that is 2010 Express Edition. So just the other day I was debug...
May 20, 2011 at 3:11pm
[9 replies] Last: So I have to assign a value for valid? Here is how to assign a valu... (by Moschops)
What is the Order of Complexity of this algorithm?
I should to solve this problem in the most efficient way for a school project but I can not determine the Order of Complexity. For a given numer s>7, I shoul...
May 20, 2011 at 3:08pm
[1 reply] : I don't really know about O of this code. Nested for loops somehow imp... (by hamsterman)
by bbcc
member functions
Could any one help me with this please: G4RunManager::GetRunManager()->SetRandomNumberStore(true); where G4RunManager is a class name. So GetRunManag...
May 20, 2011 at 2:35pm
[7 replies] Last: You need to break that down into individual calls 1. what does GetPar... (by kfmfe04)
by IvanLi
need help in urgent, why segmentation fault during read file
experts i got a annoying error message from my program here is the code int main(int argc, char *argv ) { string file = argv ; ifstream fin; ...
May 20, 2011 at 12:34pm
[1 reply] : What's str? Using a char* does not mean unlimited memory. You can use... (by hamsterman)
č,ľ,...
Hi everybody, I have a big problem I have a lot of text to rewrite from one file to another but some text I have to miss some parts som I created a program t...
May 20, 2011 at 11:54am
[no replies]
by bbcc
constructors
Hello, I am in an urgent need of help with this expression. This is from a code that I have to work with: PrimaryGeneratorAction::PrimaryGeneratorAction(De...
May 20, 2011 at 11:46am
[1 reply] : The part after : in a constructor is called an initializer list. In it... (by hamsterman)
by bbcc
Class II
Hello every body, This is an example of class II tutorial in this website: struct { string product; float price; } a, b, c; a = b + c; The code abov...
May 20, 2011 at 11:12am
[1 reply] : [quote=bbcc]does it mean that if we want to use operators we have to d... (by anonymous23323124)
simple scanf() problem
Dear Experts- Here is my very simple code where I am trying to input each lettre of user's name and then finally display the name:- void main() { ...
May 20, 2011 at 10:48am
[1 reply] : scanf() read two characters instead of one, the input character and ... (by matsom)
by bbcc
Class
Hi Every body, 1)Can any one help me with the emaning of *the static method of aclass* I wonder if a class has a dynamic method as well! My another questi...
May 20, 2011 at 10:46am
[6 replies] Last: That' great thank you:) (by bbcc)
Problem on Array Declaration
whats the problem of this declaration int getLength(char* str) { int i; for(i = 0; str != '\0'; i ++){} return i; } void concatenate(cha...
May 20, 2011 at 10:31am
[1 reply] : Q: whats the problem of this declaration A: Errors: -expected const... (by matsom)
Runtime Error Check Failure
Can someone explain why this produce errors.. char temp = ""; temp = 'a'; temp = 'b'; temp = 'c'; temp = '\0'; please advice. thanks
May 20, 2011 at 9:51am
[4 replies] Last: The second one is no better. The type of string literals is const char... (by hamsterman)
Parallel Assignment
Hi guys, I just came across this code fragment. The last statement is the part of interest void DLinkedList::add(DNode* v, const Elem& e) { // insert new nod...
May 20, 2011 at 9:24am
[2 replies] Last: [quote=NewProgrammer]I want to confirm that the last statement is a pa... (by closed account z05DSL3A)
by pcworx
Can some one tell me what LOCATION is?
// begin rectangle.hpp #include <iostream> using namespace std; class Point // holds x, y coords { // no constructor use default public: void SetX(...
May 20, 2011 at 6:42am
[4 replies] Last: yes exactly...damn I don't know I just found out I have some traumatic... (by pcworx)
Collision Jump 'n Run
Hi folks, i am still working on my 2D Jump and Run game. But I have now a problem with the collision detection. My idea was since it is a tile based game to ...
May 20, 2011 at 6:07am
[3 replies] Last: Hi, I see what you mean Athar my way was around the problem. I changed... (by Kelevra)
by amaac
Problems STL string.substring and strtoint
I have this part in my code where i want to make a substring of a string into an int with my str to int function. I have functioning code. I am wondering why i...
May 20, 2011 at 4:01am
[4 replies] Last: Athar You have been a great help. Thankyou for explaining that to me. ... (by amaac)
Vector Char and saving files
Can you use vector char's to save files with ofstream? Also does anyone know how list the files that you created with fstream?
May 20, 2011 at 3:19am
[2 replies] Last: hints : by vector (1)std::istreambuf_iterator<char> or use string to ... (by stereoMatching)
by joshiv
Matrix manipulation
I have a function with the following prototype: void replaceZero(int matrix ){ } I want to get the number of rows in this matrix. Is it possible...
May 20, 2011 at 2:08am
[6 replies] Last: If you don't have too many different types of matrices (with different... (by Duthomhas)
cin.get & cin.getline doesn't work
can any1 tell me why all cin.get and cin.getline in this code doesn't work???? #include<iostream> #include<istream> #include<fstream> #include<string> using...
May 20, 2011 at 1:04am
[1 reply] : Your problem is line 51: cin>>x; This leaves junk in the input buffe... (by firedraco)
Having trouble understanding logic of Functions
I'm using a book to teach myself, and one chapter is dedicated to understanding functions. However, when I look at the example it has given me, I can manipulate...
May 20, 2011 at 12:11am
[9 replies] Last: ^e.g. bool prime(int); //later bool prime(int x) { //defines the ab... (by firedraco)
How i made this game?
How i make the game from here http://www.cplusplus.com/files/tank3b5.zip I ahve Vs c++ 2010 and devc++
May 19, 2011 at 8:25pm
[1 reply] : I see a .DEV extension in there. My guess is that you need Dev-C++, ... (by closed account zb0S216C)
May 2011 Pages: 1... 1516171819... 48
  Archived months: [apr2011] [jun2011]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.