- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 5
- Posts with Downvotes
- 5
- Downvoting Members
- 4
I'm studying Comper Science at Faculty of Engineering, Alexandria University
- Interests
- Reading
Re:
Lets say we have an 1d array called array. Now I know array.length gives me how many primitive types or objects are in a 1d array but what does it do for a 2d array with rows with different rows? {1, 2, 3, 4} array.length would be 4 but if … |
|
Hi all, i'm in last year in the university. and now i'm looking for an idea to my graduation project. i'm interested in web development and database. i wanna new idea. or any implemented idea but not implemented many times... i needa buy it after graduation. so please help if … |
|
[CODE]#include <stdio.h> #include <iostream> #include <string.h> using namespace std; int main() { string str1; char* str; cout<<" enter your command "<<endl; cin>>str1; str=(char*)str1.c_str(); char* str2="exit"; int status; while(strcmp(str,str2)!=0){ // createChildProcess(str); cout<<str<<endl; cout<<str1<<endl; cout<<strlen(str)<<endl; cout<<" enter your command "<<endl; cin>>str; } return 0; } [/CODE] try to run this program and … |
|
how can i detect all cycles in the graph? i tried to use DFS and back edges and this ddetect some loops in te graph but not all cycles. |
|
how can i detect all cycles in the graph? i tried to use DFS and back edges and this ddetect some loops in te graph but not all cycles. |
|
how can I convert a variable of type template to an integer?? |
|
I have an integer array and I want to fill it. [CODE] int* a=new int[7]; [/CODE] but I want to check at first if the element a[i] is set before or not. Ex. a[3]=2; a[3] has value but all elements in a hasn't have any value until now, How can … |
|
How can I determine the order of B+ Tree ? Or it should be according to the number of total elements in the tree. |
|
I have a problem when I declare template class inside another a template class. [CODE]#pragma once template<typename T> class D<T>;//error 1,2 template<typename T> class B { D* d; public: B(void){ } ~B(void){ } }; [/CODE] [CODE]#pragma once #include<iostream> using namespace std; template<typename T> class B<T>;// error 3 template<typename T> class … |
|
I have been written 2 classes A,B. and I want class A to use class B and vice verse but I have a problem when I tried to get the content of the class like(*A) that's my code. [CODE]#pragma once #include<iostream> using namespace std; class B; class D { B* … |
|
I want to declare template inside a class .h file [CODE]# include<stdio.h> # include<iostream> using namespace std; #pragma once template <typename T> class LeafNode { T records; LeafNode* next; int size; public: LeafNode(void); ~LeafNode(void); };[/CODE] .cpp file [CODE]#include "LeafNode.h" template <typename T> LeafNode::LeafNode(void) { } template <typename T> LeafNode::~LeafNode(void) { … |
|
|
|
I want to sort array of int, strings or any data type. Therefore I decided to use comparable array as an input to my sort function. But I get an error when I using it. Comparable arr[]; the compiler says "comparable is undeclared identifier". I think I must include specific … |
|
How can i get th execution time ?? I tried to use library <time.h> [CODE] clock_t tStart = clock(); //put here my code double executionTime=(clock() - tStart)/CLOCKS_PER_SEC; [/CODE] here the excution time always zero. so what's the error here?? |
|
is there a way to convert from pointer array to array I tried the following, but it doesn't work. [CODE] int[]a={1,2,3}; int* p; p=a; a=(*P);// doesn't work [/CODE] |
|
Hi,All I'm now working in project to compress a files. And I used Huffman encoding to get new code for each character in the site. but now I can't complete my project. How can I use bitwise operation to put all those new codes into the compression file. and Also … |
|
Hi all during my implementation to tree data structure, I make a method which combine two trees in one tree and called it attach. I declared 3 trees t1,t2,t3. and then called method attach which will create new tree and put t1 in right and t2 in left and then … |
|
[CODE] list<int>* compare(){ list q; q.push_front(1); q.push_front(2); return &q; } [/CODE] this method returns a pointer to an empty list how can I do to return priority_queue contain 1,2. |
|
I have an error in my project and I can't fix the problem [CODE] #pragma once class Node { int code; int count; Node* parent; Node* rightChild; Node* leftChild; public: Node(int c1,int c2); void setCode(int c); void setCounter(int c); void setRightChild(Node n); void setleftChild(Node n); void setParent(Node n); int getCode(); … |
|
how can I declare linkedlist (the ready implemented linkedlist in c++) |
|
[CODE] int main(){ // I have an error in the next line read_file("F:/2nd year_2/Data structure 2/books/lecture-26.pdf"); return 0; } string read_file(char* address){ string line; ifstream myfile (address); if (myfile.is_open()) { while ( myfile.good() ) { getline (myfile,line); cout << line << endl; } myfile.close(); } return NULL; }[/CODE] this program … |
|
I'm working in a program which compress a file I decided to use the huffman algorithm to encode (the Bytes Or character) but huffman algorithm depends on the frequency of each letter and If I calculate the frequency for each letter, it will takes long time. so what should I … |
|
what's thew benefits of dynamic loading in java? and How can I load a classes befopre run the program? |
|
I want to insert an image from my hard disk into the application but unfourtantly my code doesn't work and I can't determine what causes that the image disapear.[CODE] import javafx.stage.Stage; import javafx.scene.Scene; import javafx.scene.text.Text; import javafx.scene.text.Font; import javafx.scene.image.Image; import javafx.scene.image.ImageView; /** * @author city */ def image = Image … |
|
Re:
hello All, i am working on a small project to show people address through there names , for example the user will enter the name and it will show him the address of the entered name.. but the big issue here is that i want to googlize it which means … |
|
Re:
I need help with my code for computers, our final assignment is to make a simple game, so I decided to do Hangman. This assignment is worth 20% of my final mark due on Monday so if anybody could help me with it I would really appreciate it. (I'm still … |
|
Re:
[B]Hi everyone I would like to take your advice about my situation This is my second year in university and my major is computer science and my programming skill is very weak:'( and I finish data structure by Miracle :icon_cry:and until now I can’t solve any assignment by myself:icon_sad:, so … |