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
1 Endorsement
Ranked #857
Ranked #2K
~17.3K People Reached
Favorite Tags
c++ x 49
java x 24
php x 14
c x 6
Member Avatar for andrew.mendonca.967

CSCI-15 Assignment #2, String processing. (60 points) Due 9/23/13 You MAY NOT use C++ string objects for anything in this program. Write a C++ program that reads lines of text from a file using the ifstream getline() method, tokenizes the lines into words ("tokens") using strtok(), and keeps statistics on …

Member Avatar for phorce
0
4K
Member Avatar for Sci3nc3F1cti0n

Hey guys, as the title says, this is my first encryption program. Being extremely simple, I was just looking for advice on ways I could improve it. I just recently got back into programming(I tried to learn before but unfortunately lost interest while I was still learning the basics) and …

Member Avatar for nchy13
0
418
Member Avatar for andrew.mendonca.967

CSCI-15 Assignment #2, String processing. (60 points) Due 9/23/13 You MAY NOT use C++ string objects for anything in this program. Write a C++ program that reads lines of text from a file using the ifstream getline() method, tokenizes the lines into words ("tokens") using strtok(), and keeps statistics on …

Member Avatar for nchy13
0
263
Member Avatar for lloydsbackyard

i am given this topic array - object oriented programming for report. i just some of your advise do i need to discuss OOP? including like inheritance, encapsulation, polymorphism ..etc.. or should i discuss only concepts of arrays definition etc... any addition to my outline: definition of arrays types (single-multi) …

Member Avatar for Kenney_1
0
250
Member Avatar for nchy13

HI, I am trying to set the consecutive pixels to a specific color so as to obtain a line. Though, I know there is a built in function for drawing the line, but I am interested to do it without using any GL primitive. This is the display function as …

0
157
Member Avatar for pooja.singh.3950

is this is the correct way 2 write destructor of copy constructor and parameterised constructor ~a(int x,float y) ~a(a &a1)

Member Avatar for nchy13
0
242
Member Avatar for nchy13

This is the code which put an extra line to the std::string array. I am here trying to print last k lines of file. Any help is appreciated. #include <iostream> #include <fstream> #include <string> using namespace std; //file.exceptions(ifstream::eofbit | ifstream::failbit | ifstream::badbit); void print_last(unsigned k, string file_name) { string *data=new …

Member Avatar for nchy13
0
822
Member Avatar for nchy13

I stumbled upon the fact that one can't bind a temporary variable to a reference unless it is a constant and found it to be indeed true in the given code. However, i am not able to find out the difference in my other code snippet where I didn't use …

Member Avatar for nchy13
0
830
Member Avatar for nchy13

This code only print characters until char value is 0 but surprisingly it output characters only upto first blank space. I checked their ASCII values and surprisingly ASCII value of space(' ') character was output by program as 0. I couldn't get it. Any help is appreciated. #include <iostream> #include …

Member Avatar for AndrisP
0
311
Member Avatar for nchy13

I intend to perform in-place modification of std::string with the help of a modifier function. In this regard, I looked up on internet and found that pass by pointer method is not recommended. I have few queries in this regard. * If I pass a std::string to the function as …

Member Avatar for NathanOliver
0
909
Member Avatar for nchy13

Following is the code snippet to override exception::what() function, but what I couldn't figure out how removing const-ness of the function produces following null terminated character string "std::exception". What I could think of is that since exception::what() is const its overriding should also be const. But, even if it is …

Member Avatar for mike_2000_17
0
186
Member Avatar for nchy13

This is a program to reverse the string in place. I have used pass by pointer. Interestingly I have changed the pointer in reverse function which is notable by seeing its output but the pointer which was passed in main function still points to the start of string. This is …

Member Avatar for deceptikon
0
163
Member Avatar for new_developer

Hi there, I want to know about wchar_t data type i.e. how it is used and why we use it. And also what is the difference between char and wchar_t. One last thing why we write L before wchar_t initialization. #include <iostream.h> void main() { wchar_t w; w = L'A'; …

Member Avatar for deceptikon
0
154
Member Avatar for nchy13

hi all. i have implemented Karatsuba algorithm for multiplication of large numbers . when i compile .c file it is giving correct output using followin commands in **linux** terminal. **gcc ulti.c ./a.out < hi.txt** But problem arises when i try to run it in **ARM** using following commands. it give …

0
99
Member Avatar for nchy13

