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
~2K People Reached
Favorite Tags

10 Posted Topics

Member Avatar for Lilal

Hey, I have a file of RGB values, seperated by : just so they count as a single line. I'm importing these into a string vector and sorting these so they come out sorted from 0:0:0 to 99:99:99. [CODE] vector<string> sV; ifstream in("Images\\Stage1RBGList.txt", std::ios::binary); string word; cout << "Starting Compression..." …

Member Avatar for Lerner
0
354
Member Avatar for samsons17

[CODE]char test; do{ cout << "Enter the Product id : "; cin >> test; }while(isdigit(test)==0); product[i].id = test; system("pause"); return 0; }[/CODE] Hey, IsDigit only works with characters. You'd have to do something like above. (Although if a user inputs a string it effectively calls the loop X times. Input …

Member Avatar for VernonDozier
0
194
Member Avatar for Lilal

Hey, I'm trying to do some compression on an ascii saved file, and running into problems. The original file starts off as such: [CODE]7+'Y 2+'J0-B)#0 [/CODE] I can read this in, and I get it as: [CODE]6 1 55 32 32 41 85 80 120 5 2 33 85 81 …

Member Avatar for Lilal
0
312
Member Avatar for Neon87

[QUOTE=Neon87;1078971]I have a quick question. I use getline to read from a file and put the line in a string s I call cout<<s and the output is this: "HELLO, PLEASE \n "ENTER" A NUMBER \n" why are the \n ignored and treated as strings? thanks[/QUOTE] cout << endl;

Member Avatar for Neon87
0
141
Member Avatar for new programer

Hey, You're declaring default wrong, and just need to use an overall boolean while. [CODE]int number; bool valid = false; do{ cout<<"Enter a valid number "; cin >> number; switch(number) { case 0: cout << "0 \n"; valid = true; break; case 1: cout << "1 \n"; valid = true; …

Member Avatar for new programer
0
89
Member Avatar for Lilal

Hey, I'm trying to remove both periodic and random noise from an image. Using : im=imread('Noise.bmp'); imout=medfilt2(im); imshow(imout); I can easily remove all the random noise, but I'm confused how to use FFT (fast furiour transform) to remove the periodic noise. (example shown in attachment). I understand you need to …

Member Avatar for volkans
0
118
Member Avatar for Lilal

Heya, Not sure this is the best place to post but can't see a better forum :P Not 100% sure I've done this right so looking for some clarification. Thankies Steph -------------------------------------------------------------------------------- CreateTables.SQL [code] DROP TABLE student; DROP SEQUENCE student_counter; CREATE SEQUENCE student_counter INCREMENT BY 1 START WITH 1 NOMAXVALUE …

Member Avatar for Lilal
0
105
Member Avatar for Lilal

Heya, Just trying to get a little help on some excercises I need to do, Done 14/15 fine, but stuck on 15th and not sure quite whats wrong. Need to do a systemcall from C program to copy a file, using stat, open, read write and close. So far I've …

Member Avatar for Lilal
0
115
Member Avatar for Lilal

Hey all, I'm having problems with a project I'm doing, I've started rewriting a project I'm doing as I ended up using too many arrays instead of classes >.< And running into some silly problems: Everytime I run the program I get this error on compilation [COLOR="red"]java.lang.NoSuchMethodError: main Exception in …

Member Avatar for BestJewSinceJC
0
116
Member Avatar for Lilal

Dear Sir/Madam, I'm currently trying to compare a value from an array vs (In the first instance) A set character, and (in the second instance) against a set integer. None of the comparisons are ever returning true even when they appear to be the same on a printf statement, although …

Member Avatar for Lilal
0
136

The End.