General C++ Programming - September 2013 (Page 16)

help getting logic for doubly linked list
 
Hey everyone, I need a bit of help getting some logic down for a homework assignment. I need to delete the Nth node from a doubly linked list. I know I ...
[1 reply] : It's helpful to draw pictures to understand operations like this (circ... (by htirwin)
How to compare char* pointer with a range?
 
I understand you can do char* charpointer ; charpointer = "12"; if (charpointer == '1'){ } but how can we test for a range? 0-1? so I can compar...
[1 reply] : Use a C library function - strcmp There are other versions which a... (by TheIdeasMan)
error: 'myfunction' not declared in this scope
 
Hello, wondering if anyone can help me. Using CodeBlocks 12.11. I've been trying to write a program using wxWidgets and finally gave up because... well, it wa...
[6 replies] Last: doug4- I never quite thought of those details. Thanks for the correcti... (by Alrededor)
by dillo
Any suggestions for making a game?
 
So I've taken a few C++ courses and I'm still pretty new to programming but I just wanted to ask a few things. I'm eventually looking to make a game and I wante...
[3 replies] Last: Graphic wise I'm not looking for anything crazy. I'm just planning on ... (by dillo)
calc with loop
 
I've made a calculator program but I can't get it to work with loops. So I have to rerun it everytime. Can someone give me some example source code.
[16 replies] Last: thanks @Ceset (by closed account 36k1hbRD)
Copy the array A element in array B.
 
#include<iostream.h> #include<stdio.h> #include<conio.h> main() { clrscr(); int a ; int b ; { for(int i=0;i<=5;i++) { cin>>a ; b =a ; ...
[1 reply] : What is the question? Note: int a ; . The 'a' is an array with 5 ele... (by keskiverto)
"static initialization order fiasco"
 
Hi, I've come to realize that I sometimes want to do advanced levels of construction/initialization in the initial part of a program, and I want this to be don...
[15 replies] Last: I see, so the anonymous namespace namespace { const A::init A_init ... (by smcguffee)
by ddiana
assertion debug failure, text files, and tokenScanner
 
Hello, I have written a program that processes text files one at a time and extract relevant information. My program works well with some of the text files and...
[no replies]
new keyword
 
Fred* p = new Fred(); Fred* p = new Fred ; what's the difference between these two statement ;
[7 replies] Last: Uniform initialization is supported when an object is created with a n... (by JLBorges)
Could use some help starting my dynamic array lab
 
Hey guys, I've struggling with starting on my current lab which deals with dynamic arrays. I'll post what I have and explain why I'm doing it this way but if i...
[4 replies] Last: Don't set the value of size in the header file, ... Of course, if yo... (by andywestken)
STL
 
Hello everyone ! Today I got a problem with templates. I'm not that good with them and I can't find usefull exercises. Hope you can help me solving and under...
[15 replies] Last: could also enter data writing that other way ? That won't work. MyS... (by MikeyBoy)
by Ceset
about inheritance...
 
what i m wondering is is it possible to inherit two classes like class class1: public class2 : public class3 { //blah blah }; and if it is possi...
[11 replies] Last: thx for all your answers. i read and memorized all (by Ceset)
running of multiplr threads at the same time
 
i'm doing work on chat massenger and facing difficulty to run multiple threads at the same time. here is the sample code. void menu(); void groupChat(); void ...
[2 replies] Last: Well one obvious problem is input, which thread gets the input if you ... (by closed account o1vk4iN6)
Some help please if you dont mind.
 
so im trying to create a simple program that rolls a 1-6 die and gives me a random 1-6 number. I have about 2 weeks worth of experience so practically none at a...
[2 replies] Last: Thank you so much , and your right that does make alot more sence to m... (by closed account N8pE3TCk)
by Laveer
Thread Error
 
CODE: class Secure { private: int seconds; bool isRUNNING; public: Secure(int seconds) { this->seconds = seconds; isRUNNING = true; } void d...
[4 replies] Last: [quote=cire]Pointer to member functions are sometimes larger than C fu... (by cire)
Class
 
How can a member function in my derived class call the same function from its base class?
[1 reply] : Like this: #include <iostream> using namespace std; class A { pub... (by ajh32)
Dev C++ Process exited with return value 3221225725:
 
My code is compiling successfully but immediately after that I'm getting the message "Process exited with return value 3221225725". The code is working fine in...
[5 replies] Last: Thank you very much everyone for the quick response. :-) (by apurvaKumar)
by Kevngb
Need help with a simple program
 
Hey everyone! I need help with this program. I'm a beginner. Here is the assignment. To get the average of a series of values, you add the values up and th...
[11 replies] Last: Nalaxer14 , you've been asked already to start your own threads for y... (by MikeyBoy)
best IDE for Linux.
 
I'm using code::blocks. Should I use netbeans or anything else
[7 replies] Last: There is also QtCreator and KDevelop - both of which are good IMO. If ... (by TheIdeasMan)
User input question
 
I am in the process of writing a program that will give the appropriate color code for a resistor after the user enters an integer value for the resistance need...
[1 reply] : yeah. use <string> and just parse each character (by closed account Dy7SLyTq)
September 2013 Pages: 1... 1415161718... 36
  Archived months: [aug2013] [oct2013]

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