General C++ Programming - March 2012 (Page 20)

by jt1991
exception handling problem here..
 
hi how do i write an exception handling to handle a code where int = t2 and if i enter any input other than int for my t2, exception will come out. heres my ...
[3 replies] Last: thanks cire.. u helped me alots.. my lecturer tested my program and i ... (by jt1991)
Reading from a File
 
Hello, I am attempting to create a smaller version of the Eliza program. I have a bit done, however I am confused at how to read from a file based off whether ...
[4 replies] Last: Aha. I was misled by the presence of the questions array. The approa... (by cire)
Thread synchronization
 
0I am makin a program in c++ where i am loggin some values in .txt file. I am using threading so that the main program is not affected Now my problem i...
[4 replies] Last: thanks Peter87 i will surely look into that but before that plss help ... (by hardtz009)
access specifiers?
 
in classes there are three different acces specifiers rigt? (i asume there arent more?) and i have been told that declaring a variable inside of a public acces...
[2 replies] Last: getters and setters? taking a wild guess here but is that related to... (by even821)
MultiThreading Programs
 
I'm wondering how you would multithead an application. Say I want an openGL object to spin while awaiting further user input?
[1 reply] : you should look into: glutIdleFunc() (by PitDaAnimA)
game engine?
 
i was just wondering about what a game engine is. i have heard it is just a bunch of code written with functions and classes that deal with different stuff, lik...
[2 replies] Last: ah ok, thanks. (by even821)
I need help with functions.
 
Hi, I'm doing an assignment for school to do with functions and procedures. SO basically we are asked to make a program that asks you to put in your test percen...
[10 replies] Last: Thank you Cire :) Seeing your example really helped! (by Tessycakes)
by Aroona
Can anybody help me? I am stuck in a c program
 
I have given an assignment of c to write a program that manages the library records using file handling. I have created almost four modules (Entry, Reporting/Re...
[6 replies] Last: I took array for the structure, it only shows me correct output when I... (by Aroona)
Help in arrays for remarks
 
How can I display if it's passed or failed in remarks? Wherein if 1.00 the output should be passed. My output so far looks like this: |Prelim | Midter...
[1 reply] : something like this? if(point equivalent < ??) cout<<"F"; else cout<<... (by buffbill)
Could someone help me with this simple project?
 
Hello, I recently purchased a book in C++ and one of the exercises is to create a simple factorial function. All it is supposed to do is take all the whole numb...
[10 replies] Last: Just make sure you don't enter anything above 12. :) (by long double main)
define window size
 
Hello! I program in C + + ah few months and develop application in console mode and which function in the code would set the size of the application window? re...
[6 replies] Last: @brunopescarolli: (I know you're a beginner, so just read the bottom ... (by long double main)
Display output function problem
 
So i need to create a program to calculate some amount of number using function, i'm able to do it but my problem is at the display function, i'm not really sur...
[4 replies] Last: Thanks for the reply, i believe i added the functions to my main, but ... (by nasty92svx)
two-dimensional arrays and function help
 
If my explanation isn't clear enough read #9 http://books.google.com/books?id=LUJbzQR7KnoC&pg=PA322&lpg=PA322&dq=0.3*grade1%09%2B%090.2%09*grade2%09%2B%090.2%09...
[1 reply] : You are not calling the function properly: [code firstline=12] int to... (by Duthomhas)
by rzaj
Help with mode Project
 
I have a project where I have to determine the mode from an array of numbers. I got that to work by sorting the array and determining which number came up the m...
[1 reply] : Hi there is no need to sort the data first, all you need to count how... (by therockon7throw)
how is this possible?
 
0113 // octal 0x4b // hexadecimal How can every single one of these b 75? I dunno if i'm right, but the only way i c the octal beein 75 is: ...
[14 replies] Last: That has to do with this: http://www.cplusplus.com/doc/ascii/ (by LB)
question about input in sdl
 
i am trying to write an input class for my sdl game. the class is seperated from my main game loop, but it is called to check for input every frame. the functio...
[12 replies] Last: thanks, it works now :D and i really apreciate the lesson on how event... (by even821)
user editing output
 
im trying to allow users to openly edit the output of the program, for example. i would output the contents of a file onto the consul, and then the user can e...
[6 replies] Last: ¿You want to do a text editor? You load your file in a buffer, show t... (by ne555)
by Cylab
Probability of '0' in random bits
 
Dear All Please share your ideas of following talk. 1) there are n random bits consisting of k '0' (e.g. 11110001000110011000...) 2) the probability of ...
[2 replies] Last: Before we begin, the p=position stuff seems to be confusing you, so fo... (by Duthomhas)
Segmentation fault in factorial program
 
i created a factorial program for numbers greater than 14 , it seems to be working for numbers less than and equal to 80 , but for 81 and above giving segment...
[12 replies] Last: Umm, 1073741820 digits isn't realy a "limit" in that sense the factori... (by viliml)
Problem with gtkmm and c++ class
 
Hi, I created calculator class which analyze string and calculates formulas in it. It works good in terminal. But won't work good in GUI. If I give to clas...
[5 replies] Last: In my function Everything goes well until atof() function. c_equation ... (by Shinigami)
March 2012 Pages: 1... 1819202122... 49
  Archived months: [feb2012] [apr2012]

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