Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
~3K People Reached

10 Posted Topics

Member Avatar for Gait

codeblocks and dev-c++ are the best free compilers on windows. you should try installing codeblocks first. [url]http://www.codeblocks.org/downloads/26[/url] download the one with mingw

Member Avatar for hystaspes
0
156
Member Avatar for FREEZX

I have a problem with my layout. I'm designing a fixed-size layout and whenever i go to a longer page on which my browser has a scroll, it's shifting a bit on the left. i understand this would be because then my registered browser width is decreased for few pixels, …

Member Avatar for FREEZX
0
94
Member Avatar for manutd4life

well, your code gets in an endless loop because if numofstars!=9999 is the condition for your loop. your program will never reach that value if numofstars is left unchanged. Like Salem said.. your loop in the if statement is not declared properly. if you want to use count as the …

Member Avatar for manutd4life
0
184
Member Avatar for bigdawgg

[QUOTE=thelamb;1189634]That's not a question, that's "Can someone please do my homework". Which unfortunately no one is going to do for you. So, as with many problems, the first step is: break it up in parts. -> Do you know how to open a file? -> Do you know how to …

Member Avatar for jwenting
0
197
Member Avatar for FREEZX

I need to "decode" a string into numbers. it should convert 1=ij 2=abc 3=def 4=gh 5=kl 6=mn 7=prs 8=tuv 9=wxy 0=oqz so i made a code where i use a dynamic string array which should get filled up according to the above table, but when i try to print the …

Member Avatar for FREEZX
0
115
Member Avatar for FREEZX

I need to write a program that will count how many numbers within an interval have an even sum of digits. you are given two numbers, a and b. i wrote a little program that is a little slow.. it checks for the sum of the digits for every number …

Member Avatar for tux4life
0
2K
Member Avatar for FREEZX

Why am i getting a segmentation fault when i try to compile this code? [CODE=c++]#include <iostream> using namespace std; int main() { bool x; string odgovori; cin>>odgovori; int xd[2], rez=0, vkupno=0, odlen=odgovori.length(); xd[1]=1; for(int i=0; i<odlen; i++) { if(odgovori[i]=='O') { if((xd[1]==1)&&(x==false)) { rez=rez+1; x=true; } else{ xd[2]=xd[1]*2; rez=rez+xd[2]; xd[1]=xd[2]; } …

Member Avatar for FREEZX
0
97
Member Avatar for FREEZX

Hello all! I have a task to code a program that would find the last non-zero digit of the factorial of a given number n where 1<n<10000 so far i got this: [CODE=c++]#include <iostream> #include <string> #include <sstream> using namespace std; int main() { int a, xxx; unsigned long long …

Member Avatar for FREEZX
0
338
Member Avatar for FREEZX

[CODE]#include <iostream> #include <fstream> #include <string> #include <sstream> #include <math.h> #include <windows.h> using namespace std; int main() { int l, pos, pos1; unsigned long int currnum; string str0, str1; stringstream out; string::iterator x1, x2; float koren; bool find = 0; ifstream fin("koren.in"); ofstream fout("koren.out"); if(fin.is_open()) { fin>>l; fin>>str0; fin.close(); currnum=159; …

Member Avatar for FREEZX
0
158
Member Avatar for FREEZX

I need to make a program that will extract numbers from a file sorted like bowling cones, like this: 1 2 5 2 2 7 1 6 4 8 2 9 4 7 3 and than calculate the maximum a bowler can score if the ball can go down on …

Member Avatar for FREEZX
0
120

The End.