General C++ Programming - April 2013 (Page 3)

Improve run-time of C++ program
 
Hello Everyone, I have recently started programming in C++ and also started coding on Sphere Online Judge. However, my solution got rejected as it exceeded ...
[14 replies] Last: If you must use cin, at least put in a msg telling the user what is e... (by MiiNiPaa)
console window showing weird numbers. picture included
 
anyone know why this is happening? not sure what to type on google.. and the google results isn't the answer I'm looking for. http://s15.postimg.org/ww0ss3e5...
[3 replies] Last: Also... since jon() doesn't return anything, it probably should return... (by Disch)
Template C++ Question
 
Question: http://i.imgur.com/wdlEQG4.jpg OR http://www.gophoto.it/view.php?i=http://i.imgur.com/wdlEQG4.jpg#.UXy1rG-Qab4 Code: http://libraryofcprograms.bl...
[3 replies] Last: Thanks Nobun. You interpreted correctly. (by Rehan FASTian)
Can anyone explain why my loop to traverse a binary tree is working but not how my professor wants it to work?
 
Hey guys I'm pretty stumped on part of my code right now. I've done some testing and it looks like my code is working how it's supposed to work. It's essentiall...
[1 reply] : This code is quite confusing for me... I don't understand why it is st... (by Nobun)
identify floating or alphabets
 
hello i have this homework where i am implementing a code which does error checking so basically i have 3 variables and i assigned them as integer. so my e...
[19 replies] Last: this is good http://stackoverflow.com/questions/3024197/what-does-int-... (by topnik1)
Initializing an array of string type in a class
 
I want to use this array as part of my class. I have tried several different angles trying to get it to work but with out success. I have been checking to see i...
[4 replies] Last: struct day_type // in header day_type.h { day_type() ; // ...... (by JLBorges)
by Rousan
calculating reveres and summation
 
can some one tell where is the error? #include <iostream> #include <string> using namespace std; void ReverseInputDigit (int I); void SumDigit (int S);...
[1 reply] : what seems to be an error? it works ok for 5-digit numbers. (by KRAkatau)
Program execution delay II
 
Hi all! I now have new problem with execution delay. Yesterday I had similar issue and I got help in resolving it. All worked fine in C++, but when I tried to p...
[3 replies] Last: I just realized I can use Timer option in C++Builder. I haven't manage... (by Nina Sma)
by djibn7
how to add a call function?
 
How to ADD a call to the FindMostExpensive function AFTER the main display loop, and use the index returned to display the information about the most expensive ...
[1 reply] : Please indent your code (by ne555)
by yay86
how to print any input year in digital block form
 
hello I am new to programming and i found this problem that i need your help, how to print a year like DIGITAL CLOCK NUMBER for any input four digit number fo...
[1 reply] : You'll need to parse the number into a string first (use std::to_strin... (by Bourgond Aries)
bank account using classes
 
this is what I have so far could you guys help me and see what's wrong with it? objective 1. The class should keep track of a bank account, recording...
[1 reply] : Use of direct memory manipulation is strongly discouraged in C++. Use ... (by MiiNiPaa)
Palindrome Program Gone Wrong- Please Help
 
I've been taking this online Stanford class for a while now and the assignments are starting to not make sense. I'm looking for help fixing this mess of a code....
[1 reply] : a) You are using str, which arent declared anywhere in your check func... (by MiiNiPaa)
How to store memory address in a pointer?
 
Hey, I 'm not even sure what I'm asking is even possible, but if it is I would really appreciate the syntax; What I'm trying to do is: int *p; some...
[6 replies] Last: > on line 13, I'm kinda being forced to store in address, rather then ... (by JLBorges)
getting two inputs from client.
 
hi all, i`m doing a udp client server application. i tried to get two messages from the client, however i`m unsuccessful in doing so. i tried to put 2 recei...
[no replies]
by mrpeed
How can I install glew for Code Blocks on Windows Vista?
 
I downloaded glew 1.9.0 files and dragged the lib, include, and bin of the glew into the mingw folder within Code Blocks. I don't know if this is the right thin...
[1 reply] : the best way to use vista is to fine a disc that lets you upgrade to x... (by closed account Dy7SLyTq)
Please Help
 
I need help on my circular linked list using templates, but I get a number of errors when I compile. Please help.. #ifndef CIRCULARLINKEDLIST_H #define CIR...
[2 replies] Last: I got it working after 3 hours of pounding away at it. (by BinaryGeek)
Is This Valid Insertion Sort?
 
I coded this up to use insertion sort on linked lists. It just doesn't seem like a valid insertion sort. My predictions on swaps and comparisons are off, so I'm...
[no replies]
i/o array problem
 
The program I am trying to get to work takes in a string student ID. 2 double test scores (max score of 200) and 5 double home work scores(max of 265) from a te...
[no replies]
by ND04
Pointer Display Number Of Days When Name Of The Month Entered
 
I Need Help With This Binary Search Tree Program Where User Have Option Of Choose From The Menu. I Stuck At The Case Where User Asked To Enter The Name Of Th...
[no replies]
Could I get some direction on this code please.
 
For some reason I can not get it past 00-000 when I use: while (ii<=9); I'm getting closer with: while (ii++<=9); but it runs this: 10000-999, This on...
[2 replies] Last: giblit, Thanks for the fast reply, The second code is closer to what... (by theascen)
April 2013 Pages: 12345... 53
  Archived months: [mar2013] [may2013]

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