Beginners - June 2012 (Page 39)

Doubly Linked List question
 
Hey so I am creating a doubly linked list generic class but I'm having trouble wrapping my head around a piece of code, mainly the code to add an item to the be...
[5 replies] Last: LowestOne that is actually what I'm doing right now - while I understa... (by georgewashere)
by leeto
Try to implement exception handline... Strange mistake
 
In very end moment before compiler done his work completely, a message of error occur that say : " Windows has triggered a breakpoint in _project name_.ex...
[10 replies] Last: Try like: std::string ToStr = p2->ToString(); // Put a breakpoint he... (by S G H)
[help] problem with fstream-stuffs
 
This is the program I'm currently working on for my homework. Basically, it changes the format of a name. If input = Mayura Chen, output = Chen, Mayura If inpu...
[1 reply] : much easier to combine into one read in just a quick pseudo code fs... (by edithsong)
Strange Behaviour
 
int main() { Container::IBStackLinkedList<int> TList(3u); std::cout << TList.Capacity() << " "; // Capacity() #1 try { Cont...
[7 replies] Last: Well, my help didn't really change much, lol. (by S G H)
how to make the loop stop when input 0????
 
#include<iostream> using namespace std; #define size 10 struct node { char Code ; char Value ; node *next; }; class book { private: node *...
[4 replies] Last: int Number = 4; int Number = 4; See the difference? There is a butt... (by S G H)
Problem overloaded type multiplication
 
Hi guys, I have an issue regarding multiplication of a constant. I have a one parameter constructor. Can someone please tell me why sol=scalar*fraction is no...
[3 replies] Last: I have created a fraction object, with a numerator and a denominator. ... (by toomanystars)
Having a little problem with calculator
 
Here is my code: #include "stdafx.h" #include <iostream> using namespace std; int addition (int a, int b) { int r; r=a+b; return (r); } ...
[10 replies] Last: cin >> i; : This line of code does not extract the new line characte... (by Lowest0ne)
Using \n as a delimiter
 
Hello. My question is rather simple. While I can use strtok to, say, divide the contents of a string of months separated by spaces or commas into useful little...
[4 replies] Last: Oh, hey, wow, that's a lot of answers rather quickly, thanks guys. I r... (by Deisenberger)
Just getting started
 
Hello everyone I've been a member of this site for about 5 minutes now, working up the courage to type something. Anyway Im 21 years old and recently figured o...
[12 replies] Last: It isn't really "Complex", once you get used to it you will even notic... (by S G H)
Error :) tips are welcome
 
I've been making a car rental and have came arross an error with my arrays would someone like to help me with the error please feel free to give me tips and ide...
[7 replies] Last: goto. isn't all that bad. Its use is handy in some scenarios: voi... (by closed account zb0S216C)
by JAM96
Game Developement
 
Does anyone know any good tutorials of c++ game development? From very basics to more advanced stuff?? I have searched and searched, writing "C++ space i...
[7 replies] Last: yeah changing "SDL.h" to <SDL.h> But I did realised that where it s... (by JAM96)
by Jaak
Need help with some code. In a hurry!
 
I need some help with this assignment: Need to write a function, with a prototype like: int numberofday(char*); Parameter should be the date as text in...
[2 replies] Last: Option 1: Have you even tried? i.e. have you got some code that you ha... (by RogueBalloon)
by cj123
average of two decimal numbers
 
how do I Write a C++ program that finds the average of two decimal numbers input
[4 replies] Last: It looks as if they're inputting from a file, or trying to atleast, it... (by Volatile Pulse)
i can debug..but the pop() function did not pop the value that i wanted..it keep pop the last value that i insert!!!!!!
 
#include<iostream> using namespace std; #define size 10 class stack { private: int num; int array ; int top; public: stack(); ~stack(); vo...
[6 replies] Last: thank you!!! (by B031110034)
how to call a constructor from another one with stuff between ?
 
Hi all, With Cx11, we can call a constructor of a class from another one from the same class like this : class Foo { int d; public: F...
[5 replies] Last: Thanks all. (by lalebarde)
by zombie
operators in an derived class do not behave as I would like
 
I am surprised by the behaviour of my code: I have an instance A of some container class (containings templates). I defined an operator T& operator (int n);...
[1 reply] : Maybe I use the information of typeid not smart enough... Can I do som... (by zombie)
by QIZI94
I need help with writing and reading a txt file
 
Hi guys I have problem with putting a multiple data to txt file. For exemple I show you what I want: #include <stdio.h> #include <stdlib.h> #include <string...
[4 replies] Last: Ok, thanks it work. (by QIZI94)
flush cin buffer ?
 
when i run the program works fine, but after continue it reverse the new number but shows also the previous number. how can i clean the cin buffer ? i tried wi...
[2 replies] Last: thanks :) (by Kronolynx)
by jPytlo
Classes trouble :S
 
Hey. I'm having trouble with getting classes down, some help would be great! I wrote a very simply program that just calculates the average travel time of a v...
[2 replies] Last: you sir are a gentleman and a scholar (by jPytlo)
convert 4 char array or string to integer representation
 
I'm trying to cast a 4 character string to an integer that represents the characters. I do not want atoi as I don't want to take a string "1234" and make it int...
[5 replies] Last: That has to do with the endianess of the system right? And correct me... (by Fewmets)
June 2012 Pages: 1... 3738394041... 51
  Archived months: [may2012] [jul2012]

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