Beginners - June 2013 (Page 21)

Problem in Template Classes
 
1:- In Template class : template <class khan, class khan1, class khan2> if I removed the other two arguments like template<class khan> and then i modify th...
[6 replies] Last: Oops, sorry I made a typo What I mean was cout<<foo(); that would ex... (by ne555)
Keyboard output
 
Hello. I would like to try and create a small program which for example can make my keyboard press a key. int main() press tabulator delay 1000 ms pre...
[3 replies] Last: ok i understood nothing about SendInput() so i tried looking into keyb... (by swagsurfer)
String Objects and String Literals
 
Hey Everyone, I understand that strings are objects of the class string, so when you store a string in a variable, it's actually a reference to the string ob...
[3 replies] Last: all string literals are stored in static memory (although compilers ar... (by Cubbi)
by piczim
c Help with the next step
 
Write your question here. I am trying to work out how I take the result from the question asked in the below code and then do a calculation I am a bit stuck. I...
[4 replies] Last: The scanf() statement is not correct. You have specified that you want... (by Chervil)
How is formatted input in iostream?
 
HI! I was wondering how can I do some formatted input in C++? I mean like in C we write : int a , b ; scanf ("%d.%d" , & a , & b) ; this piece of c...
[2 replies] Last: cin.setwidth(int) i believe (by closed account Dy7SLyTq)
by abirby
I can't read info
 
Hello, I started programing an application in order to send sms through a cell phone connected via USB port, but I get this wierd problem I can't read info, "ci...
[3 replies] Last: fgets(msg,300,stdin); is executed (haven't seen this that way before... (by coder777)
Destructor
 
Write your question here. #include<iostream> using namespace std; class test { int i; public: test(int k = 7) { i = k; cout<<"C "<<i<<end...
[1 reply] : Which way does it work?:) Its work depends on the storage duration. Fo... (by vlad from moscow)
Error using Regex
 
Recently I've been trying out some of the regex functions in the C++11 and I know about the regex_search or sregex_search functions but that only works non-iter...
[4 replies] Last: > I'm using MingW 4.7.1, it does work with Regex right? No. GNU libst... (by JLBorges)
Class within class
 
Hi, I am currently trying to write a piece of code which will allow me to add a column of data to an existing excel file (which already contains data). At t...
[no replies]
by Blank
time calculator
 
i have no idea how to do this problem..somebody help? Write a program that asks the user to enter a number of seconds. There are 60 seconds in a minute. If ...
[14 replies] Last: Create class Time and then in Constructor set function Check(int,....)... (by GuruMan94)
Please help find problem
 
I am pretty new to this and I have never seen this and cant really find out what it means when I build the program it is saying up-to-date ?? what does that mea...
[5 replies] Last: do a clean and rebuild. (by mutexe)
by incxx
help with adding variables
 
when my program is compiled, the total of all the prices always equals to zero even when a product is purchased. Can someone please help me to fix what is happe...
[3 replies] Last: no, i meant why previous poster saying #include<cstring> and not #incl... (by mutexe)
Displaying Long integers
 
Hi, Could someone please tell me how I can display realllly long integers? I am doing one of the project euler questions, and one part of it requires finding...
[2 replies] Last: one possible solution is instead of long long, try to implement multip... (by abhishekm71)
condition being met, wrong branch taken...
 
Hey Everyone, I'm testing for a condition using a string data type. For a reason I can figure out, the first if statement is "always true." On line 8, I ad...
[2 replies] Last: Thanks IdeasMan, It worked like a charm. I'm just starting to get bac... (by RastaWolf)
Exhausted my resources on function does not take 0 arguments error
 
Hello, I have been working a long time(days) trying to resolve this error. I have researched online, gone through my chapter, notes, slides, and even asked my ...
[4 replies] Last: http://www.cplusplus.com/articles/z13hAqkS/ (by ne555)
help with two transactions
 
i need help with writing a code for lets say one transaction and then for the second transaction the numbers are changed but iam told to copy and paste the code...
[3 replies] Last: You add them together... double totalSellingPriceBoth = totalSellin... (by Daleth)
Random numbers with modern c++ conventions
 
Hey Everyone, I was converting some code to practice a random number generator method I was reading about online. Strange thing is, It doesn't seem to work ...
[7 replies] Last: Thanks for your post. I can stop troubleshooting now! (by RastaWolf)
Help! Problem with bool returns and loops?
 
I guess I'm not sure what my problem is here. The following program is based on a class assignment, but I added a few things to make it a little smarter. The pr...
[2 replies] Last: Dang, that was quick! I knew there was something fishy about that line... (by citizenkoehn)
Bubble sort 2-D array Alphabet
 
I am trying to sort a 2-d array using bubble sort. I get the error Undefined symbols for architecture x86_64: "BubbleSort(char const**, int)", referenc...
[1 reply] : Have you tried removing the asterisk on lines 6 and 30? (by kevinkjt2000)
Pointer help
 
Queue::addItem() is linking the new item on the end ok, but isn't updating pTail to point at the new end. Can someone help with this? void Queue::addIte...
[3 replies] Last: Try this: (I have not tested it yet) void Queue::addItem( char *pDat... (by Smac89)
June 2013 Pages: 1... 1920212223... 49
  Archived months: [may2013] [jul2013]

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