Beginners (Page 67)

by Bizzy
Bool Not Returning Value?
 
Hey, so this is embarrassing since this is an incredibly basic function I'm trying to write, but whe...
[4 replies] Last: whenever I test it I don't get either true or false What do you mea... (by xismn)
next function
 
My understanding for next(ptr,n) is it returns a pointer to the nth element after *ptr. My questi...
[4 replies] Last: Yes, it is std::next(). Thanks. (by landlord1984)
assert C++ (Problem understanding the code)
 
I have problem understanding this code. I don't understand what is going on from assert code. ...
[4 replies] Last: > Am I right with my logic ? Yes. assert(size < capacity); is equiv... (by JLBorges)
Class - dice_roll error
 
I'm getting error code - error: expected primary-expression before 'dice_roll' in my constructor. Wh...
[5 replies] Last: Got it! I finally realized that all of the variable names in the const... (by volTron)
Help with functions
 
Hi, Is there another way for me to properly terminate my rock, paper, scissors program other tha...
[6 replies] Last: Why is it not proper? Because it introduces a hidden control path t... (by mbozzi)
Problem displaying strings from a struct using a pointer
 
Im working on an assignment where the user can enter some inputs via a struct pointer and display th...
[1 reply] : employeeRec *p, records ; I suspect you wanted records to be an arr... (by gunnerfunner)
Need Help With Input
 
Good evening all, I need some help fixing the readgraph function for my minimal spanning tree assign...
[1 reply] : add this in a couple places and see what's going on. cout << "U:" << ... (by SamuelAdams)
by tit0n
Infix to prefix
 
Infix to prefix. I am trying to follow pseudo code with no luck Where am I going wrong? #inc...
[1 reply] : I don't see any pseudo code here, what problem are you having ? (by SamuelAdams)
assert C++ (Problem understanding the code)
 
I have problem understanding this code. I don't understand what is going on from assert code. ...
[no replies]
String - Out of range
 
When i delete the last character in the string I get the error "string is out of range". I understan...
[4 replies] Last: Can you put your problem into a small stand-alone program involving ju... (by gunnerfunner)
Storing user input
 
Hi everyone, I'm trying to build a program where the user inputs a string that has an int, and a...
[2 replies] Last: #include <iostream> #include <string> #include <cctype> #include <ss... (by gunnerfunner)
I need some help with this mobile service provider program
 
Here is the assignment: Mobile Service Provider A mobile phone service provider has three differ...
[no replies]
qualified id identifier declaration before (
 
Write your question here. class labf { private: double volumec; double volumes; ...
[1 reply] : Line 24: pi is not defined Line 18: It's a poor practice to have an... (by AbstractionAnon)
Namespace
 
Quick question: Does declaring an entire namespace affect a program's performance vs not declaring ...
[3 replies] Last: Does declaring an entire namespace affect a program's performance De... (by gunnerfunner)
Code Efficiency C++
 
For larger programs, code efficiency starts to become a big deal. Does it matter if we say (size > ...
[3 replies] Last: To be honest in "larger programs" code efficiency is hardly ever the ... (by AlanG)
Switch Statement Help
 
,, easp
[4 replies] Last: Since you used toupper then you don't need to test the lower case. Th... (by joe864864)
strchr() question
 
I saw some pretty bizzare use of strchr() in a 2009 exam subject.. char* s; strcpy(s, "in...
[3 replies] Last: Thanks! It was substraction after all. It just seemed very.. bizzare. ... (by InsanelyNormal)
Bool functions and Tic-Tac-Toe
 
Hey guys, I am writing a code to give the result of a tic-tac-toe game. Specifically, every possible...
[5 replies] Last: Line 76: If getWinner() returned false for all calls at lines 67-70 ... (by dhayden)
How to raise something to a power using bitwise
 
My professor said that we should know how to raise some number to some power using bitwise. I've sea...
[2 replies] Last: Thanks. I can follow that. I appreciate your help. (by GoonerBrian)
Program produces unreachable locations in the maze
 
So I'm trying to create a program that generates a maze using depth-first search. For the most part,...
[6 replies] Last: Yep that was the problem lastchance thanks. (by deathslice)
Pages: 1... 65666768
  Archived months: [feb2017]

Cannot post in this page. To post a new message, go to the first page.