Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+3
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
~2K People Reached
Favorite Tags
Member Avatar for dkwantee

Hello! The text file is separated by tabs..I have used a struc as below: [CODE]struct scores { int maths int phy; int bio; int chem; int eng; int total; }; struct class { int class_id; char name[50]; }; ifstream fin; fin.open("marks.txt"); char buf[100]; string a; getline(fin,a); char delims[] = "\t"; …

Member Avatar for Lerner
0
514
Member Avatar for dkwantee

Hello! i want to know if it is possible to create two drop down list and add code such that when a user select a value from the first drop down, he cannot select the same value from the second one..?

Member Avatar for ~s.o.s~
0
48
Member Avatar for dkwantee

Hello everyone, I need to write code such that: .you can select number of players(2,3or4) and put that number in array.. .display message if correct number not entered. .then each player must be able to choose their color(red, blue, yellow,green) .two players cannot be assigned the same colour This is …

Member Avatar for Ancient Dragon
0
113
Member Avatar for dkwantee

hello! I want to know about string tokenizer. i have a file of the following format:- Studentname StudentID Studentgrades each is separated by a tab. and the size of the file is unknown. I have to read each line using string tokenizer..Well, i dont know much about this, can someone …

Member Avatar for Narue
0
82
Member Avatar for dkwantee

Hello! i have the following data in a file student_id student_name maths_score english_score physics_score can i use a nested structure to read the file? [CODE] struct student { int id; char name[40]; }; struct score { int maths; int english; int physics; }; [/CODE] if yes, how will i read …

Member Avatar for dkwantee
0
492
Member Avatar for dkwantee

[CODE] [LIST=1] [*]void selectionsort(int numbers[],int arraysize) [*]{ int i,indes,large,j; [*] for(i=arraysize-1;i>0;i--) [*] { large=numbers[0]; [*] index=0; [*] for(j=1;j<=1;j++) [*] { if(numbers[j]>large) [*] { large=numbers[j]; [*] index=j; [*] } [*] } [*] numbers[index]=numbers[i]; [*] numbers[i]=large; [*] } [*]} [/LIST] [/CODE] i have been able to understand upto 7 line. can someone …

Member Avatar for manzoor
0
110
Member Avatar for dkwantee

i have the integers 100 5 5 9 in my array numbers.But when i compile this program i get 2009312941!! Please help me [CODE] int main() { int numbers[4]; int i; ifstream streamin; streamin.open("input.txt"); for(i=0;i<4;i++) {streamin >> numbers[i] ; } cout << numbers[i]; streamin.close();[/CODE]

Member Avatar for mitrmkar
0
227
Member Avatar for dkwantee

Hello! I am having problems to copy the output of a text file to another one. The aim of this small program is to convert a sentence in lowercase stored in a file to uppercase and store the output to another txt file. finally display the output..Plz help me [CODE=c++]#include …

Member Avatar for Ancient Dragon
1
85