General C++ Programming - November 2013 (Page 7)

The usage of delete
 
Hi, I am wondering in the following context, should I use delete or delete ? Thanks. struct node{ int val; node * lnode; node * rnode; }; int mai...
[3 replies] Last: I have this question because nd has two pointers. What does that ha... (by MikeyBoy)
Program help
 
Hi!I have a slight problem with this program and I will be glad if anyone can help me: The elements of the stacks have to be sorted with the bubble sort....
[no replies]
biggest number [newbie here]
 
whats wrong with this code ?? can run but my teacher said it's not correct enough. the question is to find the biggest number. #include <iostream> using...
[1 reply] : > whats wrong with this code ?? can run but my teacher said it's not c... (by JLBorges)
Need help with- read a file using a class
 
Hello everyone! I'm new to programming and my question is, how do you read a file using a class? the contents in my file: 123 Larry Herp 001 456 Berry P...
[no replies]
by Juicej
ip adresses
 
hey i was given a project and decided to do something in the networking field, which is what im interested in... so i have decided to make a simple windows appl...
[no replies]
Binary search delete function
 
Hiya, I am having an issue when i try to delete a node with 2 children it either doesn't delete anything, or wigs out in various manners deleting the wrong nod...
[1 reply] : also, sorry for the massive amount of comments, they are necessary unf... (by morzhul)
Best c++ compiler
 
Hello everybody! Which c++ compiler is the best?
[13 replies] Last: Thanks a lot. Is it possible to use Open Watcom C++ to make OS? (by ArnoldRich)
Help with get functions
 
I have my program, but I can get to work the getAPRCharge and getPayment() functions...Please help..! Your goal is to create a program that calculates the fina...
[3 replies] Last: I'm trying to implement the changes , but always I get errors.. like A... (by shadow69)
independent study topic suggestions
 
I'm sorry I know this doesn't have to do general c++ programming. I'm a undergrad junior and I'm planning on doing independent study next semester for computer ...
[no replies]
Need help with my ATM machine program.
 
I have my code here, somewhat finished but I need help saving a user his amount in the atm machine. I also have trouble withdrawing and depositing. May you help...
[no replies]
the calculations are done correctly but it is showing zero need help
 
#include <iostream> #include <cstdio> #include <fstream> #include <string> #include <iomanip> using namespace std; const int SZ = 55; void tellUser(); ...
[1 reply] : here is the output, all zero in regular pay, overtime pay and gross p... (by GokuK97)
Let's See who can create this program.
 
My friend an I are having trouble trying to create this program.It's our first year taking a C++ class and our book isn't helping us at all with the program. If...
[2 replies] Last: @ Cutefriendzoned No, don't do that. Using ten variables will take an... (by Duthomhas)
Question With Memory Allocation
 
Hi, I've read a while ago that memory allocation with new for each and every object was inefficient. Knowing me, I obviously read more on the matter. I think i...
[7 replies] Last: So long as your allocator implements the same methods as std::allocato... (by Duthomhas)
by adv100
strtok function
 
I am using strtok and my code works. My teacher is really big on functions. I am trying to call the function inside of main to a separate function outside of ...
[1 reply] : a) i think you need to derefence the pointer (ie *p) when printing it ... (by closed account Dy7SLyTq)
push button on a website
 
Hi, I was wondering if it's possible to push a button on a website programatically. Unfortunately the button link is invisible, otherwise I could simply use the...
[4 replies] Last: that looks interesting, I'll give it a shot 2morrow, thx! (by dudewhatsup)
Error: Requires Array or Pointer Type
 
I am writing a program and the errors are all for the lines in which I place a variable in the brackets of i (lines 22, 30, 37, 44) They say that subscript requ...
[4 replies] Last: Yeah apparently I did! Thanks so much for your help :) (by kconner)
Why does my program not generate a new number even though i specify srand(time(0))???
 
#include <iostream> #include <stdlib.h> #include <ctime> #include <string> using namespace std; int main(){ int number = rand()%100+1; int g...
[7 replies] Last: no problem (by closed account Dy7SLyTq)
How can I tell a program to continue executing the next line of code in c++
 
Hi, Is there a way to tell the program to continue reading the next line of code whithing a nested IF statement? The reason I want to do this is because...
[8 replies] Last: bool ElseThing = false; if(x < y) { do something if(p > z) ... (by loonielou)
by amc246
Bubble sort error?
 
I seem to get an error after int main (void) saying 'a function definition isnt aloowed here before { token? And then also at the end of main saying 'expexted }...
[4 replies] Last: I debugged your code and took the freedom to fix the indentation etc. ... (by loonielou)
cosinus function
 
Hi all, I've been learning c++ this weekend because I have a university exam next thursday and I've missed all my classes up to now, I had some really import...
[10 replies] Last: Great ! Thanks a lot Duoas :D (by billlyf)
November 2013 Pages: 1... 56789... 46
  Archived months: [oct2013] [dec2013]

This is an archived page. To post a new message, go to the current page.