General C++ Programming - October 2012 (Page 3)

Please hepl me by completing vector's find function
#include<iostream> #include<vector> using namespace std; vector <string> names; //Getting...
[no replies]
How to convert a char pointer to unsigned short
Hello, I am working on this project where I receive a char pointer, but need to cast it to an unsig...
[1 reply] : methodB is saying that it can accept a pointer of any type. This is... (by AbstractionAnon)
by Ammo
Initializing Char Arrays
Hi, I wrote a simple program that takes a users information and displays it back to the user. Fo...
[4 replies] Last: Ah -- I'm slipping. I've Edited my post. Wazzak (by closed account zb0S216C)
Reading Data from File
Can anyone help me to retrieve data from the file. How do I display the appointment of Peter with fs...
[6 replies] Last: thanks for your help .. there wasn't error , but after keying in the n... (by Charcoalman)
Code is Done Can You Just Explain My While loop? :D
Hello. I failed my C++ class two semesters ago and I am retaking it. I am doing really well comple...
[7 replies] Last: If the next line in the file is not a double or EOF it keeps going. If... (by SamuelAdams)
3 little problem with class
1. int * p; p = 0; // is this right? if(p == 0) .... //in this case, the 0 means the address or t...
[4 replies] Last: The problem is that std::cout is a class derived from std::ostream ... (by doug4)
Alphabet Permutation (All possible combinations)
So I have been coding a small program in C++ that prints all possible combinations of up to 3 charac...
[2 replies] Last: thanks, figured as much. good to get some confirmation on that (by contraversy)
help me understand dec to bin work
like this: unsigned int uiNum = 38; for(int i = 31; i >= 0; --i) { cout << (((uiNum >> i...
[2 replies] Last: The opeartor % returns the remainder of division. For example 3 % 2 =... (by vlad from moscow)
Stack vs Heap
Hey everybody I was wondering when to use heap based allocations vs stack based ones. Even though i...
[5 replies] Last: Ok, i see. Thank you guys (by Angeljruiz)
MySQL c++
[1 reply] : (by kbw)
Importing and Exporting from Excel in C++
I'm writing a program to sort a Binary Design Structure Matrix. Ideally, I'd like to use Excel as a ...
[no replies]
if -else statement
i dont understand th if else statement with it block statement please help me .. :))
[2 replies] Last: What Moschops said. Think of it like this, if 'a' is the same as 'b'... (by Callum5042)
Having trouble finding my errors.
I am trying to get this programming running to turn in for an assignment however I am banging my hea...
[11 replies] Last: @Edmundce (1) Don't do pointless posts like this - you could get repo... (by TheIdeasMan)
Compiler does not recognise Include Path?
CPP Include Path not seen by compiler?? I'm trying to build a CPP library and have set the CPP Incl...
[no replies]
Segmentation Fault (core dumped)
Code snippet written in C: int main(int argc, string argv ) { char final_cipher_txt ; cha...
[4 replies] Last: Nice Cire. Thanks, works perfect. *bows* Aries (by ariesthechamp)
by mimihk
Can I use a union declaration in a constructor ?
Hello, I am trying to learn C++, I used to work with C I have a question about constructors, l...
[1 reply] : You mean like class foo { private: union uni { int foo; double... (by Angeljruiz)
Switch statement into an array.
Hello, I'm trying to store the count of each roll into an array to simplify the code. However, I'm f...
[3 replies] Last: use this for variable declaration. SO much easier it gives an array of... (by DarthBane)
Debug buggy program
I am tring to figure out why this program wont run???? // Monthly Sales Analysis #include <i...
[7 replies] Last: ok I thought I had it but I put 0 instead of -1 on my lowmonth functi... (by nenakay)
undefined reference to
Hey I am having some problem with my code I just cant figure it out. I keep getting undefined refe...
[1 reply] : First format your code by highlighting it and clicking the <> button. ... (by Gulshan Singh)
Help me with my assignment "NO TIME"
I tried to do my homework but there's no time because I have to send it to my professor today and th...
[2 replies] Last: Theres plenty of time. Coding that should only take a few minutes hone... (by Angeljruiz)
October 2012 Pages: 12345... 50
  Archived months: [sep2012] [nov2012]

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