Beginners - October 2011 (Page 55)

by kw1991
for loop to find certain numbers ?
 
ok so i'm using structs for the first time and don't really understand how they work. I have a text file with 30 records of dates, names, and other information....
[10 replies] Last: ok so now the code looks like this struct Report { double su... (by kw1991)
by s10jam
Issue with updating time
 
I have a problem with my updating clock program. It works fine, except the time is not constantly updating while the program is running. Only once at the launch...
[2 replies] Last: Thank you for the reply an thank you for CLEARLY explaining the soluti... (by s10jam)
Singly linked lists - what are they for?
 
I just read through a tutorial here: http://www.cprogramming.com/tutorial/lesson15.html i think i more or less understood how it works but i can not think...
[2 replies] Last: thanks alot, that gave me a good idea what and when these lists are go... (by Nelphin)
Circular include dependencies.
 
Hello, I'm working on a project and this time around I've decided to split everything up into files, because my previous project ended up being one depressin...
[16 replies] Last: So if I understand correctly, the problem has always been there, but i... (by Gaminic)
malloc/free bottleneck
 
My application depends heavily on dynamic allocation of nodes for data structures, and malloc/free overhead is becoming a bottleneck. What can I do?
[1 reply] : http://en.wikipedia.org/wiki/Memory_pool (by closed account 1vRz3TCk)
a question about archive
 
I am now using a package written by someone else. I am following the README instruction enclosed in the parent folder to compile. The parent folder contains two...
[5 replies] Last: Galik, Thank you for your response. Yes, you are right. The AR flag, ... (by subjugater)
How Do I: Nested struct
 
Hi guys, I have a little bit problem with my code. I had declare a pointer which is member to a nested structure. I pointed it to a string where the string is a...
[6 replies] Last: It's fine Nisheeth, problem has solved, thanks. :) (by mexists)
by john87
Need help on array rotation
 
Im new here and I would like some help on my program. My program involves a 10x10 array. I have to rotate only the first row of the array once. The succeedin...
[9 replies] Last: No problem! Just don't forget to tag your topic as "fixed" if your ... (by Gaminic)
Floating Point Exception... catchable?
 
Hello all. So I'd like to know if an FPE can be caught with try/catch blocks, and if so how?
[1 reply] : Of course you can catch FPE. Just declare the catch argument appropr... (by eypros)
by Ch1156
What did i do wrong? (Functions)
 
Ok so here is my code: #include <iostream> #include <string> using namespace std; void Store(int,int,int); void func2(); int main() { strin...
[19 replies] Last: Doing it by return value is not the best way, in my opinion. Change... (by Moschops)
'list' does not name a type
 
//header.h #include <list> class a { private: list<int> a; public: }; build message: error: 'list' does not name a type How can I solve ...
[3 replies] Last: Thank Azagaros and Gaminic, I forget the namespace std. Thank you very... (by guevara)
Need help, with my loop
 
The Current Code I have is: int main(){ int train_weight, total_weight=0, train_num, counter=0; float train_length,total_length ; string Train_ty...
[1 reply] : Hi, I tested it on g++ (linux) and it's working fine. could you post y... (by sbonnalc)
How do I use a while(!line.empty) loop?
 
So I'am trying to make a program that uses a while loop to pull data form a text file. I'm using a while loop because I do not know how many times it will ha...
[9 replies] Last: you may need to do: int main () { string line; ifstream myfile (... (by Azagaros)
Need Teachers = )
 
Hi People =D , i'm new to C++ and i need help .. i'm trying to finish my assignment but i don't know how to finish it -P I need to make a project that do th...
[5 replies] Last: hi, from what i understand you only have to check wether a user entere... (by Nelphin)
by Anon
Maze solving algorithm issue
 
My code works to a point. It will go then it stop. I'm not sure why. Any Ideas? Thanks in advance. #include <iostream> #include <ctime> using na...
[no replies]
by Yezman
first c++ practice exam questions. Three basic mc questions.
 
Here are some questions from my practice exam I can't get... 7. Which of the following variable declarations will compile? a) double FOObar(); b) double my...
[4 replies] Last: Ah, thanks for the help. I knew about the \t and \n stuff, but wasn't ... (by Yezman)
Trouble with looping
 
CLOSED
[8 replies] Last: How can we answer a question when you delete the question? And furthe... (by Disch)
Loan + Intrest
 
i want to get this Loan Amount: $ 10000.00 Monthly Interest Rate: 1% Number of Payments: 36 Monthly Payment: $ 332.14 Amount Paid Back: $ 11957.15 Int...
[no replies]
Reading a text file into an array
 
lastname Taylor marie denise james wilis surname thomas Stone Rock lastname Brown surname lea high lee stephens lastname reynolds lastname mack russell su...
[2 replies] Last: Sorry bout that. The error message I am getting is this:main.exe has s... (by Krmit10)
Looping issue - HELP PLEASE
 
I'm doing a program for my class, Here's the objective: Write a program that will predict the size of a population of organisms. The program should ask the u...
[2 replies] Last: Thanks for the help, i got it! (by Derekrm14)
October 2011 Pages: 1... 5354555657... 59
  Archived months: [sep2011] [nov2011]

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