- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
|
Re:
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 … |
Re:
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 … |
|
|
Re:
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 … |
Re:
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) … |
|
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 … |
|
Re:
is this is the correct way 2 write destructor of copy constructor and parameterised constructor ~a(int x,float y) ~a(a &a1) |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
Re:
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'; … |
|
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 … |
|
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 … |
|
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: ** … |
|
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. |
|
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. |
|
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. |
|
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. … |
|
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> |
|
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 … |
|
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. |
|
Re:
Which folder will be the root for the server |
|
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. |
|
Re:
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 … |
|
Re:
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, … |
|
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 … |
|
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 … |
|
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[] … |