i am getting weird result here. if condition at line 25 is satisfied only 4 times while reading cpuinfo but **cores** is modified each time while loop iterates. i am not able to think of anything that may cause this. any help of any sort is appreciated. #include <stdio.h> #include …

Member Avatar for nchy13
0
348
Member Avatar for nchy13

evrything was fine until i inserted 100 to 125 lines in code. i am wondering what kv is doing wrong as it is not even printing that version file was opened.. any sort of help is appreciated. files included in the code are given below for reference. proc/version file: ** …

Member Avatar for deceptikon
0
232
Member Avatar for nchy13

i want to ask if i can take input from .txt file to run a source file(.s) **using arm-elf-run abc.s** hi.txt. but giving hi.txt is not working like in c ./a.out hi.txt. any help whatsoever is appreciated.

0
117
Member Avatar for nchy13

Terminal shows foloowing error on entering command for "post review". "Unable to find a Review Board server for this source code tree". can you suggest how to set review board server url.

Member Avatar for TrustyTony
0
106
Member Avatar for nchy13

i searched a llot but in vain. can anyone help me with how to include code written using GTK+ as module in a code that uses wxpython as toolkit. any help whatsoever is appreciated.

Member Avatar for Ene Uran
0
191
Member Avatar for nchy13

we can use $_GET method to pass info via url but it shows the info in url like <a href =profile.php?id=$user>click here</a> and in profile.php?id=$user , we can access username via $username=$_GET['id']; is there any safer method to achieve because i don;t want to show the info passed in url. …

Member Avatar for urtrivedi
0
340
Member Avatar for nchy13

everything is workin except window.location .can any one suggest reason for it. thank you in anticipation <?php session_start(); $_SESSION["visiting"]=$_GET['userid']; echo $_SESSION["visiting"]." ".$_GET['userid']; ?> <script type="text/javscript"> window.location="http://localhost/fi.php"; </script>

Member Avatar for rajesh1158
0
131
Member Avatar for nchy13

i am ensuring on both pages i have first of all called session_start(); on one page i declared $_SESSION["username"]=$username; the link of another page is on this page. and another page i tried to print it by echo $_SESSION["username"]; but it showed nothing. i am using php 5.4 with apache …

Member Avatar for nchy13
0
192
Member Avatar for nchy13

i am trying to print " in echo statement. i can't get any method other than <?php echo " " "; ?> which is definitely wrong. help me to find a way out of it. any help is appreciated.

Member Avatar for nchy13
0
157
Member Avatar for maurya10
Member Avatar for nchy13

hi i am new to [B]socket programming[/B] and we have to do a project in a month. can u suggest some good project objectives which will look on CV. any help is highly appreciated.

0
68
Member Avatar for d.h.2011

Hi, I need to do a depth first search tree for the following undirected graph: 1-2-3 |...|..| 4-5 6 |......| 7-8-9 (Sorry about the graph being so unclear, the dots are just to space the lines out). It says to start at A which I'm guessing is 1? My first …

Member Avatar for nchy13
0
105
Member Avatar for Ahmad Mansour

Hi ... I'm Civil Engineering student and beginner in C++ i faced a problem and tried to solve it but unfortunately can't i just want a help and headlines to solve it.. and thanks the problem is: Write a program that will print the following on the screen using loops, …

Member Avatar for PrimePackster
0
90
Member Avatar for nchy13

here, there are two functions in branchpredictor class namely predictor and trainer. [B]what i have pointed out is that predictor is working fine but trainer is not updating the variables of the above class. is it that only first function can access the variables. [/B] if not, can any one …

Member Avatar for JamesCherrill
0
167
Member Avatar for nchy13

i actually learned java only a day ago and we have to submit assignment after two days. i wanted to figure out what i did here with class and function definition is correct. if correct can you help me out with the compilation error. in fact all are similar. it …

Member Avatar for nchy13
0
337
Member Avatar for nchy13

i dont know whats wrong with this program...the compiler compiles the program but when i run it it shows: j[B]ohnrambo@ubuntu:~/Desktop$ java lora Exception in thread "main" java.lang.NumberFormatException: null at java.lang.Integer.parseInt(Integer.java:443) at lunda.l2read(lora.java:24) at lora.main(lora.java:124)[/B] [CODE] class lunda{ String[] la=new String[2048]; String[] lb=new String[2048]; int[] lvalid_a=new int[2048]; int[] lvalid_b=new int[2048]; int[] …

Member Avatar for leodash
0
144