Description:
study group for beginners to learn c
|
|
|
K-th min item of an int_array's subrange
|
| |
[link] Maybe someone has a brilliant idea how to handle it, for to get under imposed Time Limit = 10s On my home-made test data with 100000 elements and 5000 questions my below code runs for ~7-8s on 1.6GHz. It's not fast enough. It asks for a new approach.... more »
|
|
How do I go from exception documentation to syntax?
|
| |
I have been trying to find the correct syntax to catch exceptions while using the Boost Date_Time library. Specifically, I need to catch the event of a month greater than 12, etc. Presumably, I should go to this page and figure the syntax from there. [link]... more »
|
|
reading a file
|
| |
1) Guys, i'm trying to read a file with one integer per line, but i got a problem when the last line is empty (linux text files)... it shows the number before the empty line. Any idea? 2) One more thing... when I try to read a line with one character it prints an empty line. Any idea? 1) FILE *in = fopen(argv[1], "r");... more »
|
|
Help with parameters
|
| |
Hello, I have a problem with some paramters: I call a function with values and, inside the function, the values are changed and I get a segfault. =========== for (int h=0;h<FUT;h++) { int link=theset->getCurrentPattern (i,posz,h); if (link!=-1) { double labweight=thenode->getLabelWei ght(L+h); ==> double nodeout=myLayer->getContextual StoredOutput(j,posz,link,... more »
|
|
How do I catch mixed signals?
|
| |
I have been using the try...catch statement, with my own signals (USER_NOT_FOUND, etc). I am also dealing with a date+time library (from Boost) which raises its own exceptions (for instance, when a month is out of range). I am not sure whether I can catch both exceptions in the same statement. Can I? How?... more »
|
|
Accelerated C++ Problem setw
|
| |
Hello, I was wondering how to approach the second part of this problem. Part 1 : Write a program to calculate the squares of int values up to 100. The program should write two columns : The first lists the value; the second contains the square of that value. Use setw to manage the output so that the values line up in columns.... more »
|
|
Have you always wanted to get your favorite pair of sneakers
|
| |
[link] Follow us there for our latest news and updates items, so you never miss a beat! Get your shoes By your favorite styles,here's your chance! Nice Nike Dunk shoes,Air force one shoes,EDhardy fashion... Shopping on kukuzone.com is easy and safe,even if you are a green hand on shopping,... more »
|
|
pthread_cond_wait segmentation fault
|
| |
I tried to make a producer of 'items' but my implementation crashes at pthread_cond_wait ... I really tried looking at everything and put print statements throughout my code, but there it just crashes. I did put the wait within a mutex. This code isn't complete, but the relevant parts are in there (I assume). Any idea what I did wrong?... more »
|
|
graphics.h in codeblocks
|
| |
Frens, I dont have much time to study OPENGL or QT. So want to use graphics.h. But that file is not found in the library directory of codeblocks. So please give me ideas how can I use graphics in codeblocks? thank you -NSS
|
|
|