Beginners (Page 79)

c-equivalent of "reference" and "reference to a pointer"
 
Could someone please let me know the c-equivalent of: 1) reference? 2) reference to a pointer "*&"? ...
[2 replies] Last: @TarikNeaj Thanks for responding. Let me first summarize what I kno... (by dkumar3)
Range-based loop problem
 
The loop won't break. //string second="45670"; //string first=""; //int max=7; for(c...
[12 replies] Last: Thank you. You're talking about the second table, right? http://www.t... (by mighty asker)
How to check if argv contains a letter
 
Write your question here. if the command argument was 123abc3, how would check for the letters in t...
[1 reply] : #include <iostream> #include <string> int main( int argc, char* argv... (by JLBorges)
Insert Node
 
I want to insert a node 2,4,6, and 5 and it should be inputted that way but it outputs 5,6,4, and 2....
[3 replies] Last: I fixed it! Thank you! void Insert(int data) { Node*temp = new Node(... (by Vandalism)
by Lee125
symbol "->"
 
Can anyone explain I Did not understand the symbol "->". it=mylist.begin();           ...
[12 replies] Last: I didn't get this symbol also (by Wilma Negron)
logical operator question
 
can someone explain to me why the output would be ans is 5?? else if (!y||!x) ans =0.5; //why it ...
[3 replies] Last: See my edited post, i mistook x for y before. Am sorry ! (by bazetwo)
Using sort() with function
 
Hello. This is my sort() function: sort(evens.begin(), evens.end(), second); ...which is using:...
[7 replies] Last: keskiverto, Could I do the same with this ( http://www.cplusplus.com/f... (by mighty asker)
New Problem, see recent post please!
 
I'm working on a function to open a file, and mostly it works. This is the code I have based on my e...
[10 replies] Last: Person* match = find_person_by_firstname(myvector, "John"); if(!match... (by S G H)
Calling struct pointer method in main
 
struct Pool* createPool() { struct Pool* pool = malloc (sizeof (struct Pool)); // TODO pool->l...
[no replies]
How do you print each element from a stack?
 
Simple question I just need to know how to print each individual element from a stack
[4 replies] Last: Oh yeah that helped haha thanks! (by agamatr)
struct pointer
 
struct Pool { int items; uthread_sem_t lock; uthread_sem_t count_from_empty; uthread_s...
[1 reply] : If you have an object, you use the dot operator (.) If you have a poin... (by Disch)
verify input is a character
 
Quick question. My problem is that when someone enters an integer or non valid char, the error state...
[1 reply] : make answer of type std::string , then simply check if the string c... (by Smac89)
Issue with figuring out function to compare 2 arrays
 
Write a program that will store 7 integers (entered by the user) into an array called list1. Next, p...
[5 replies] Last: @TarikNeaj I guess you're right. I usually don't work with out of ... (by fg109)
by GilTea
Reading file and storing to a vector
 
Hi, I am trying to build a feature into my program that allows for information to be read from a...
[1 reply] : hey, your code is trying to index a vector that has no elements which ... (by bazetwo)
How to write the operator new[] and operator delete[] here in the Class HeapTracked?
 
I came across this problem when I was reading More Effective C++. It's in Item 27. The class HeapTra...
[no replies]
Getting a missing semicolon error on a loop?
 
I'd say I'm about to scream but I've already screamed several times. I'm getting a syntax error fo...
[6 replies] Last: Yes!! Thank you fg109. My program now breaks correctly and doesn't ask... (by violakat03)
Linked List Print
 
The program I'm currently writing uses a linked list. When the the program first starts, the current...
[2 replies] Last: Thanks. I wasn't really thinking about the post conditions when attemp... (by thomaselder84)
Unable to create instance of class
 
Hi, I am having some difficulties when trying to create an object of a class. I have several cla...
[3 replies] Last: Hi, I have created an instance of the class however I am unable to p... (by PapaSmurf)
2D Array
 
I'm having trouble getting this 2 dimensional array to display as a pyramid, and i have no idea wher...
[1 reply] : Please edit your post to use code tags - http://www.cplusplus.com/arti... (by TarikNeaj)
by deline
file reading
 
I'm trying to read a file in a very specific way and am having trouble finding a method I understand...
[1 reply] : Nevermind, as soon as I posted this I thought of a way: string word;... (by deline)
Pages: 1... 7778798081... 88
  Archived months: [mar2015]

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