- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
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..." … |
|
i'm so sory because i made mistake when asking about this before.. so here i'll make correction in this post.... actually what i want to ask is why my cin.fail() code do not works?? i want this program to ask the user back the same question if the user enter … |
|
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 … |
|
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 |
|
Hello all, I have been trying to use swtich cases in conditions but it won't work what I mean is like this; [COLOR="Red"]do{ cout<<"Enter a valid number"; cin>>number; switch(number) { case 0: bla bla break; case 1: bla bla break; case default: cout<<"re-enter"; } }while(defalut);[/COLOR] if that can never happen … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |