Beginners - May 2015 (Page 7)

What is the best library for databases
Hi, i'm now member here. And i have some questions. 1. What is the best library for databases? i tried MySQL++ is it the best? 2. What is the deference between...
May 27, 2015 at 12:20am
[1 reply] : You really should just ask one question per thread! 1. What is the b... (by andywestken)
Examples of Good Uses of goto Statement
From what I've read on this issue, I understand that the goto statement is discouraged for a few reasons: (1) It leads to spaghetti code (2) It makes the pr...
May 27, 2015 at 12:05am
[16 replies] Last: I think this sums up the use of goto quite nicely: http://www.xkcd.co... (by IWishIKnew)
HPEN object declaration
Hey, I had a problem that I fixed, but probably not properly. My problem was, that after a few seconds, the window just stopped redrawing and responding to my...
May 26, 2015 at 11:46pm
[2 replies] Last: Thank you very much for clearing all the questionmarks out of my head!... (by Powerpuncher)
Confusion
Can someone explain how this works? step by step and the flow control of the for loops, I've not learnt much about nested loops, thank you. I usualy like to go...
May 26, 2015 at 6:51pm
[3 replies] Last: Face palm (by Haloween123)
converting
Im getting avgRunsPerSize won't convert it to bool error error: could not convert ‘avgRunsPerSize’ to ‘bool’ #include "griddy.h" #include "roo...
May 26, 2015 at 6:38pm
[2 replies] Last: Or, if you're trying to use the ranged for loop: for (int runs: ... (by cire)
by stj
Linked list and function
Hi all i can't understand the output of this code node* test(node* &X) { node *t=X; t=t->next; node*k=X->next->next->next; X=k->next; k->next...
May 26, 2015 at 6:21pm
[1 reply] : Does this help? node* test( node* & X ) { node* t = X; t = t->nex... (by keskiverto)
problem in quiz game
Hi, i have written a quiz game on c++, the problem is that when i apply while loop to all the questions, the program does not pass question 1 and terminates,...
May 26, 2015 at 5:09pm
[1 reply] : 1. Nearly every big forum has a "READ BEFORE YOU POST!!!" for a reason... (by R23MJ)
what if delete before new?
is it OK to delete a char* before new was called for it? example: void read(char*& text) { delete text; text = new char ; text = "hello"; } int main...
May 26, 2015 at 3:38pm
[3 replies] Last: void read(char*& text) { delete text; // deleting arrays needs d... (by andywestken)
Trouble with .h file
Everything seems to be fine when I write out all the codes, but then when I try to compile, lots of errors concerning the 'string' identifier pops up. I have #i...
May 26, 2015 at 3:33pm
[1 reply] : The C++ string class is in the std namespace, so you need to use ... (by MikeyBoy)
by jow123
FIND THE OUTPUT
{ Int i = 10; i=i+5; Cout《i++; }
May 26, 2015 at 3:24pm
[3 replies] Last: line 12. (by mutexe)
Vector Program - Help needed!!
I'm in a Programming class in high school and we're learning C++. I have a graded lab that is due and I have little to no clue how to approach it. Any ideas? An...
May 26, 2015 at 12:33pm
[2 replies] Last: How stupid is that to hold 3 fields in a single string, i.e. Firt... (by ajh32)
display sum of odd number between 1 and 10 using a FOR loop
display sum of odd number between 1 and 10 using a FOR loop #include <iostream> using namespace std; int main() { int numbers; for (int number...
May 26, 2015 at 11:18am
[2 replies] Last: hi , i taking programming so our lecturer told us to add using namesp... (by kennyluah)
Core Dump Problem
Hello! I am trying to output the highest score of a particular player. It runs well until it hits the last part of the code when I am trying to isolate the bigg...
May 26, 2015 at 10:36am
[3 replies] Last: Many people don't use using namespace basically because many functions... (by shadowmouse)
by arvust
Comparing string with wildcard characters
Hi, Working on some code that compares strings, currently trying to implement a function that will recognize '_' as a wildcard so that for instance, c_t woul...
May 26, 2015 at 9:57am
[3 replies] Last: Cool! I assume you mean this on line 11 i < pattern.size() (rathe... (by andywestken)
Placement new
I'm wondering where does placement new's storage gets allocated. Is it the stack or the heap? char buffer ; ... int * test = new int ; int * test1 = new (bu...
May 26, 2015 at 9:05am
[6 replies] Last: Thanks! It's clearer now. (by Bendistocratic)
problem about delete linked list
I have a problem with delete a linked list and i'm really thankful if you can help me. In destructor definition , i set first to NULL; but in the main functio...
May 26, 2015 at 7:14am
[4 replies] Last: oh. i've get it. thanks dude. (by kimlanghy12)
Serious problem about pointer!
#include <iostream> #include <cstdlib> using namespace std; struct node { int info; node* left; node* right; }; void makeNode(node* r, int x)...
May 26, 2015 at 5:31am
[13 replies] Last: Thanks a lot! I appreciate your help. (by PSYCHAMERON)
by koopey
vector sort with templates problem
can't seem to understand the error message or find the error. the error message i get is: D:\codeblocks\sort with template\main.cpp|10|error: cannot conve...
May 26, 2015 at 4:22am
[6 replies] Last: i got what you said in last post but, one part i ain't clear about wha... (by koopey)
Out of Range Vector Matrix
I'm trying to create a bool function that returns true only when the number of rows in the matrix == 1 or if there are more that 2 rows, it returns true if each...
May 26, 2015 at 3:49am
[6 replies] Last: Thank you very much. I had tunnel vision and I really thought that th... (by Extreme112)
Simplier way to do this?
Could I do this in a easier way. Is the way im doing it stupid. I've been doing this since I begun programming 5 months ago. I don't know if it's wrongg it just...
May 26, 2015 at 2:02am
[1 reply] : The biggest problem with your code are your functions. You should not ... (by BlatantlyX)
May 2015 Pages: 1... 56789... 40
  Archived months: [apr2015] [jun2015]

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