Beginners (Page 74)

Can array have a value of a struct with a couple members in a struct ?
 
Can array have a value of a struct with a couple members in a struct ? struct allCarsG...
[3 replies] Last: And I wanted to use it to sort all of the cars carId ONLY You cant ... (by TarikNeaj)
Object orientation programming
 
Write your question here. Int x=20 Int y=1 If (x <0 || x>y&&y != 9) --x --y Cout <<x<<""<...
[3 replies] Last: This is how the book we are using for this class showed the code h... (by TarikNeaj)
freeglut warning will not go away
 
I'm creating a simple window using opengl and freeglut. #include <windows.h> #include <GL/g...
[1 reply] : Is there no one who has experienced this or knows the answer? (by Remludar)
How do you sort a stack using selection sort?
 
Part of my homework includes sorting a stack using a selection sort and I don't know how to do that....
[4 replies] Last: I guess pop can be considered a top function.. The public functions ar... (by agamatr)
Password Verifier, trouble verifying password
 
Trouble getting this to run through checking the password properly, please help. I have been running...
[2 replies] Last: Thank you!! I changed that and it works perfectly now. I tend to over ... (by GIjessiebear)
by adoweb
Creating objects during program.
 
Hi there, i'm creating my simlpe program about cells in petri-dish. I have class CELL with data ...
[1 reply] : yesterday i learned object can't be made from variables That is not ... (by keskiverto)
integer being reset to zero
 
I'm trying to figure out why my code keeps resetting the power once entered, back to zero once the f...
[3 replies] Last: set the power variable as a static variable. (by confusedengstudent)
by Futbol
Array
 
I've been working on a project for 3 hours now and I've got this random guessing game to work flawle...
[5 replies] Last: Using your code, I can only play the game once, if I type in Y or y it... (by TarikNeaj)
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)
Pages: 1... 7273747576... 83
  Archived months: [mar2015]

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